Skip to content
Firmware for the ADALM1000.
C C++ Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
asf asf/sam/utils/compiler: Fix a syntax error Sep 23, 2016
ci/travis ci,build: add initial Travis-CI integration Feb 11, 2019
scripts scripts/sam-ba.py: ignore IO errors that occur from time to time Apr 6, 2016
src Update main.c Feb 12, 2019
.gitignore drop superfluous initial values Aug 18, 2014
.gitmodules Remove asf submodule - add only the required files (asf v3.27.0.28) Apr 26, 2016
.travis.yml
IO.mkd Update IO.mkd Apr 23, 2015
LICENSE add additional comments to the firmware Apr 13, 2015
Makefile Add support for ADM1178 (Rev. F) Dec 8, 2017
README.md README: Fix BOSSA link Jul 6, 2017
config.mk config.mk: Change the PRJ_PATH from "asf" to "." Sep 23, 2016
m1000.bin Add support for ADM1178 (Rev. F) Dec 8, 2017

README.md

This is the firmware for the microcontroller on the M1K.

Unless you are an advanced user, you should probably start at the Table of Contents.

Build instructions:

With arm-none-eabi-gcc version 4.7 or later installed, run the following commands:

  • git clone https://github.com/analogdevicesinc/m1k-fw.git
  • sudo make flash - this command will build the firmware image and attempt to load it onto any attached SAM3U devices with either SAMBA or M1K vendor IDs.

make flash also requires Python 2.7 or later and PyUSB for the script to load the firmware on the target device.

Unplug and replug the attached device to try out the new firmware.

Updating on Windows

All SAM parts have a slightly broken boot ROM which presents a serial interface that is capable of flashing a firmware image to the device in its raw state.

Due to the brokenness inherent in the bootloader, the recommended tool for updating the firmware is the Python script in this repository which treats the USB device implementing the CDC-ACM USB device class as a raw vendor device and directly interacts without using the serial interface and triggering bugs. This is advantageous due to finer grained control over packet boundaries - if SAM-BA receives commands split across subsequent USB packets, an error condition will arise. Unfortunately, Windows does not offer the ability for userspace programs to detatch kernel drivers, so the device must be interacted with as a serial device.

BOSSA is a third-party open-source cross-platform tool which implements the required serial protocol and works around the afforementioned bugs. Install the latest version from SourceForge and follow the instructions in the documentation to flash the m1000.bin file included in this repository.

Before you use BOSSA, you must first manually trigger the bootloader on the ADALM1000. This can be done by shorting out the small jumper on the "top" of the board, by the labels for the PIO connector. The device should disconnect from USB and re-enumerate as a SAMBA bootloader device / USB modem. For more information, see this detailed image calling out the bootloader jumper.

Flashing manually via the command line

There are two options for flashing from the command line. The first is to use the previously mentioned sam-ba.py script in this repository or use the bossac application.

Both require the device to be in programming mode in which the LED should be off. To forcibly enable the mode, short the pads on top of the board as seen in this image.

Using the python script

The script's dependencies are pyusb and bitstring. Either python-2.7 or python-3.3 and up should work.

From the root directory of the repository run the script using the following:

python scripts/sam-ba.py /path/to/firmware/file

If no firmware file path is specified the script currently tries to use the m1000.bin file in the root directory of the repository.

Using bossac

First the bossac application must be built or downloaded. For Windows and OS X the following binaries are available.

For Linux, it's easy to build your own via:

git clone https://github.com/analogdevicesinc/BOSSA.git
cd BOSSA
make bin/bossac
cd bin

Then using the bossac application, run something similar to following command (altering where necessary for OS differences):

./bossac -e -w -v -b /path/to/firmware/file
You can’t perform that action at this time.