Skip to content

Commit 34b5636

Browse files
committed
remove SysTick_Config, add wolfBoot_success
1 parent 245f5f4 commit 34b5636

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test-app/app_imx_rt.c

+3-4
Original file line numberDiff line numberDiff line change
@@ -131,18 +131,17 @@ void main(void)
131131
rt1050_init_pins();
132132
#endif
133133
SystemCoreClockUpdate();
134+
init_debug_console();
134135

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

138139
if (wolfBoot_current_firmware_version() == 1) {
139140
wolfBoot_update_trigger();
140-
return;
141+
} else {
142+
wolfBoot_success();
141143
}
142144

143-
SysTick_Config(SystemCoreClock / 1000U);
144-
init_debug_console();
145-
146145
while (1) {
147146
/* 100ms delay */
148147
SDK_DelayAtLeastUs(100 * 1000, SDK_DEVICE_MAXIMUM_CPU_CLOCK_FREQUENCY);

0 commit comments

Comments
 (0)