Failed run code in flash or AT91SAM7S256

OP #1172663
Rate this post
• ▲ useful
▼ not useful
I am new for ARM. I am using latest version of WinArm. My target is AT91
evaluation board AT91SAM7S-EK with AT91SAM7S256. I tried the AT91SAM7
GPIO Example posted on AT91 ARM-Projects Web site, and using the link
script for
AT91SAM7S256 provide by Martin THOMAS on the same web site. The example
can be successfully run in RAM, but failed to run in Flash. Using
TRACE32 to debug the code, I found that the AT91F_LowLevelInit() never
got called, the program jumped to a wrong address 0x000000F5, instead of
0x0010013C which is the entry point of AT91F_LowLevelInit(). Thank you
very much for any help.
OP #1172665
Rate this post
• ▲ useful
▼ not useful
Thank you for response. I tried to run the gamma example, and got
similar problem.

1) When the program was running in flash, the AT91F_LowLevelInit() never
got called, the board got reset.

1) When the program was running in RAM, I could get the following
message from hypeterminal:
AT91SAM7-Demo for the GNU-Toolchain
MCK clock frequency: 48054857 Hz
Hello
However, after that the program was stucked in the following line of
code, and never got out.
stored_int = IntGetCPSR(); // save initial-state

I did not do any modification on your code, except that I modified the
make file to compile the code for AT91SAM71256. Thanks.

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.