I experienced problem with stack variables, that were overlaying with bss segment: anyway, in Symbol Browser, everything was ok (segments were not overlayed). So I was debugging from startup and found this:
ldr r0, =__stack_end__
mov sp, r0
So the SP register was set only in RAM build. When I uncomented it, everything was ok (variables in stack were allocated really to the stack segment). Is that an error?
CrossStudio for ARM 1.7, build 22.
Please sign in to leave a comment.