- 17 GPIO - all interrupt capable
- 8 ADC channels with 14-bit precision
- 17 PWM channels
- 2 UARTs
- 4 I2C buses
- 2 SPI buses
- PDM Digital Microphone
- Qwiic Connector
For more details visit the SparkFun website.
The kernel can be programmed using the Ambiq python scrips. cd
into boards/apollo3/sparkfun_redboard_artemis_nano
directory and run:
$ make flash
(or)
$ make flash-debug
This will flash Tock onto the board via the /dev/ttyUSB0 port. If you would like to use a different port you can specify it from the PORT
variable.
$ PORT=/dev/ttyUSB2 make flash
This will flash Tock over the SparkFun Variable Loader (SVL) using the Ambiq loader. The SVL can always be re-flashed if you want to.
The RedBoard Artemis Nano exposes JTAG via the small headers in the middle of the board. See the SparkFun hookup guide for a picture of this.
SparkFun sell accessories you can use to connecting to this. It appears something like the J-Link BASE will work, but that hasn't been tested by Tock.
Instead, Tock has tested debugging with the Black Magic Probe. The Black Magic Probe (BMP) is an easy to use, mostly plug and play, JTAG/SWD debugger for embedded microcontrollers.
In order to debug with the BMP, first connect the 2x5 SWD cable to the RedBoard and the BMP. The ribbon on the RedBoard should face towards the USB connection and on the BMP away from the USB connection.
Then power on both boards.
Fire up an ARM GDB instance and attach to the BMP with:
target extended-remote /dev/ttyACM0
monitor swdp_scan
attach 1
You can then use GDB to debug the RedBoard