summaryrefslogtreecommitdiff
path: root/ports/stm32/mboot/main.c
AgeCommit message (Collapse)Author
2019-10-13remove ports/stm32Dan Halbert
2018-06-22stm32/mboot: Add support for erase/read/write of external SPI flash.Damien George
This patch adds support to mboot for programming external SPI flash. It allows SPI flash to be programmed via a USB DFU utility in the same way that internal MCU flash is programmed.
2018-06-19stm32/mboot: Define constants for reset mode cycling and timeout.Damien George
And fix timeout value so that it does actually finish with reset_mode=1.
2018-06-18stm32/mboot: Adjust user-reset-mode timeout so it ends with mode=1.Damien George
If the user button is held down indefinitely (eg unintenionally, or because the GPIO signal of the user button is connected to some external device) then it makes sense to end the reset mode cycle with the default mode of 1, which executes code as normal.
2018-06-08stm32/mboot: Increase USB rx_buf and DFU buf sizes to full 2048 bytes.Damien George
The DFU USB config descriptor returns 0x0800=2048 for the supported transfer size, and this applies to both TX (IN) and RX (OUT). So increase the rx_buf to support this size without having a buffer overflow on received data. With this patch mboot in USB DFU mode now works with dfu-util.
2018-05-24stm32: Add new component, the mboot bootloader.Damien George
Mboot is a custom bootloader for STM32 MCUs. It can provide a USB DFU interface on either the FS or HS peripherals, as well as a custom I2C bootloader interface.