TEST-O Code and Schematics

Main firmware:

git clone https://git.trueserve.org/trueControl/sc7-testo-firmware.git

Bootloader:

git clone https://git.trueserve.org/trueControl/sc7-testo-bootloader.git


You can get the REV2 schematic here.

Header connections

TEST-O uses the 5th and 6th pins of the addon header for SWD or UART.

UART is used by the bootloader as long as the left knob is not turned all the way counter-clockwise. In this case, and in the main firwmare, the aux pins are configured for SWD.

Refer to this image for the pinout:

(todo)

Bootloader notes

The bootloader only supports standard XMODEM with 128-byte payload packets.

No flash pages are protected. The bootloader will only erase pages if new data exists to write to them. Thus if you use Flash at the end of the memory range to store information, and your firmware.bin does not encroach on this space, the data will not be erased nor will it be overwritten.

The bootloader should be smart enough to not overwrite itself, but your program is only as smart as you make it. If you have Flash writing routines, avoid writing to the first 2K of Flash as the bootloader lives there. If the bootloader is overridden, you will need to use a DAPLink debugger to reprogram it (assuming of course that you don't remap the SWD pins...)