Atmel SAM-BA In-system Programmer

Atmel SAM-BA® software provides an open set of tools for programming the Atmel SAMA5, SAM3, SAM4, SAM7 and SAM9 ARM® core-based microcontrollers.

It is useful to program the NAND flash mounted on Acqua SoM. SAM-BA is available for Windows os Linux. This article illustrates how to install and use it on Linux.

Go to the Sam-ba download page on:

and download the files:

  • SAM-BA 2.12 for Linux (
  • SAM-BA 2.12 Patch 6 for Linux (patch6.gz)

Move the files on your home directory then both by typing:

~/$ unzip
~/$  gunzip patch6.gz

Move inside the sam-ba_cdc_cdc_linux just created and apply the patch 6:

~/$ cd sam-ba_cdc_cdc_linux
~/sam-ba_cdc_cdc_linux$ patch -p1 ../patch6

Try to remove the usbserial module:

~/sam-ba_cdc_cdc_linux$ rmmod usbserial
Error: Module usbserial is in use by: ftdi_sio

In this case remove first the ftdi_sio modeule and then usbserial:

~/sam-ba_cdc_cdc_linux$ sudo rmmod ftdi_sio
~/sam-ba_cdc_cdc_linux$ sudo rmmod usbserial

Re-load usbserial kernel moduleType:

~/sam-ba_cdc_cdc_linux$ sudo modprobe usbserial vendor=0x03eb product=0x6124

Insert the Atmel board and check which device was created

~/sam-ba_cdc_cdc_linux$ dmesg

Launch sam-ba:

~/sam-ba_cdc_cdc_linux$ sudo ./sam-ba