Thank you for your reaction,
I hope you can explain me something.
when i execute this code:
uint8_t test;
printf("test addr %x\r\n",&test);
my debug output says:
test addr 20083fe7
So my thought was that [test] is placed on the stack and with asking the adders of [test] i can figure out where the stack is placed.
my current problem is that the initialization of local variable goes wrong.
void SCR_idle(void){
Point_t point1 = {.x=120,.y=30};
..etc
after executing Point_t point1 = {.x=120,.y=30}; the value of point.x ==0 and point.y == 0.
when i was searching for the problem i found out with printing the location of the variables that its on a different location.
I though that my memory was build up like:
On-chip SRAM-bottom:
-vtable
-bss
-data
-heap
On-chip SRAM-top:
-stack
RAM2
-bss (large buffers defined by __BSS(RAM2))
whats wrong with my interpretation?
thank you in advance!