AT91SAM7X256 doesn't start after repowering

Hi,

I work with an AT91SAM7X256 ARM on my own circuit board. At the moment I use eclispe with OpenOCD for programming and flashing the chip and GNU-ELF for debugging it. In order to have a realtime operating system I chose freeRTOS. All the stuff described before is running quite well, but only when I start the programm out of my debugger (run program) inside eclipse. When I unpower and repower the device without any JTAG or something attached it doesn’t start. What could be the reason for that? Do I have to set any configuration-bits?

Hello,

I’ve had this problem myself.

There is probably something wrong PLL or reset-settings. The debugger sets the registers to some working value but your application does not.

Check the debugger flash-run script and see what registers it alters and find if it differs from what your start-up code does.

Good luck!

I still have the problem I described before. Can you please post your working settings so that I can compare yours and mine?

The situation now is like the following: After flashing the AT91SAM7X256 the program doesn’t start automatically after finishing the flash-process. I have to start the OOCD Server AND the GDB Debugger which displays the state: symbol not available. My program starts after pressing the play-button. At the moment it’s not possible to start the program without the Debugger as a stand-alone circuit like it should be! Could you please give me a hint how I can solve this problem? Thanks.

I edited my last posting because the solution I had turned out not to work! Does anybody have an idea (look at my posting above)?

hello,

did you set GPNVM Bit 2?

if not the at91sam7x boots from internal rom.

regards

gerhard

Hi gerhardf1,

my OOCD-flashscript contains the following lines (snippet):

flash write_bank 0 $flashname 0x0
at91sam7 gpnvm 0 2 set
init_reset run
soft_reset_halt

So I really have to set the GPNVM-bit each time I flash the chip?

Bennm:
Hi gerhardf1,

my OOCD-flashscript contains the following lines (snippet):

flash write_bank 0 $flashname 0x0

at91sam7 gpnvm 0 2 set
init_reset run
soft_reset_halt




So I really have to set the GPNVM-bit each time I flash the chip?
you only have to set the GPNVM-bit if you activate the erase pin.

regards

gerhard