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

nRF52840-Preview-DK: HardFault exception while debugging ble_app_uart_c code

Hi,

I am developing a project in IAR Embedded Workbench for nRF52840-Preview-DK. I have integrated different modules (ble, ADC, SPI, I2C) in this project. I don't have any compilation errors but when I download the code, it gets stuck in nrf_sdh_enable_request() which is part of ble_stack_init(). While debugging, I found that the code works fine till it reaches sd_softdevice_enable which is on line number 214 in nrf_sdh.c After this line, the control does not proceed to next instruction. I tried setting a breakpoint and 'stepping into' the function call but it gave me following error.

Thanks!

Related