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

ble device not visible

I have a recent dev board and am using SDK11 with gcc. I can build and flash OK The blinky sketch runs However, when I load up examples/ble_peripheral/ble_app_proximity/pca10040/s132/armgcc and issue "make flash_softdevice" I get what looks OK ..

Flashing: s132_nrf52_2.0.0_softdevice.hex nrfjprog --program ../../../../../../components/softdevice/s132/hex/s132_nrf52_2.0.0_softdevice.hex -f nrf52 --chiperase Parsing hex file. Erasing code and UICR flash areas. Applying system reset. Checking that the area to write is not protected. Programing device. nrfjprog --reset -f nrf52 Applying system reset. Run.

.. but the device is not visible in MCP or nRF Toolbox. several other BLE devices are seen but not the dev board in question

What should I do next to determine what's wrong pls?

  • You've only flashed the softdevice, not the code.

    >make help
    
    following targets are available:
        nrf52832_xxaa_s132
        flash_softdevice
    

    make the other one too to put the actual app on the device.

  • OK Thx. I tried this again. This is now the correct sequence. When using a soft device you need to flash that every time and that has the effect of erasing the application too.

    make nrf52832_xxaa_s132 (or just make)

    gives:

    Compiling file: xxxx (many of these) Assembly file: gcc_startup_nrf52.s Linking target: nrf52832_xxaa_s132.out Preparing: nrf52832_xxaa_s132.bin Preparing: nrf52832_xxaa_s132.hex

    text data bss dec hex filename 55812 268 5116 61196 ef0c _build/nrf52832_xxaa_s132.out

    Then:

    make flash_softdevice nrfjprog --program _build/nrf52832_xxaa_s132.hex --family nrf52 rfjprog --family nRF52 -r

    .. device now seen in nRF Toolbox and seems to behave as expected.

Related