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

firmware hangs in softdevice

Hi,

I am using softdevice 6.0.0 and ble_app_hrs example in keil on a custom nRF51822 board. Compilation goes fine but when I try to debug I notice that the firmware seems to be hanging in the softdevice (WFE instruction) and execution never reaches the Application firmware at 0x16000.

I have flashed the softdevice using nRFgo Studio before programming with Keil but the firmware just hangs in the softdevice code (or so it seems).

I am trying to use the internal LF RC oscillator and have changed the application frimware accordingly. Could this be the reason for the softdevice locking up ?

Any ideas?

Thanks, George

Parents
  • As John points out, the lower application address is 0x14000; the only other change we made for successful operation was the following (which I think you made):

       // Initialize the SoftDevice handler module.
       #if defined(BOARD_PROTO_1)
          // Note no 32kHz crystal on the Fujitsu module
          SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION, false);
       #else
          SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, false);
       #endif
    
Reply
  • As John points out, the lower application address is 0x14000; the only other change we made for successful operation was the following (which I think you made):

       // Initialize the SoftDevice handler module.
       #if defined(BOARD_PROTO_1)
          // Note no 32kHz crystal on the Fujitsu module
          SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION, false);
       #else
          SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, false);
       #endif
    
Children
No Data
Related