Chanege a position of top_stack

OP #1172273
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 :):):)
#1172274
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)

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.