SAM4SD32C can not boot up from second bank.

Discussion around product based on ARM Cortex M4 core.

Moderators: nferre, ncollot

gxfgxf
Posts: 1
Joined: Tue Jul 28, 2009 2:54 am

SAM4SD32C can not boot up from second bank.

Mon Jan 16, 2017 9:47 pm

I test it with SAM-BA v2.15 and SAM4S-EK2
compiled a very simple bin image just print out board information.
write this image to 0x400000 (Bank 0).
Also write it to 0x500000 (Bank 1).
Reset board, I can see information from UART.

Then connect SAM-BA again,
Under "Scripts", select "Select Flash1 for boot (GPNVM2)" and click "Execute" button. Reset board, no information out from UART.
Board can not boot up from Bank1.
Can anyone help me to figure it out my problem please?
Thanks

By datasheet:

8.1.4 Boot Strategies
The system always boots at address 0x0. To ensure maximum boot possibilities, the memory layout can be changed via
GPNVM.
A general purpose NVM (GPNVM) bit is used to boot either on the ROM (default) or from the Flash.
The GPNVM bit can be cleared or set respectively through the commands “Clear General-purpose NVM Bit” and “Set
General-purpose NVM Bit” of the EEFC User Interface.
Setting GPNVM Bit 1 selects the boot from the Flash, clearing it selects the boot from the ROM. Asserting ERASE clears
the GPNVM Bit 1 and thus selects the boot from the ROM by default.
Setting the GPNVM Bit 2 selects bank 1, clearing it selects the boot from bank 0. Asserting ERASE clears the GPNVM
Bit 2 and thus selects the boot from bank 0 by default.

Return to “SAM4 Cortex-M4 MCU”

Who is online

Users browsing this forum: No registered users and 3 guests