2025-12-12 2:38 PM - last edited on 2025-12-13 5:00 AM by Andrew Neil
Hello,
I had developed my firmare in STM Cube ide 1.5.1 (stm32h7/)
Project repo is here: https://github.com/silelis/MustangRadio_develepementVersion/tree/main/02_Firmware/02_STM32/Radio_main
And after I have updated IDE to 2.0.0 I have noticed that STM32h7 falls into hard error interrupt.
It also appears when I uninstall IDE and installed pure 2.0.0.
When I moved back to 1.5.1 hard errot dissapired.
Please check this error in IDE.
2025-12-12 2:46 PM
I made mistake. Working IDE version is 1.15.1 not 1.5.1. :\
2025-12-12 11:28 PM
Hi,
Try with IDE 1.19. , and tell...
2025-12-13 4:59 AM
@silelis wrote:Please check this error in IDE.
It's (almost) certainly not an error in the IDE - it will be an error in your code.
Quite possibly, the GCC toolchain version changed between IDE v1.15.1 and v2.0.0 - you're jumping quite a lot of versions there!
It is not uncommon that a change of toolchain will expose latent bugs in your code.
You need to debug the Hard Fault to find what's going on - see:
debugging Cortex-M (including STM32) Hard Faults.
2025-12-13 5:10 AM
On 1.19.0 also
void HardFault_Handler(void)
{
/* USER CODE BEGIN HardFault_IRQn 0 */
/* USER CODE END HardFault_IRQn 0 */
while (1)
{
/* USER CODE BEGIN W1_HardFault_IRQn 0 */
/* USER CODE END W1_HardFault_IRQn 0 */
}
}appears.
2025-12-13 5:13 AM
How is it possible that on previous versions firmware works and on newes not??
2025-12-13 5:14 AM
So, again, debug the Hard Fault.
Highly unlikely to be a problem with the IDE itself.
2025-12-13 5:18 AM
@silelis wrote:How is it possible that on previous versions firmware works and on newes not??
Again, it's not uncommon that a change of toolchain will expose latent bugs in your code.
Did you just change the IDE, or did you also regenerate code?
2025-12-13 5:25 AM
>It is not uncommon that a change of toolchain will expose latent bugs in your code.
Right, but its more 50 : 50 ->
It is not uncommon that a change to new toolchain to introduce new bugs.
At least my experience.