Firmware for the Mobilinkd TNC3. STM32L433-based Bluetooth/LE KISS TNC.
 
 
 
Go to file
Rob Riggs a587cdc170 Update firmware instructions and troubleshooting. 2019-07-24 20:39:15 -05:00
.settings
Drivers
Inc Set the MAC address on startup. Support 'reset to defaults' by holding down power button while pressing reset. 2019-01-19 17:41:56 -06:00
Middlewares
Src Previous changes to USB connection state management to fix behavior on Windows was broken. This appears to work on Windows, Linux and MacOS. 2019-06-08 23:05:03 -05:00
TNC Force DCD off when no audio is present. Update version to 1.1.4rc1. 2019-06-13 22:01:46 -05:00
newlib
startup
.cproject
.gitignore
.mxproject
.project
LICENSE
README.md Update README.md 2019-01-21 15:11:39 -06:00
STM32L433CCUx_FLASH.ld
WindowsFirmwareUpdate.md Update firmware instructions and troubleshooting. 2019-07-24 20:39:15 -05:00
bm78_eeprom Update BLE settings to improve responsiveness (at the expense of power consumption). Change BT class of service to make device icon more distinct. Update version to 1.1.0. 2019-01-21 14:35:41 -06:00
firmware.ioc
make_bm78_eeprom_c.py
stlink-tnc3.cfg
stm32l4x.cfg

README.md

This is the firmware for the TNC3 version 2.1.1 hardware.

Building

Use Eclipse with CDT and the GNU MCU Eclipse plugins.

Debugging

Logging is enabled in debug builds and is output via ITM (SWO). The firmware is distributed with an openocd stlink config file that enables ITM output to a named pipe -- swv. You must create this pipe in the top level directory.

To read from this pipe, open a terminal and run:

while true; do tr -d '\01' < swv; done

If you change the MCU's core clock, you need to adjust the timing in the stlink-tnc3.cfg config file.

Installing firmware

Firmware can be installed via the on-board ST/LINK port or via USB DFU.

USB DFU

  1. Download the STM32CubeProgrammer. https://s3.amazonaws.com/mobilinkd/en.stm32cubeprog-1.4.0.zip This programmer will work on Linux, OS X, and Windows.

  2. Download the ELF file from the release (or that you have built from source).

  3. Plug the TNC into a USB port and turn the TNC on. You should see a USB serial port enumerated.

  4. Put the TNC into DFU mode by pressing the DFU button on the side. The TNC will only enter DFU mode when plugged into a USB port.

TNC3 Diagram

There is no visible indication on the TNC that it is in DFU mode

  1. You should see the serial port device go away and a new DFU device appear.

  2. Run the STM32CubeProgrammer from the command-line. (Replace "firmware.elf" with the appropriate firmware filename.)

    ./STM32_Programmer_CLI -c port=USB1 -d firmware.elf -v -g 0x8000000

  3. When that is complete, the DFU device will disappear and the serial port device will re-appear.