Forum: ARM programming with GCC/GNU tools AT91SAM7S64 Startup.S

Author: Tibo Tibo (tibo)
Posted on:
Attached files:

Rate this post
0 useful
not useful

I am on an Atmel SAM7S64 for more than a month and nothing is working
I can at least debug with a JLink-JTAG SAM-ICE from Atmel and IAR
Embedded Workbench (Kickstart version) that you can find here:

The thing is that in my startup.s smthing strange appears.
I effectively start at the address 0x00000 as almost every µC I think,
BUT instead of branching to my label indicated at the address 0x0, it
branches to address 0x54 and get lost. And what is strange, whatever the
label I ask to branch to at the address 0x0 it always branch to the
address 0x54 even after many configuration changes and rebuild.
I also try to rebranch to my label _vector at address 0x0 but it goes to
I of course try to change my configuration of memory mapping but nothing
appears to change anything.

My startup.s could be the reason of the problem but it is the startup.s
from an Atmel project (getting_started or interrupt).

I joined my project to this message, so if you have time and if you find
something wrong in my configuration please tell me, I'm just desperated.

Thanks a lot

Author: Martin Thomas (mthomas) (Moderator)
Posted on:

Rate this post
0 useful
not useful
Since you are working with IAR the IAR-support should be asked. Anyway:
in your attached startup-code the handler-addresses are commented out.
I.e.: ; DC32 __iar_program_start. Are you sure that this i still code
"from an Atmel project"? IRC IAR EWARM comes with some examples for
AT91SAM7S including startup-code.


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.