How alkamotors/am32-bootloader works
AM32 Bootloader is embedded firmware for ESCs, with a separate image that can rewrite the bootloader itself. The principal runtime is the bootloader’s command-handling loop; the excerpt shows serial receive/transmit helpers and EEPROM address handling, while the README identifies the product but does not document its protocol. DroneCAN is a distinct integration referenced by the bootloader entry point. The repository also contains MCU-specific support libraries. Source excerpts are partial, so unshown programming and dispatch relationships are omitted rather than inferred.
Main entry points: main.c Bootloader · DroneCAN.c DroneCAN adapter · eeprom.c EEPROM support · dronecan_msgs.h Generated messages
Components 15
Bootloader runtime
- Bootloader
bootloader/main.c - EEPROM support
Mcu/f031/Src/eeprom.c
DroneCAN integration
- DroneCAN adapter
bootloader/DroneCAN/DroneCAN.c - CAN transport
bootloader/DroneCAN/libcanard/canard.c - Generated messages
bootloader/DroneCAN/dsdl_generated/dronecan_msgs.h
Bootloader updater
- Bootloader updater
bl_update/main.c
MCU support
- STM32F031 support
Mcu/f031/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_adc.h - STM32G071 support
Mcu/g071/Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h - STM32G431 support
Mcu/g431/Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h - MCXA153 support
Mcu/a153/Drivers/inc/MCXA153.h - GD32E230 support
Mcu/e230/Drivers/CMSIS/Include/gd32e23x.h - AT32F415 support
Mcu/f415/Drivers/CMSIS/cm4/device_support/at32f415.h - AT32F421 support
Mcu/f421/Drivers/CMSIS/cm4/device_support/at32f421.h - CH32V203 support
Mcu/v203/Drivers/Peripheral/inc/ch32v20x.h
Other components
- ESC client
Connections 4
- ESC client → Bootloader: sends commands
bootloader/main.c - Bootloader → EEPROM support: includes support
bootloader/main.c - Bootloader → DroneCAN adapter: references integration
bootloader/main.c - DroneCAN adapter → Generated messages: uses definitions
bootloader/DroneCAN/DroneCAN.c