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

previous BLE stack program not erased

Dear people ,

nRF52840 and 15.2 version 

I have uploaded the program ble_app_hts in my NRF52840. After which I uploaded ble_app_uart but I still get the "Nordic_HTS" device name in my nRF toolbox application . My previous program (i.e) ble_app_hts does not get erased and the new program gets uploaded but the NRF still advertises the old device name and doesnot respond to previously uploaded program.

1. I tried the NRF connect to erase   all and write new softdevice but did not work.

2 I tried NRFGo in command prompt to clear the programs in the device but still , It did not work.

NOTE: when I say it doesn't work, it means that I check the advertising device name in the nrf toolbox and get the name which was written the previous program.

Please suggest me a way to erase the previous program and upload another program.

but, when I upload programs for GPIO or ADC they are working upto my knowledge,     only BLE stack oriented programs are not working.

If you look below even if the heart rate application is connected it does not send data.

 

  • Hi,

    This sounds like a caching issue. Since the BLE address of the device is the same, the smartphone might have cached the GATT table, and when it connects again (with a new example on the board) it still shows the same GATT table.

    Usually, turning Bluetooth off and on again (properly through the settings menus not by any shortcut switches), or entering Airplane mode and going back, or both, will work for flushing the cache. That way, the next time the phone connects to the device, it will run the database discovery procedure (i.e. read the new, correct GATT table.)

    If you connect to the device using a different phone, that has never connected to the device before, you should see that the new application has indeed been correctly flashed to the device and that the issue then must be caching on the other smartphone.

    Regards,
    Terje

  • Hi sir, 

    I have done forget device in my phone and flashed new code into my nRF device.  Still I get the same issue my previous program is being advertised

  • Thank you sir, since I tested using iOS the gatt table is not flushed and the problem occurs again and again. Now I switched to a different phone and it started working . Thank you so much . We came to a conclusion that board wasn’t working but you helped us.

Related