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

nRF52 Blinky and iPhone 6s?

I am using Windows 10, 64-bit

I am using gcc tools 7 2018-q2-update (arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 7.3.1 20180622 (release))

I am using the nRF5 SDK 15.2.0 (nRF5_SDK_15.2.0_9412b96)

I am trying to get the ble_app_blinky to work (SDK_DIR\examples\ble_central\ble_app_blinky_c\pca10040\s132\armgcc)

I run make, everything compiles

I run make erase (just to be safe)

I run make flash_softdevice

I run make flash

The LED next to the PCA10040 lights up, then the LED1 lights up, and shortly after the LED next to the PCA10040 blinks quickly about every second.

Using the nRF Blinky App from the apple store on my iPhone 6s, the blinky example does not show up.

Is there something I am missing, or is there a known issue with this configuration?

Parents
  • Hi,

    I was not able to reproduce this on my side, so I have a few questions:

    • I have not been able to reproduce this on my side. Have you tested with another device (for instance nRF Connect BLE)?
    • Do you see the same issue if you test with a pre-compiled .hex file (from <SDK>/examples/ble_peripheral/ble_app_blinky/hex/)?
    • Have you modified the example project in some way? I ask because we have seen some issues with GCC 7 and link time optimization (LTO), but LTO is commented out in the example Makefile shipped with the SDK. (The SDK officially only support GCC 6 for now, and 15.2 was tested with 6.3 2017-q2-update).
  • I do not have another device to test on nearby, and I only have one development board.

    I did not modify the project in any way.

    I am getting the same problem when flashing with the pre-compiled example:

    programmed using the following commands:

    nrfjprog -f nrf52 --program ble_app_blinky_c_pca10040_s132.hex --chiperase

    nrfjprog -r


  • Hi,

    I did not spot this earlier, but the reason this is not working is that you are using the central example. That is intended to be used to control another peripheral which is using the peripheral example. The correct example for your case, where you want to control the LED on a BLE peripheral from the phone, is found under <SDK>/examples/ble_peripheral/ble_app_blinky/.

Reply Children
Related