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

ble_app_hrs_c problem

Hi, I am trying to run the ble_app_hrs_c, using:

  • s120_nrf51822_1.0.1
  • nrf51_sdk_v6_1_0_b2ec2e6
  • PCA10006 + nRF6310 + nRF6350

After the compilation of the software I am downloading the device, but the application is not running. All the LEDs and the LCD are off.

thanks,

Parents
  • Hi Eli

    Follow the guide here in order to see how to test the example. You also need to connect the nRFgo Display Rev 2.0 (nRF6350) as described here, otherwise the ble_app_hrs_c firmware will halt if it can not communicate with the LCD.

    Make sure you have the correct softdevices flashed to the chip before flashing the firmware applications, S120 for the central application device and S110 for the peripheral application device.

    If it does not work still, please state where the program is halting, find out by stepping through the code with the debugger (Debugger guide is in the User guide for the nRF51 kits). Report back if any complications.

    Update 21.10.2014 The S120 v1.0 is created for the second hardware revision of the nRF51 chip, the first revision nRF51 will not work with S120 stack. Check what version of the nRF51 you have by checking the chip markings on the nRF51 chip. Documentation for chip markings is found in the PCN-082 document

    Update 22.10.2014 In order to make the example code work without the display connected comment out the following code in scan_start()

    bool lcd_write_status = APPL_LCD_WRITE("Scanning", 8, LCD_UPPER_LINE, 0);
    if (!lcd_write_status)
    {
        APPL_LOG("[APPL]: LCD Write failed!\r\n");
    }
    

    Can you step through the code in Keil when debugging and tell me exactly where the program halts in your case, and what is the error code? Do other examples work?

  • But, It's working only in debug mode. Is it suppose to be like that?

Reply Children
No Data
Related