forked from EmbeddedTeam/app_photomagnetic
Implement device firmware upgrade using MCUboot Serial Recovery over usart1 (reusing the existing protocol UART). The application layer handles upgrade commands (0xFF) to trigger bootloader entry, while MCUboot manages the actual firmware swap with RSA signature verification. Key additions: - sysbuild.conf to enable MCUboot bootloader with signing key - mcuboot.conf with serial recovery and watchdog feed settings - Kconfig option APP_DFU (default y) with conditional compilation - dfu.cpp module for DFU initialization - Upgrade command callback in com.hpp (bootmode_set + sys_reboot) - Documentation for upgrade procedures and change notes
32 lines
662 B
Plaintext
32 lines
662 B
Plaintext
CONFIG_CBPRINTF_FP_SUPPORT=y
|
|
CONFIG_STD_CPP23=y
|
|
CONFIG_CPP=y
|
|
CONFIG_REQUIRES_FULL_LIBCPP=y
|
|
|
|
CONFIG_CONSOLE=y
|
|
CONFIG_SERIAL=y
|
|
CONFIG_UART_INTERRUPT_DRIVEN=y
|
|
CONFIG_HWINFO=y
|
|
|
|
|
|
CONFIG_LED=y
|
|
|
|
# CONFIG_PRINTK=n
|
|
CONFIG_ADC=y
|
|
CONFIG_SPI=y
|
|
CONFIG_SPI_STM32=y
|
|
# SPI 中断模式:传输带 1s 超时,多路高频 SPI 下不会永久挂死(与 ch9438 测试对齐)
|
|
CONFIG_SPI_STM32_INTERRUPT=y
|
|
CONFIG_SENSOR=y
|
|
CONFIG_ADC_MCP320X_ACQUISITION_THREAD_STACK_SIZE=2048
|
|
CONFIG_REBOOT=y
|
|
CONFIG_WATCHDOG=y
|
|
CONFIG_PWM=y
|
|
|
|
# # Debug logging
|
|
# CONFIG_LOG=y
|
|
# CONFIG_LOG_MODE_IMMEDIATE=y
|
|
# CONFIG_ADC_LOG_LEVEL_DBG=y
|
|
# CONFIG_SENSOR_LOG_LEVEL_DBG=y
|
|
# CONFIG_SPI_LOG_LEVEL_DBG=y
|