forked from EmbeddedTeam/app_photomagnetic
- Add UID encoding/decoding with flash storage and CRC16 validation - Add write UID (0x07) and LED strip color (0x08) protocol commands - Add debug LED strip configuration option - Switch MCUboot signing from RSA-2048 to ECDSA-P256 - Add SMP serial client for firmware upload over UART - Add firmware version output on boot - Update upgrade documentation with ECDSA key generation steps
15 lines
730 B
Plaintext
15 lines
730 B
Plaintext
# 启用 MCUboot bootloader
|
|
SB_CONFIG_BOOTLOADER_MCUBOOT=y
|
|
|
|
# 把 MCUboot + 应用合并成一个 hex(方便一次性烧录/产线),
|
|
# 产物: build/merged_<board>.hex(如 merged_dr2501a_g0b0ce_stm32g0b0xx.hex)
|
|
SB_CONFIG_MERGED_HEX_FILES=y
|
|
|
|
# 固件签名密钥(开发阶段使用默认密钥)
|
|
# 注意:用 ECDSA-P256 而不是 RSA-2048 —— RSA 会把 MCUboot 撑到 ~57KB,
|
|
# 超过 48KB 的 boot 分区;ECDSA 验证代码小很多,MCUboot 能装进 48KB。
|
|
# 签名类型必须在这里用 SB_CONFIG_BOOT_SIGNATURE_TYPE_* 指定,
|
|
# 写 mcuboot.conf 里的 CONFIG_BOOT_SIGNATURE_TYPE_* 会被 sysbuild 强制覆盖。
|
|
SB_CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256=y
|
|
SB_CONFIG_BOOT_SIGNATURE_KEY_FILE="${APP_DIR}/keys/mykey.pem"
|