4.3 Flashing the Package to SAMA5D3 Board

Replace the existing sama5d3_xplained.itb file in the downloaded demo package with the newly build Image Tree Blob (.itb) file. This newly build Image Tree Blob (.itb) file have the support for the WILC devices. Refer to the following steps:
  1. Download the SAM-BA Flashing tool from: https://github.com/atmelcorp/sam-ba/releases
  2. Open the demo_linux_nandflash.sh file and provide the SAM-BA path in this file for flashing.
  3. Connect a USB Cable to the J6 port.
  4. Open JP5 to disable NAND Flash memory access.
  5. Press BP2 reset button to boot from on-chip Boot ROM.
  6. Close JP5 to enable NAND Flash memory access.
  7. Run the demo_linux_nandflash.sh file by using the following command:
    sudo sh demo_linux_nandflash.sh
  8. This script runs SAM-BA 3 and the associated QML sam-ba script (demo_linux_nandflash_usb.qml) with proper parameters.
  9. At the end of the flashing process, the following message is displayed:
    -I- === Done. ===
    Connection closed.
    Note: The process will take a few minutes to finish.
  10. To see the terminal logs, connect a FTDI cable to the DEBUG J23 port. A /dev/ttyUSB0 node has been created.
  11. Open the favorite terminal emulator with appropriate settings.