sam9x5ek

Last modified by Microchip on 2025/07/17 12:38

Run SAM-BA with USB connection (equivalent to serial) and erase the U-Boot section in the NAND flash memory map and then write U-Boot binary:

# sam-ba -p serial -b sam9xx5-ek -a nandflash -c erase:0x40000:0x80000 -c write:u-boot.bin:0x40000
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:0x80000'
Erased 131072 bytes at address 0x00040000 (25.00%)
Erased 131072 bytes at address 0x00060000 (50.00%)
Erased 131072 bytes at address 0x00080000 (75.00%)
Erased 131072 bytes at address 0x000a0000 (100.00%)
Executing command 'write:u-boot.bin:0x40000'
Appending 640 bytes of padding to fill the last written page
Wrote 131072 bytes at address 0x00040000 (24.81%)
Wrote 131072 bytes at address 0x00060000 (49.61%)
Wrote 131072 bytes at address 0x00080000 (74.42%)
Wrote 131072 bytes at address 0x000a0000 (99.22%)
Wrote 4096 bytes at address 0x000c0000 (100.00%)
Connection closed.