sam9x5ek

Last modified by Microchip on 2025/07/17 07:13

Run SAM-BA with USB connection (equivalent to serial) and erase the beginning of the NAND flash and then write AT91Bootstrap binary:

# sam-ba -p serial -b sam9xx5-ek -a nandflash -c erase::0x40000 -c writeboot:at91bootstrap.bin
Opening serial port 'ttyACM0'
Connection opened.
Compatible device detected: SAM9G35.
Detected memory size is 268435456 bytes.
Page size is 2048 bytes.
Buffer is 131072 bytes (64 pages) at address 0x2000a000.
NAND header value is 0xc0c00405.
Supported erase block sizes: 128KB
Executing command 'erase::0x40000'
Erased 131072 bytes at address 0x00000000 (50.00%)
Erased 131072 bytes at address 0x00020000 (100.00%)
Executing command 'writeboot:at91bootstrap.bin'
Prepended NAND header prefix (0xc0c00405)
Appending 1380 bytes of padding to fill the last written page
Wrote 14336 bytes at address 0x00000000 (100.00%)
Connection closed.