Reset Handler Crash
Posted: Tue Apr 26, 2016 4:05 pm
Does anyone know what can cause the ResetHandler code to be corrupted? My project was working, but now crashes shortly after boot. Below is my ResetHandler code, which contains a jump to chvprintf, which seems wrong...
What could cause this to happen?
I'm running ChibiOS 16.1.5 on STM32F205. My project was previously booting, but now crashes immediately. I'm trying to use Olimex ARM-USB-TINY-H with the SWD converter. Interestingly my STLINK (from nucleo) fails to even see the micro anymore.
What could cause this to happen?
I'm running ChibiOS 16.1.5 on STM32F205. My project was previously booting, but now crashes immediately. I'm trying to use Olimex ARM-USB-TINY-H with the SWD converter. Interestingly my STLINK (from nucleo) fails to even see the micro anymore.
Code: Select all
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|0x80001c0 <Reset_Handler> cpsid i |
|0x80001c2 <Reset_Handler+2> ldr r0, [pc, #136] ; (0x800024c <endfiniloop+4>) |
|0x80001c4 <Reset_Handler+4> msr PSP, r0 |
>|0x80001c8 <Reset_Handler+8> movs r0, #2 |
|0x80001ca <Reset_Handler+10> msr CONTROL, r0 |
|0x80001ce <Reset_Handler+14> isb sy |
|0x80001d2 <Reset_Handler+18> bl 0x80011e0 <chvprintf(BaseSequentialStream*, char const*, va_list)+496> |
|0x80001d6 <Reset_Handler+22> bl 0x8001240 <chvprintf(BaseSequentialStream*, char const*, va_list)+592> |
|0x80001da <Reset_Handler+26> ldr r0, [pc, #116] ; (0x8000250 <endfiniloop+8>) |
|0x80001dc <Reset_Handler+28> ldr r1, [pc, #116] ; (0x8000254 <endfiniloop+12>) |
|0x80001de <Reset_Handler+30> ldr r2, [pc, #120] ; (0x8000258 <endfiniloop+16>) |
|0x80001e0 <msloop> cmp r1, r2 |
|0x80001e2 <msloop+2> itt cc |
|0x80001e4 <msloop+4> strcc.w r0, [r1], #4 |
|0x80001e8 <msloop+8> bcc.n 0x80001e0 <msloop> |
|0x80001ea <msloop+10> ldr r1, [pc, #112] ; (0x800025c <endfiniloop+20>) |
|0x80001ec <msloop+12> ldr r2, [pc, #92] ; (0x800024c <endfiniloop+4>) |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
remote Remote target In: Reset_Handler Line: ?? PC: 0x80001c8
(gdb)