Am 24.11.20 um 19:01 schrieb Georg Icking-Konert: > hello again again, > > sorry for flooding you with this issue but I have good news! > > As I don't know where SDCC / STM8 store stack, heap etc. in RAM, I > thought I'd better stay away from the borders. Seemingly that was a bad > idea, because if I replace 0xa0 in Makefile by 0x00 (start of RAM), it > works as expected. > > Again sorry for bothering you with this and thanks to Basil for his > support! > > Have a great day :-) > > Georg
For objects in RAM, have you checked the .map file? IF you specified --stack-loc, you know where you put the stack. If you didn't, SDCC will not initalize the stack pointer - the reset value for the sp register will be used, which is a reasonable default on all the STM8 devices (see datasheet for details). If you don't use malloc/calloc/aligned_alloc/realloc/free, there is no heap. Philipp _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user