File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -124,25 +124,25 @@ void rt1050_init_pins(void)
124
124
125
125
void main (void )
126
126
{
127
- hal_init ();
128
- if (wolfBoot_current_firmware_version () == 1 ) {
129
- wolfBoot_update_trigger ();
130
- return ;
131
- }
132
-
133
127
imx_rt_init_boot_clock ();
134
128
#if defined(CPU_MIMXRT1062DVL6A ) || defined(CPU_MIMXRT1064DVL6A )
135
129
rt1060_init_pins ();
136
130
#elif defined(CPU_MIMXRT1052DVJ6B )
137
131
rt1050_init_pins ();
138
132
#endif
139
133
SystemCoreClockUpdate ();
140
- SysTick_Config (SystemCoreClock / 1000U );
141
- init_debug_console ();
142
134
143
135
PRINTF ("wolfBoot Test app, version = %d\r\n" ,
144
136
wolfBoot_current_firmware_version ());
145
137
138
+ if (wolfBoot_current_firmware_version () == 1 ) {
139
+ wolfBoot_update_trigger ();
140
+ return ;
141
+ }
142
+
143
+ SysTick_Config (SystemCoreClock / 1000U );
144
+ init_debug_console ();
145
+
146
146
while (1 ) {
147
147
/* 100ms delay */
148
148
SDK_DelayAtLeastUs (100 * 1000 , SDK_DEVICE_MAXIMUM_CPU_CLOCK_FREQUENCY );
You can’t perform that action at this time.
0 commit comments