Merge pull request #848 from bigbrett/tc3-fix-uart-gates

tc3: fix debug uart macro protection
pull/850/head
David Garske 2026-08-10 12:31:31 -07:00 committed by GitHub
commit 485b446e9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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());