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
  • Hi,

    Please make sure you have the drv_vector_table_base option set to '0' in the debugger configuration (should be by default). This informs the debugger that execution starts at address 0x0 and not at the vector table defined by the application. 

    If that doesn't help, verify that you have the same preprocessor symbols that were originally defined in the example project.   

Reply
  • Hi,

    Please make sure you have the drv_vector_table_base option set to '0' in the debugger configuration (should be by default). This informs the debugger that execution starts at address 0x0 and not at the vector table defined by the application. 

    If that doesn't help, verify that you have the same preprocessor symbols that were originally defined in the example project.   

Children
Related