Skip to content

Commit

Permalink
Merge pull request #352 from jpbland1/imx-test-app-fix
Browse files Browse the repository at this point in the history
add hal_init to the imx test-app and trigger update
  • Loading branch information
dgarske authored Aug 22, 2023
2 parents 498c702 + 34b5636 commit 6bb05d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test-app/app_imx_rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,16 @@ void main(void)
rt1050_init_pins();
#endif
SystemCoreClockUpdate();
SysTick_Config(SystemCoreClock / 1000U);
init_debug_console();

PRINTF("wolfBoot Test app, version = %d\r\n",
wolfBoot_current_firmware_version());

/* enable to test update trigger on reboot */
#if 0
wolfBoot_update_trigger();
#endif
if (wolfBoot_current_firmware_version() == 1) {
wolfBoot_update_trigger();
} else {
wolfBoot_success();
}

while (1) {
/* 100ms delay */
Expand Down

0 comments on commit 6bb05d5

Please sign in to comment.