nrf_log_process() causes mcu crash

I recently encountered a MCU crash problem. I think it is related to NRF_ LOG_ Process (). I used the simulation to catch the following scenarios. MCU crashes at this time.

Please help me analyze the possible problem. Thank you.

NOTE :

i use #define NRF_LOG_DEFERRED 1,and added code in main(),as follows:

while(1)

{

UNUSED_RETURN_VALUE(NRF_LOG_PROCESS());

}

i am very glad to receive your answer,thanks!

 

Parents Reply
  • Hi,

    The hardfault library will print out more info about what that is causing this to fault. You have to enable the hardfault library first by:

    1. Enabling HARDFAULT_HANDLER_ENABLED  in sdk_config.h by setting it to 1.
    2. Add  hardfault_implementation.c and hardfault_handler_gcc.c from \components\libraries\hardfault to your project.

    Do you see a more verbose log being printed now?

    regards

    Jared 

Children
No Data
Related