Version 1.30
dap42 firmware release 1.30
This release includes CDC-ACM performance enhancements, CAN->USB support, and a bootloader update.
Changelog
CDC-ACM enhancements
- The serial port now uses a DMA-driven circular buffer for receiving data on the hardware UART.
- On F042 based targets, the receive buffer has been bumped from 128B to 1024B
- On F103 based targets, the receive buffer has been bumped from 1024B to 4096B
- The serial port has been stress-tested up to 2 MBaud on F042 targets and 2.25 MBaud on F103 targets.
- The CDC-ACM driver now uses the USB SOF event for framing transfers instead of a timeout.
CAN->USB support
- CAN-capable targets now expose a second CDC-ACM interface that encodes CAN frames using the slcan/Lawicel CANUSB protocol.
- The slcan interface has been tested with USBtinviewer, the socketcan slcand daemon, and the UAVCAN GUI Tool.
- Only F042-based targets can collect CAN frames while connected over USB.
- Currently, the only official target with CAN enabled is the BRAINV3.3
- To share CAN frames with the debugger, connect the CAN transceiver's RX pin to pin
P0_15
. - The debugger can only receive frames in listen-only/silent mode - it cannot transmit or ACK frames.
- The
BOOT0
pin must be disabled to use CAN - see FLASHING.md for details.
- To share CAN frames with the debugger, connect the CAN transceiver's RX pin to pin
Bootloader update
- The bundled dapboot DFU bootloader for DAP103 STLink targets has been updated from version 1.0 to version 1.10.
- Version 1.10 re-enables DFU upload (reading out the existing firmware) and prevents writing past the end of flash.
- To update the bootloader and the debugger firmware at the same time, you can flash the
DAP103-dapboot-combined-stlink-updater.bin
updater over DFU, which will upgrade the bootloader and install DAP103 version 1.30.
Prebuilt binaries
Binaries for F042 targets
DAP42.bin
is the firmware for native dap42 hardware.BRAINv3.3.bin
is the firmware for dap42 hardware embedded into CalSol's custom LPC1549 development board.
Binaries to flash onto STLink/v2 clones via SWD
DAP103-dapboot-combined-stlink.bin
contains the debugger firmware bundled with the dapboot DFU bootloader.DAP103-stlink.bin
is just the debugger firmware, with no firmware upgrade capabilities.
Binaries to upgrade reprogrammed STLink/v2 clones via DFU
DAP103-DFU-stlink.bin
is just the updated debugger firmware.DAP103-dapboot-combined-stlink-updater.bin
is a bootloader updater that overwrites the bootloader and itself with the contents ofDAP103-dapboot-combined-stlink.bin
after loading it over DFU.
Sources
Full source code for the dap42 project can be found online:
- dap42: https://github.com/devanlai/dap42
- dapboot: https://github.com/devanlai/dapboot
- bootup: https://github.com/devanlai/bootup
- libopencm3: https://github.com/libopencm3/libopencm3