Fixed build with Cmake on STM32H7 with TEST_APPS.

As reported in #586
pull/587/head
Daniele Lacamera 2025-08-07 19:38:10 +02:00
parent e07df6d4bd
commit f3b4b17bdf
3 changed files with 3 additions and 1 deletions

View File

@ -126,7 +126,7 @@ if(BUILD_TEST_APPS)
if(WOLFBOOT_TARGET STREQUAL "sim")
target_link_options(image PRIVATE -Wl,-gc-sections -Wl,-Map=image.map)
else()
target_link_options(image PRIVATE -T${APP_LSCRIPT} -Wl,-gc-sections -Wl,-Map=image.map)
target_link_options(image PRIVATE -T${APP_LSCRIPT} -Wl,-gc-sections -Wl,-Map=image.map -ffreestanding -nostartfiles)
endif()
if(WOLFBOOT_TARGET IN_LIST ARM_TARGETS)

View File

@ -31,6 +31,8 @@ extern unsigned int _start_heap;
#ifdef TARGET_stm32f4
extern void isr_tim2(void);
#else
#define isr_tim2 isr_empty
#endif
#ifdef TARGET_stm32h5