35
11100B–ATARM–31-Jul-12
SAM4S Series [Preliminary]
8.1.3.9
Fast Flash Programming Interface
The Fast Flash Programming Interface allows programming the device through a multiplexed
fully-handshaked parallel port. It allows gang programming with market-standard industrial
programmers.
The FFPI supports read, page program, page erase, full erase, lock, unlock and protect
commands.
8.1.3.10
SAM-BA Boot
The SAM-BA Boot is a default Boot Program which provides an easy way to program in-situ the
on-chip Flash memory.
The SAM-BA Boot Assistant supports serial communication via the UART and USB.
The SAM-BA Boot provides an interface with SAM-BA Graphic User Interface (GUI).
The SAM-BA Boot is in ROM and is mapped in Flash at address 0x0 when GPNVM bit 1 is set to
0.
8.1.3.11
GPNVM Bits
The SAM4S16 features two GPNVM bits. These bits can be cleared or set respectively through
the commands “Clear GPNVM Bit” and “Set GPNVM Bit” of the EEFC User Interface.
The Flash of the SAM4S8 is composed of 512 Kbytes in a single bank.
The SAM4SA16/SD32/SD16 features 3 GPNVM bits (GPNVM from Flash0) that can be cleared
or set respectively through the "Clear GPNVM Bit" and "Set GPNVM Bit" commands of the
EEFC0 User Interface. The GPNVM bits of the SAM4SA16/SD16/SD32 are only available on
FLash0. There is no GPNVM bit on Flash1. The GPNVM0 is the security bit. The GPNVM1 is
used to select the boot mode (boot always at 0x00) on ROM or FLASH. The SAM4SD32/16
embeds an additional GPNVM bit: GPNVM2. This GPNVM bit is used only to swap the Flash0
and Flash1. If GPNVM bit 2 is:
ENABLE: the Flash1 is mapped at address 0x0040_0000 (Flash1 and Flash0 are continuous).
DISABLE: the Flash0 is mapped at address 0x0040_0000 (Flash0 and Flash1 are continuous).
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-pur-
pose 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.
Table 8-2.
General-purpose Non volatile Memory Bits
GPNVMBit[#]
Function
0
Security bit
1
Boot mode selection
2
Flash selection (Flash 0 or Flash 1)
Summary of Contents for SAM4S Series
Page 44: ...44 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Page 412: ...412 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Page 1105: ...1105 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Page 1143: ...1143 11100B ATARM 31 Jul 12 SAM4S Series Preliminary Figure 43 4 64 lead LQFP Package Drawing ...
Page 1145: ...1145 11100B ATARM 31 Jul 12 SAM4S Series Preliminary Figure 43 5 64 lead QFN Package Drawing ...