From a77e734a8864a823f8f28d3719821bc62d2c11dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20J=C3=A4ger?= Date: Sat, 31 Oct 2026 15:19:33 +0100 Subject: [PATCH] boards: spinvert: enable storage and ThingSet CAN Enable NVS in flash for the ThingSet storage. As the STM32G0B1 doesn't have an RNG, a timer-based number generator is used for the automatic CAN node address assignment of ThingSet. The board is added to the firmware build tests, as it is supported by the DAQ driver now. Co-Authored-By: Claude Opus 5.5 --- app/sample.yaml | 1 + .../boost_4820/spinvert_boost_4820_defconfig | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/app/sample.yaml b/app/sample.yaml index 82eeb57..8e907ba 100644 --- a/app/sample.yaml +++ b/app/sample.yaml @@ -17,6 +17,7 @@ tests: - nucleo_g474re - pwm_2420_lus@0.2.0 - pwm_2420_lus@0.3.0 + - spinvert_boost_4820 integration_platforms: *boards charge_controller.firmware.uext_oled: extra_args: SHIELD=uext_oled diff --git a/boards/spinvert/boost_4820/spinvert_boost_4820_defconfig b/boards/spinvert/boost_4820/spinvert_boost_4820_defconfig index 28f5160..543da4a 100644 --- a/boards/spinvert/boost_4820/spinvert_boost_4820_defconfig +++ b/boards/spinvert/boost_4820/spinvert_boost_4820_defconfig @@ -17,7 +17,20 @@ CONFIG_UART_CONSOLE=y CONFIG_PWM=y +CONFIG_FLASH=y +CONFIG_FLASH_PAGE_LAYOUT=y +CONFIG_FLASH_LOG_LEVEL_WRN=y + +CONFIG_NVS=y +CONFIG_NVS_LOG_LEVEL_WRN=y + CONFIG_CAN=y CONFIG_ISOTP=y CONFIG_ISOTP_FAST=y CONFIG_THINGSET_CAN=y + +# The STM32G0B1 doesn't have an RNG, so a timer-based (non-random) number generator is used for the +# automatic CAN node address assignment of ThingSet. ENTROPY_GENERATOR is required by THINGSET_CAN, +# even though there is no entropy driver. +CONFIG_ENTROPY_GENERATOR=y +CONFIG_TEST_RANDOM_GENERATOR=y