This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

HardFault on saadc_init();

Hello! When I start the s132 device, it freezes from time to time. In debug mode, it does not exit the saadc_init () function;



I connected "hardfault.h" and "hardfault_genhf.h", pressed further and still does not exit saadc_init (), but stops at ses_startup_nrf52.s



What is the reason and how can I get rid of this problem?

Parents Reply
  • Glad it helped some. Are you running this on a custom board, or a nordic DK?

    If I stop running the program several times, I fall back to 00000A60.

    The Softdevice will trigger an assertertion if you continue execution after halting CPU. This is because the Softdevice will detect that its real time requirements have not been met. Try to disable breakpoint on hardfault as shown below and see if your program ends up in the app error handler.

     

Children
Related