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

nRF51 SDK example not working mbed kit

Hi,

I use : An nRF51822 mbed kit + Kiel 5

So I updated the firmware like this : mbed.org/.../ and I dropped s110_nRF51822_v6.000 into MBED(H:)

I successfully use (I detect BLE activities on my BLE USB dongle) the BLE_HeartRate example (I got the .hex on mbed.org and dropped it into MBED(H:))

But when I want to use any nRF51-SDK examples (more specifically \nrf51822\Board\nrf6310\s110\ble_app_hid_keyboard), I use Kiel 5 and set up the "project>option for target" like this blog : devzone.nordicsemi.com/.../

It compiles and flashes successfully but nothing happen (I don't found any BLE activities)

I did everything except " Once loaded, please follow the "configuring a project for CMSIS-DAP debugger" section (last step) for the s110 project of your desire." because I didn't understand on this blog...

I'd be grateful if somebody can help me !

thank you !

Damien

  • Hi Damien,

    The .hex file from mbed.org will contain the softdevice and application in one .hex file. If somehow, the previously loaded softdevice is deleted or overwritten, the example will not run properly. Try copying the softdevice to your H:\ , then make sure that your project is setup to "Erase sectors" as shown in the 3rd picture in the blog post. Now you can try to load the application .hex file again from Keil.

    Note that you may have to power cycle your board in order for it to start up properly (if "Reset and run" is not checked under debugger settings)

    Also make sure that if you're using SoftDevice S110 v6.x, you must use examples from nRF51 SDK v5.x. SoftDevice S110 v7.x must use nRF51 SDK v6.x.

    Best regards,

    Håkon

  • Hi Håkon,

    Thank you for the awnser, It seems that I used S110 v6.x for nRF51 SDK v6.x.

    So :

    • I Droped the SoftDevice S110 v7.x into (H:) then program the Hid_keyboard example (from nRF51 SDK v6.x) but I've this error :"Flash Download failed - "Cortex-M0"" (I don't have this error when I drop SoftDevice S110 v6.x instead of SoftDevice S110 v7.x)

    • Then I tried blanking the nRF device and do the same thing but no improvement.

    My configuartion : Erase sector cheked reset and run, program, verify cheked

    on option for target>target, I've IROM1 cheked with from 0x14000 to 0x2B000

    Thank you for you help,

    Damien

  • Hi Damien,

    SoftDevice 7.0.0 has increased in size compared to older versions. IROM1 start should be "0x16000" and IROM1 stop should be "0x29000"

    If you try this, does it then work?

    Cheers, Håkon

Related