Flashed ble central code not working after power reset in development board

Hi all, actually I am able to flash ble cental code to development board, and can able to connect and send data trough nrf connect app.

But my issue is, when the power to board is reset , I am not able to connect ble central using nrf connect app.

Guessing code is not storing in flashed memory

Using: SDK 17.0.2, nrf52832.   S132

           

  • Hi, 

    Are you able to see the device advertising with the nrf connect app or sniffer?

    I would suggest get the debug log from the J-Link RTT viewer or provide the sniffer log. Without logs, I have no idea what might cause the issue. 

    -Amanda

  • hi actually i am flashing my code using segger embedded studio ide,

    which  one  i need to use to flash code , do i need to use jflash software or other tool

  • Hi, 

    Enable NRF_LOG_BACKEND_RTT_ENABLED (1) and disable NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED (0) in the sdk_config.h and compile with debug mode, and Using SEGGER's J-Link RTT viewer to connect via RTT to get the debug log. 

    -Amanda

  • # SEGGER J-Link RTT Viewer V7.54b Terminal Log File
    # Compiled: 16:10:18 on Sep 14 2021
    # Logging started @ 08 Dec 2021 15:28:17
    00> <info> app: Start scanning for device name Nordic_Blinky.
    00> <info> app: Connecting to target 17B9553BED6A
    00> <info> app: Disconnected.
    00> <info> ble_scan: SCAN started.
    00> <info> ble_scan: Scanning.
    00> <info> app: Disconnected. conn_handle: 0x0, reason: 0x3E
    00> <info> app: Start scanning for device name Nordic_Blinky.
    00> <info> app: Connecting to target 17B9553BED6A
    00> <info> app: Disconnected.
    00> <info> ble_scan: SCAN started.
    00> <info> ble_scan: Scanning.
    00> <info> app: Disconnected. conn_handle: 0x0, reason: 0x13
    00> <info> app: Start scanning for device name Nordic_Blinky.
    00> <info> app: Connecting to target 17B9553BED6A
    00> <info> app: Disconnected.
    00> <info> ble_scan: SCAN started.
    00> <info> ble_scan: Scanning.
    00> <info> app: Disconnected. conn_handle: 0x0, reason: 0x13
    00> <info> app: Start scanning for device name Nordic_Blinky.
    00> <info> app: Connecting to target 17B9553BED6A
    00> <info> app: ATT MTU exchange completed.
    00> <info> app: Ble BATS max data length set to 0xF4(244)
    00> <info> app: Ble ALS max data length set to 0xF4(244)
    00> <info> ble_ga_c: Generic Access discovered at peer.
    00> <info> app: Generic Access Service discovered. Reading Device Name and Appearance.
    00> <info> ble_bats_c: Battery Service Service failure at peer.
    00> <info> ble_als_c: Ambient Light Service failure at peer.
    00> <info> ble_ga_c: Generic Access Service failure at peer.
    00> <info> ble_bats_c: Battery Service Service failure at peer.
    00> <info> ble_als_c: Ambient Light Service failure at peer.
    00> <info> ble_ga_c: Generic Access Service failure at peer.
    00> <info> ble_bats_c: Battery Service Service failure at peer.
    00> <info> ble_als_c: Ambient Light Service failure at peer.
    00> <info> ble_ga_c: Generic Access Service failure at peer.
    00> <info> app: Device name is 78.
    00> <info> app: Appearance is 0.
    00> <info> app: Disconnected.
    00> <info> ble_scan: SCAN started.
    00> <info> ble_scan: Scanning.
    00> <info> app: Disconnected. conn_handle: 0x0, reason: 0x13
    00> <info> app: Start scanning for device name Nordic_Blinky.
    00> <info> app: Connecting to target 17B9553BED6A
    00> <info> app: ATT MTU exchange completed.
    00> <info> app: Ble BATS max data length set to 0xF4(244)
    00> <info> app: Ble ALS max data length set to 0xF4(244)
    00> <info> ble_ga_c: Generic Access discovered at peer.
    00> <info> app: Generic Access Service discovered. Reading Device Name and Appearance.
    00> <info> ble_bats_c: Battery Service Service failure at peer.
    00> <info> ble_als_c: Ambient Light Service failure at peer.
    00> <info> ble_ga_c: Generic Access Service failure at peer.
    00> <info> ble_bats_c: Battery Service Service failure at peer.
    00> <info> ble_als_c: Ambient Light Service failure at peer.
    00> <info> ble_ga_c: Generic Access Service failure at peer.
    00> <info> ble_bats_c: Battery Service Service failure at peer.
    00> <info> ble_als_c: Ambient Light Service failure at peer.
    00> <info> ble_ga_c: Generic Access Service failure at peer.
    00> <info> app: Device name is 78.
    00> <info> app: Appearance is 0.
    00> <info> app: Disconnected.
    00> <info> ble_scan: SCAN started.
    00> <info> ble_scan: Scanning.
    00> <info> app: Disconnected. conn_handle: 0x0, reason: 0x13
    00> <info> app: Start scanning for device name Nordic_Blinky.
    00> <info> app: Connecting to target 17B9553BED6A
    00> <info> app: ATT MTU exchange completed.
    00> <info> app: Ble BATS max data length set to 0xF4(244)
    00> <info> app: Ble ALS max data length set to 0xF4(244)
    00> <info> ble_ga_c: Generic Access discovered at peer.
    00> <info> app: Generic Access Service discovered. Reading Device Name and Appearance.
    00> <info> ble_bats_c: Battery Service Service failure at peer.
    00> <info> ble_als_c: Ambient Light Service failure at peer.
    00> <info> ble_ga_c: Generic Access Service failure at peer.
    00> <info> ble_bats_c: Battery Service Service failure at peer.
    00> <info> ble_als_c: Ambient Light Service failure at peer.
    00> <info> ble_ga_c: Generic Access Service failure at peer.
    00> <info> ble_bats_c: Battery Service Service failure at peer.
    00> <info> ble_als_c: Ambient Light Service failure at peer.
    00> <info> ble_ga_c: Generic Access Service failure at peer.
    00> <info> app: Device name is 78.
    00> <info> app: Appearance is 0.
    00> <info> app: Disconnected.
    00> <info> ble_scan: SCAN started.
    00> <info> ble_scan: Scanning.
    00> <info> app: Disconnected. conn_handle: 0x0, reason: 0x13
    00> <info> app: Start scanning for device name Nordic_Blinky.
    00> <info> app: Connecting to target 17B9553BED6A
    00> <info> app: Disconnected.
    00> <info> ble_scan: SCAN started.
    00> <info> ble_scan: Scanning.
    00> <info> app: Disconnected. conn_handle: 0x0, reason: 0x3E
    00> <info> app: Start scanning for device name Nordic_Blinky.
    00> <info> app: Connecting to target 17B9553BED6A
    00> <info> app: ATT MTU exchange completed.
    00> <info> app: Ble BATS max data length set to 0xF4(244)
    00> <info> app: Ble ALS max data length set to 0xF4(244)
    00> <info> ble_ga_c: Generic Access discovered at peer.
    00> <info> app: Generic Access Service discovered. Reading Device Name and Appearance.
    00> <info> ble_bats_c: Battery Service Service failure at peer.
    00> <info> ble_als_c: Ambient Light Service failure at peer.
    00> <info> ble_ga_c: Generic Access Service failure at peer.
    00> <info> ble_bats_c: Battery Service Service failure at peer.
    00> <info> ble_als_c: Ambient Light Service failure at peer.
    00> <info> ble_ga_c: Generic Access Service failure at peer.
    00> <info> ble_bats_c: Battery Service Service failure at peer.
    00> <info> ble_als_c: Ambient Light Service failure at peer.
    00> <info> ble_ga_c: Generic Access Service failure at peer.
    00> <info> app: Device name is 78.
    00> <info> app: Appearance is 0.
    00> <info> app: Disconnected.
    00> <info> ble_scan: SCAN started.
    00> <info> ble_scan: Scanning.
    00> <info> app: Disconnected. conn_handle: 0x0, reason: 0x13
    00> <info> app: Start scanning for device name Nordic_Blinky.
    00> <info> app: Connecting to target 17B9553BED6A
    00> <info> app: ATT MTU exchange completed.
    00> <info> app: Ble BATS max data length set to 0xF4(244)
    00> <info> app: Ble ALS max data length set to 0xF4(244)
    00> <info> ble_ga_c: Generic Access discovered at peer.
    00> <info> app: Generic Access Service discovered. Reading Device Name and Appearance.
    00> <info> ble_bats_c: Battery Service Service failure at peer.
    00> <info> ble_als_c: Ambient Light Service failure at peer.
    00> <info> ble_ga_c: Generic Access Service failure at peer.
    00> <info> ble_bats_c: Battery Service Service failure at peer.
    00> <info> ble_als_c: Ambient Light Service failure at peer.
    00> <info> ble_ga_c: Generic Access Service failure at peer.
    00> <info> ble_bats_c: Battery Service Service failure at peer.
    00> <info> ble_als_c: Ambient Light Service failure at peer.
    00> <info> ble_ga_c: Generic Access Service failure at peer.
    00> <info> app: Device name is 78.
    00> <info> app: Appearance is 0.

    # Logging stopped @ 08 Dec 2021 15:31:42

  • i shared log, but there is no usefull things,  

    please suggest possible solutions

Related