EmbDev.net

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


Author: Artur Burtka (ar2ras)
Posted on:

Rate this post
0 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 :):):)

Author: Clifford Slocombe (clifford)
Posted on:

Rate this post
0 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)

Author: Jonathan Dumaresq (dumarjo)
Posted on:

Rate this post
0 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

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.