We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 053b1ba commit fabfa84Copy full SHA for fabfa84
test-app/app_imx_rt.c
@@ -124,6 +124,12 @@ void rt1050_init_pins(void)
124
125
void main(void)
126
{
127
+ hal_init();
128
+ if (wolfBoot_current_firmware_version() == 1) {
129
+ wolfBoot_update_trigger();
130
+ return;
131
+ }
132
+
133
imx_rt_init_boot_clock();
134
#if defined(CPU_MIMXRT1062DVL6A) || defined(CPU_MIMXRT1064DVL6A)
135
rt1060_init_pins();
@@ -137,11 +143,6 @@ void main(void)
137
143
PRINTF("wolfBoot Test app, version = %d\r\n",
138
144
wolfBoot_current_firmware_version());
139
145
140
- /* enable to test update trigger on reboot */
141
-#if 0
142
- wolfBoot_update_trigger();
-#endif
-
146
while (1) {
147
/* 100ms delay */
148
SDK_DelayAtLeastUs(100 * 1000, SDK_DEVICE_MAXIMUM_CPU_CLOCK_FREQUENCY);
0 commit comments