Skip to main content
Graduate
May 15, 2024
Question

Hard Fault detected

  • May 15, 2024
  • 2 replies
  • 1095 views

Hi

I am using STM32U575ZIT6 microcontroller. I have created a simple program that turns on several LEDs on the board, but when switching to the non-secure zone, a Hard Fault occurs.

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    May 15, 2024

    Hi @Istillaga 
    Did you program secure or non-secure image first? It could be linked to the programming order.

    IstillagaAuthor
    Graduate
    May 15, 2024

    Hi @FBL ,

    I first programmed the non-secure image. Previously, I managed to get it to work with another program, but it doesn't work with this one. I followed the same steps and nothing. I also configured the option bytes to start from the appropriate addresses.

    IstillagaAuthor
    Graduate
    May 16, 2024

    I also get the following message from the debugger: No source available for "<signal handler called>() at 0xffffffa9".

    Running a blank program also gives the error, so I suppose it might be some configuration of the option bytes.