HardFault_Handler
Hello,
until recently, I used the STM32F411CEU6 microcontroller; lately, I switched to the STM32G0B1.
I've ported the old C++ code from the STM32F411CEU6 to the STM32G0B1.
Everything works correctly; the only issue is that now, 'HardFault_Handler()' occurrences happen randomly.
When I manage to identify them through the debugger, I see that they occur in various places
(there's always corrupted memory). For months, I've checked all possible allocations and addressing,
but the code seems correct to me. The only thing that has significantly reduced the HardFault_Handler
occurrences is the elimination of all 'volatile' directives.
Does anyone have any idea why this might be happening?
Thank you