Couple of custom board blocked in Hardfault at the beginning of the firmware

Hello everyone,

I am developping a custom board with an nrf52840 chip and 2 of my boards are constantly blocked in HardFault of the cortex m4at the beginning of any program. All other boards work fine. Even the blinky nordic example of the SDK version 17.1 stop in hardfault. I just have no clue how to debug this. Can anyone give me some advices of where I can look for a solution?

  • Hi Baptiste, 

    I assume the blinky program you mentioned was the \examples\peripheral\blinky ? not the ble_app_blinky ? 
    And that you don't have any UART logging or RTT logging in the code ? 

    If a very simple application like blinky having issue I would think it could be a hardware issue. Could you try to flash the blinky and read out flash (nrfjprog --readcode) and compare it with the read out from a working chip to see if there is any difference ? 

    In those 2 defected boards did you work with it before or it got the issue right after you flash the first firmware ? 

    There is some tutorial about hardfault debugging here.

Related