0

Working with STM32H743 (cortex-m7 CPU)
My OS wrapper crashes at init because it checks if IPSR value is 0 (ST CMSIS V2 with FreeRTOS)
So I added this

int main(void)
{
    volatile uint32_t testvar1;
    testvar1 = __get_IPSR();

I read 3 and looking at this
It means I am in Hardfault, but it's the first lines of my main
Why would I read hardfault there ?

GabrielT
  • 397
  • 6
  • 17

0 Answers0