tc3: fix debug uart macro protection

pull/848/head
Brett Nicholas 2026-08-10 10:20:58 -06:00
parent 0a8ad18e51
commit 5eaf0b0a55
2 changed files with 9 additions and 0 deletions

View File

@ -175,6 +175,11 @@ ifeq ($(DEBUG_UART),1)
APP_NEEDS_STRING:=1
endif
ifeq ($(ARCH),AURIX_TC3)
# AURIX RAM_CODE HAL flash drivers need wolfBoot memcpy
APP_NEEDS_STRING:=1
endif
ifeq ($(APP_NEEDS_STRING),1)
APP_OBJS+=../src/string.o
endif

View File

@ -66,7 +66,9 @@ void tc3tc_main(void)
/* disable external WATCHDOG on the board */
bsp_board_wdg_Disable();
#ifdef DEBUG_UART
uart_init();
#endif
wolfBoot_printf("TC3xx Test Application\n");
wolfBoot_printf("Version: %d\n", wolfBoot_current_firmware_version());
@ -122,7 +124,9 @@ void tc3arm_main(void)
/* disable external WATCHDOG on the board */
bsp_board_wdg_Disable();
#ifdef DEBUG_UART
uart_init();
#endif
wolfBoot_printf("TC3xx HSM Test Application\n");
wolfBoot_printf("Version: %d\n", wolfBoot_current_firmware_version());