Hello everyone, I’m reaching out to seek some guidance on an issue I’ve been facing with my nRF52840 project. After migrating from SDK 13.0 to SDK 17.1, I’ve encountered a problem where the program crashes upon encountering the first NRF_LOG_PROCESS() verification, diving straight into the HardFault handler. This behavior started after upgrading to SDK 15.3, and despite several attempts to troubleshoot, it remains unresolved.
I’ve reviewed the SDK documentation and forums, implementing various fixes such as adjusting log configurations and checking for known issues. Here’s a snippet of my current SDK configuration:
c
#define NRF_LOG_ENABLED 1
#define NRF_LOG_BACKEND_RTT_ENABLED 1
#define NRF_LOG_BACKEND_SERIAL_USES_RTT 1
#define NRF_LOG_BACKEND_SERIAL_USES_UART 0
The debugging screenshot shows the microcontroller entering the HardFault handler immediately after the first log process. I’m using GCC GNU_ARM/9 2020-q2-update as my compiler. Any insights or suggestions on how to resolve this issue would be greatly appreciated. Thank you for your help!