2024-12-23 12:38 AM - last edited on 2024-12-23 01:21 AM by Andrew Neil
Good morning everyone,
I'm here to ask for advice regarding the approach I want to take for enabling firmware updates by non-expert users.
I have built hardware that uses the STM32F103, and over time I will certainly release updates. Currently, I'm using a serial interface for uploads, but I would like to simplify the process further (avoiding the need to move the BOOT0 switch to + or use USB-UART converter chips).
I'm studying the DFU upload method and have tried various bootloaders. I found one called dapboot, which is quite appealing because when you connect the USB, it opens the DFU web interface to upload the firmware directly.
The problem is that I can't integrate it with my sketch written using PlatformIO and the Arduino framework.
I want my program sketch to trigger the dapboot bootloader using a specific button combination. If this combination is not pressed, the program should run the main application sketch instead.
I've tried writing to two different memory addresses, but I lack the skills to manage the two types of startup.
Can anyone help me?
Thank you!