The SAM-BA Bootloader lives on many Atmel chips. It is necessary to load files (loaders and/or firmware) onto the chip. Several TinyCLR OS supported boards will use this loader to load the software.
Uploading bin Files
To set the chip in SAM-BA mode, hold down the dedicated button on your board (BOOTA on UCM Dev and Breakout boards) while the system powers up (or during reset). If there is no such button, connect SPI1_MISO to ground instead. Keep the pin grounded for three seconds after power up or reset and then remove the connection from SPI1_MISO to ground. The device manager will show a COM port similar to "Bossa Program Port" or "GPS Detect".
- If it is not already installed, download and install the SAM-BA tool from Microchip. The latest version we have tested is 2.18 for Windows.
- Open the SAM-BA program then select the COM port for your device in the connection box and your board type below it (at91sam9x35-ek for G400), then click connect.
- Near the middle of the window, go to the
Enable Dataflash (SPI0 CS0)then click the
Erase Allthen click
Execute. This will take some time to complete. It seems that if SAM-BA loses focus during the erase procedure it can lock up. We recommend that once you click the
Executebutton you leave the computer alone until the erase procedure is completed.
Send Boot File, click execute, then browse to and select the bootloader for the device.
- Once the transfer finishes, go to
Quitand then reset the board. Make sure to properly quit the program or connection errors may result on subsequent uses.
- Now reset the board. Congratulations, your board is now running the loaded program!