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

BLE app uart example not running after flashing

Hi,

I am running the BLE app uart example, using Segger Embedded Studio in Windows.

I've found that that after build and run procedure, the firmware doesn't run, as there are no advertisement and no LED blinking on the PCA10056.

However, as soon as I enter debug mode in the IDE, the firmware starts running and stays running until I power cycled the board. 

This happens to both central and peripheral uart example.

Other examples (e.g. BLE blinky) work fine.

Help appreciated.

Edit: I'm using SDK15

Thanks.

Parents
  • Hi!

    That is strange. I have no problem running the UART examples in the SDK.

    Have you made any modifications to the code?
    We have a precompiled hex file (where the softdevice and application hex files have been merged).
    Located in sdk_folder/examples/ble_peripheral/ble_app_uart/hex
    Maybe you could try to flash that to your DK and see if that works?

    Best regards,
    Joakim.

     

  • Hi Joakim,

    Here's an update on what I've tried so far.

    1. Flashing the precompiled hex file has no problems. The firmware runs immediately.

    2. Building the example out of the box using SES and then flashing that fails to run the firmware.

    3. Building using the makefile provided has no problems.

    So I'm suspecting something with the SES build procedure.

  • You might be correct. However, I haven't seen any trouble building the example in SES.

    Which version of SES do you have?
    Which build configuration are you using?
    Are you using SES to download the application and softdevice to your board?
    Are you sure the softdevice is being flashed to the device?
    Have you tried flashing the softdevice and the .hex file output by SES using nrfjprog/nRF Connect - Programmer app?

    I haven't been able to find any issues with the ble_app_uart example.

    Cheers.

     

     

Reply
  • You might be correct. However, I haven't seen any trouble building the example in SES.

    Which version of SES do you have?
    Which build configuration are you using?
    Are you using SES to download the application and softdevice to your board?
    Are you sure the softdevice is being flashed to the device?
    Have you tried flashing the softdevice and the .hex file output by SES using nrfjprog/nRF Connect - Programmer app?

    I haven't been able to find any issues with the ble_app_uart example.

    Cheers.

     

     

Children
Related