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

Getting Started - Running Examples. Ninja not flashing

So I was following the documentation.
Installed everything successfully.
And now I am trying to send the program to the nrf52840.

However when I do ninja flash<program> I get:
ninja: no work to do.

Following the tutorial I should get at least a list of connected devices.


I am using:
- Windows10
- nRF5 SDK for Mesh v4.0.0
- nRF5_SDK_16.0.0_98a08e2

  • I got this:



    Since I am seeing the nrf52840 as a folder, is it possible to flash programs by copying files to the folder?
    I know that in some controllers you can do that by just dragging the elf or bin file.

    I dragged the .elf from this folder but as expected did not work...




  • Hi Doroana, 


    Have you tried to flash the firmware manually using nrfjprog.exe : 

    nrfjprog flash_light_switch_server_nrf52832_xxAA_s132_7.0.1  

    I assume the first time you run "ninja flash_light_switch.." it was something else outputted not just "no work to do" ? 
    You can try ninja clean and then run it again. 

  • So I did all the steps again:
    1) cmake -G Ninja -DTOOLCHAIN=gccarmemb -DPLATFORM=nrf52840_xxAA -DSOFTDEVICE=s140_7.0.1 -DSDK_ROOT=C:\Users\Doroana\Documents\Trigger\EDP\BLE_CV\nRF5_SDK ..
    2) ninja light_switch_server_nrf52840_xxAA_s140.7_0_1
    3) ninja flash_light_switch_server_nrf52840_xxAA_s140_7.0.1

    Everything went fine except step 3:

  • Ok, so now it's "No Device connected" not "no work to do."

    This happens when your hardware device is not recognized by PC. 

    Which hardware board are you using ? Do you have a nRF52840 DK ?  When you plug in do you see any harddrive added to the PC ?
    Please try testing with nrfjprog or JLink Commander, this issue has nothing to with ninja. 

  • Could you tell me what should I write to flash using nrfjprog?

1 2 3 4 5