Skip to content

Commit cecc047

Browse files
authored
feat(CMSIS, Other): Add MAX32672 SBT support in Zephyr (#1597)
Signed-off-by: Ryan Wiebe <ryan.wiebe@analog.com>
1 parent f02180b commit cecc047

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Libraries/CMSIS/Device/Maxim/MAX32672/Source/sla_header_MAX32672.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ typedef struct {
5454
unsigned int AppVersionNumber; //> Version of this application
5555
} flash_app_header_t;
5656

57+
#ifdef USE_ZEPHYR_SECTIONS
58+
__attribute__((section(".rom_start"))) __attribute__((__used__))
59+
#else
5760
__attribute__((section(".sb_sla_header"))) __attribute__((__used__))
61+
#endif
5862
const flash_app_header_t sb_header = {
5963
.Magic =
6064
{

Libraries/zephyr/MAX/Source/MAX32672/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ zephyr_library_sources(
6767
${MSDK_PERIPH_SRC_DIR}/QDEC/qdec_reva.c
6868
)
6969

70+
if (CONFIG_SOC_FAMILY_MAX32_SECURE_SOC_SIGNING)
71+
zephyr_library_sources(${MSDK_CMSIS_DIR}/Source/sla_header_MAX32672.c)
72+
endif()
73+
7074
if (CONFIG_ADC_MAX32)
7175
zephyr_library_sources(
7276
${MSDK_PERIPH_SRC_DIR}/ADC/adc_me21.c

0 commit comments

Comments
 (0)