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!

Parents Reply
  • Sorry, I couldn't find the combined project you were reffering to in the readme. The spi example (\nRF5_SDK_15.2.0_9412b96\examples\peripheral\spi\pca10056\blank\iar\) only included the SPI part. Is it possible that you may have uploaded an old copy? 

    Did you remember to update the linker settings after you added BLE/softdevice to your SPI project? You should be able to use the same configuration used by the ble_app_uart_c example. 

Children
Related