SAM3X8E Atmel Corporation, SAM3X8E Datasheet - Page 330

no-image

SAM3X8E

Manufacturer Part Number
SAM3X8E
Description
Manufacturer
Atmel Corporation
Datasheets
21.5
330
330
Hardware and Software Constraints
SAM3X/A
SAM3X/A
IAP software code example:
Table 21-4.
Peripheral
UART
UART
• SAM-BA Boot uses the first 2048 bytes of the SRAM for variables and stacks. The remaining
• UART requirement:
• USB requirements:
available size can be used for user's code.
(unsigned int) (*IAP_Function)(unsigned long);
void main (void){
/* Initialize the function pointer (retrieve function address from NMI
vector) */
/* Send your data to the sector here */
/* build the command to send to EEFC */
/* Call the IAP function with appropriate command */
}
– 12.000 MHz quartz or 12.000 MHz external clock on XIN, or
– no quartz or external clock on XIN, or
– below 5.0 MHz quartz or below 5.0 MHz external clock on XIN.
– 12.000 MHz quartz or 12.000 MHz external clock on XIN. 12 MHz must be
±500 ppm and 1.8V Square Wave Signal.
unsigned long FlashSectorNum = 200; //
unsigned long flash_cmd = 0;
unsigned long flash_status = 0;
unsigned long EFCIndex = 0; // 0:EEFC0, 1: EEFC1
IAP_Function = ((unsigned long) (*)(unsigned long)) 0x00800008;
flash_cmd =
flash_status = IAP_Function (EFCIndex, flash_cmd);
Pins Driven during Boot Program Execution
(0x5A << 24) | (FlashSectorNum << 8) | AT91C_MC_FCMD_EWP;
Pin
URXD
UTXD
PIO Line
11057A–ATARM–17-Feb-12
11057A–ATARM–17-Feb-12
PA8
PA9

Related parts for SAM3X8E