EmbDev.net

Forum: ARM programming with GCC/GNU tools Chanege a position of top_stack


von Artur B. (ar2ras)


Rate this post
useful
not useful
Hi, I start my adventure with uC with arm7tdmi-s core.I presonally use
lpc2114 but I have tested some example for lpc2138 and I think: where
can I change position of top stack (which file)?? because my uC has only
128kB flash and 16kB SRAM. When I  have used a Eclipse environment, I've
done it in file boot.s ( .equ    Top_Stack,      0x40004000) but in
WinARM i can't see this! maybe it is done automatically? but I don't
know that? because in Eclipse if I don't change it, a program does't
work   and in WinARM  it works!??
Please anybody answer me on this question :) Thanks
P.S sorry, if I did a lot of mistakes in this post, but my English isn't
very well :):):)

von Clifford S. (clifford)


Rate this post
useful
not useful
It has nothing to do with WinARM or Eclipse. The first is a toolchain
and some utilities, the second is an IDE into which you can integrate
pretty much any toolchain. There is no one way to do this, and it is
entirely dependent on your project and how you have set it up. If you
are using or started from any of the examples provided with WinARM, then
I believe that the stack position is determined by the linker script
(and this is probably the most common method). I believe the file is
probably called "ldscript" or similar (No WinARM installed here and I
don't use any of the WinARM examples or scripts  - none are much help on
a Samsung S3C2410X - so I am not sure)

von Jonathan D. (dumarjo)


Rate this post
useful
not useful
I believe the file is
> probably called "ldscript" or similar (No WinARM installed here and I
> don't use any of the WinARM examples or scripts  - none are much help on
> a Samsung S3C2410X - so I am not sure)

Yes it's in the ld script. Normally a TOP of RAM - 4 bytes.

Jonathan

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.