2023-06-29 01:32 PM
Hello,
I have a project that STM32CubeIDE told me to upgrade the file so I did. In the embedded software packages manager it shows, MCU Package STM32F4 Series 1.27.1. I believe it told me I was using version 1.26.1 or 1.26.2.
After fixing the required changes the program builds and will run in debug but it only gets through a short amount of the program before ending up at the Default_Handler:
I am using a STM32F401CE
When I look at the Debug Thread, it shows an IRQ that I shouldn't have occurred. I am not using TIM4.
If I place an IRQ in my _it.c file, the code will run but then it will be a different IRQ_Handler. What is going on?
I placed a void TIM4_IRQHandler(void) in _it.c and now, I get another. What is wrong?
Thanks.
2023-06-29 01:50 PM
Answer: your code in led.c or NeoPixel.c is wrong. 😉 Some exception is generated and not handled.
2023-06-29 02:16 PM
You're probably in the default handler, which is an alias for all unused irq handlers. You can look at the VECTACTIVE bits to determine which interrupt it's in. That should give you enough information to fix what's going wrong.