Sometimes an application requires teensy firmware updates without access to a PC and the USB port. So here is a serial port/hex program loader that is ready for alpha testing/feedback/fixes. Basic algorithm: load new program to upper half of flash memory then copy to lower flash memory and then reboot. Easily modified to work with any serial data stream (bluetooth, wifi, etc). Has integrity checks - it won't brick the MCU if a update isn't fully loaded.
Note, when dealing with flash, it is always possible to permanently ruin your teensy - don't run this unless you are willing to risk that; with your only recourse being to buy a new teensy.
See the flasher.* code here: https://github.com/Photosynq/PhotosynQ-Firmware/tree/master/multispeq1
Note: version 1.2 tested on teensy 3.0, 3.1 and 3.2. Don't try it on anything else.
tags: bootloader, OTA, flash
Note, when dealing with flash, it is always possible to permanently ruin your teensy - don't run this unless you are willing to risk that; with your only recourse being to buy a new teensy.
See the flasher.* code here: https://github.com/Photosynq/PhotosynQ-Firmware/tree/master/multispeq1
Note: version 1.2 tested on teensy 3.0, 3.1 and 3.2. Don't try it on anything else.
tags: bootloader, OTA, flash
Last edited: