This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can not boot from the AT91SAM7x256

I use the ULINK to debug the troubles why the code can not work in AT91SAM7x256. The following is my memory mapping. In the target environments, the ROM address and SRAM address are set to 0x0010-0000 and 0x0020-0000, respectively. Now I use blinky samples from Keil to test my board; but I don't know why it can not boot code. I found the code was loaded to the memory address 0x0000-0000, not the 0x0010-0000.
The tool ULINK is running from the 0x0010-0000 and locate the code 0xFF, not 0x18. This is why it did not work. Who can I tell why the code was loaded to the 0x0000-0000 ? Or how to solve the problem ?
The ERASE pin now is pulled high for GPNVM setting to boot code from the internal flash.

Memory Map of the image

Image Entry point : 0x00100128

Load Region LR_IROM1 (Base: 0x00100000, Size: 0x000005d8, Max: 0x00040000, ABSOLUTE)

Execution Region ER_IROM1 (Base: 0x00100000, Size: 0x000005d4, Max: 0xffffffff, ABSOLUTE)

Base Addr Size Type Attr Idx E Section Name Object

0x00100000 0x00000128 Code RO 3 RESET sam7.o 0x00100128 0x00000008 Code RO 77 * !!!main __main.o(c_t__un.l) 0x00100130 0x00000038 Code RO 184 !!!scatter __scatter.o(c_t__un.l) 0x00100168 0x00000028 Code RO 186 !!handler_copy __scatter_copy.o(c_t__un.l) 0x00100190 0x0000002c Code RO 188 !!handler_zi __scatter_zi.o(c_t__un.l) 0x001001bc 0x00000004 Ven RO 108 .emb_text lib_init.o(c_t__un.l) 0x001001c0 0x00000010 Code RO 108 .emb_text lib_init.o(c_t__un.l)
.....

Parents Reply Children
No data