QUERY · ISSUE
STM32: Not able to build mboot without USB and user switch
port-stm32
I'm trying to do a board without a USB or switch, using the STM32F411. I want to use MBOOT to update the FW only when it is called from within an application so have no need for a USB or switch. It will use an external SPI flash chip. I've got this working on the basic pyboard.
I've declared the below - yet MBOOT gives multiple errors when calling sudo make BOARD=NAME__ USE_MBOOT=1 clean all
#define MICROPY_HW_HAS_SWITCH (0)
#define MICROPY_HW_ENABLE_USB (0)
#define MICROPY_HW_USB_FS (0)
Is there a way to use MBOOT without a USB or switch?
CANDIDATE · PULL REQUEST
ports/stm32/mboot - Set USE_MBOOT=1 by default
This allows boards that need USE_MBOOT to be built
properly whether USE_MBOOT=1 is specified when building mboot.