<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55465/getting-started---running-examples-ninja-not-flashing</link><description>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&amp;lt;program&amp;gt; I get: ninja: no work to do. 
 
 
 Following the tutorial I should get at least a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Dec 2019 10:33:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55465/getting-started---running-examples-ninja-not-flashing" /><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/225328?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2019 10:33:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e5b09b2-af5e-4a83-9388-a5a286316d59</guid><dc:creator>Doroana</dc:creator><description>&lt;p&gt;Ok I will try that. Thx for the help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/225227?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2019 16:31:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:997bc986-9fe0-4162-9888-9031637ded78</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Can you access the swdclk and swdio pins of the nRF52840 in your custom board? If so, you can still flash in the hex file using another nRF52840DK as the programmer to program your custom board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/225126?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2019 10:31:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d2eed01-d5b9-4c15-b974-b8f087acac62</guid><dc:creator>Doroana</dc:creator><description>&lt;p&gt;Thanks Matt and Hung Bui for the help. I think you can close the issue since I think that the problem is already far away from the title.&lt;br /&gt;Responding to Matt question:&lt;br /&gt;I am using a custom board, that has the nrf52840 SoC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/225109?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2019 09:45:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b69e9a5d-0b31-4055-a9ae-2f60fbb039e2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I think Doroana was testing with a nRF52840 Dongle (PCA10059).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please be aware that it&amp;#39;s not a development platform. It&amp;#39;s mainly designed to use as a&amp;nbsp;hardware backend for NRF Connect. It can be used for testing mesh but only after you have developed and tested the firmware on the NRF52840 DK. Note that the nRF5 Mesh SDK doesn&amp;#39;t support the nRF52840 dongle out of the box. The documentation was for the nRF52840 DK (PCA10056)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/225043?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 22:34:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17d0e882-f4f0-4dc7-b63e-4f0829794701</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;And how did you manage to flash the bootloader into the nRF52840 chip in the first place? Are you testing with the nRF52840DK or are you testing with your own custom board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/225029?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 20:15:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d827d61-8464-4051-b0b5-08e26e309f1d</guid><dc:creator>Doroana</dc:creator><description>&lt;p&gt;I have a bootloader running in a micro controller that has a nrf52840 chip. Is that the problem?&lt;br /&gt;The method provided in documentation only works for 52840DK with J-Link debugger?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/225003?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 17:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a30a0b04-35c6-4a94-a30d-6a585327dc2f</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;So you have a bootloader running in the 52840DK? Did you flash that bootloader into the 52840DK yourself?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/224996?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 16:44:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15ba9e6f-6014-4d67-b997-47b301d5a037</guid><dc:creator>Doroana</dc:creator><description>&lt;p&gt;Ok I will writte the steps of what I did to program my controller using the ble_app_template from nordic SDK BLE:&lt;br /&gt;&lt;br /&gt;1) go inside ble_app_template/pca10056/s140/armgcc/&lt;br /&gt;2) make --&amp;gt; Obtaining nrf52840_xxaa.hex &lt;br /&gt;3) generate dfu_zip: nrfutil dfu genpkg --sd-req 0xFFFE --dev-type 0x0052 --application&amp;nbsp;nrf52840_xxaa.hex _build/dfu-package.zip&lt;/p&gt;
&lt;p&gt;4) Place controller in DFU Mode&lt;/p&gt;
&lt;p&gt;5) nrfutil --verbose dfu serial --package _build/dfu-package.zip -p $(SERIAL_PORT) -b 115200 --singlebank --touch 1200&lt;br /&gt;&lt;br /&gt;---------&lt;br /&gt;&lt;br /&gt;Now for SDK Mesh Ble.&lt;br /&gt;I did not find any approach like this, I tried to do the same but to the light_switch_server_nrf52840_xxAA_s140_7.0.1_merged.hex instead of the nrf52840_xxaa.hex ... It gave no error. But I cannot find my controller with nordic android app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/224987?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 16:19:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91fc5e8d-aead-487d-a9d2-45f1e887fa0b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;What exactly is &amp;quot;use&amp;nbsp;&lt;span&gt;DFU to program the controller&amp;quot; ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;There is a bootloader in mesh, but I don&amp;#39;t see any reason to get started with that. You need to program the bootloader with the programmer anyway.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/224974?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 15:31:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65f10685-7476-4cbe-a529-bf153a5412a3</guid><dc:creator>Doroana</dc:creator><description>&lt;p&gt;Yeah the board is not connected. &lt;br /&gt;But in ble sdk examples now I noticed that I used DFU to program the controller.&lt;br /&gt;&lt;br /&gt;Is it possible to do the same with the mesh sdk?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/224962?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 14:59:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddc37c16-e5ea-4d35-b6f1-e4d506229be1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;To test you can just try&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrfjprog --eraseall&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If the board is detected it will erase the board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After that you can flash the merged hex file located in the build folder:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrfjprog --program&amp;nbsp;light_switch_server_nrf52840_xxAA_s140_7.0.1_merged.hex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/224960?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 14:51:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:539007d3-1860-4fbf-991a-fddeb459cce1</guid><dc:creator>Doroana</dc:creator><description>&lt;p&gt;Could you tell me what should I write to flash using nrfjprog?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/224953?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 14:36:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:834f92ce-fd2f-4e48-9766-72b36075bd95</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Ok, so now it&amp;#39;s &amp;quot;No Device connected&amp;quot; not &amp;quot;&lt;span&gt;no work to do.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This happens when your hardware device is not recognized by PC.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Which hardware board are you using ? Do you have a nRF52840 DK ?&amp;nbsp; When you plug in do you see any harddrive added to the PC ?&lt;br /&gt;Please try testing with nrfjprog or JLink Commander, this issue has nothing to with ninja.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/224941?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 14:03:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b5ae977-271b-44a5-b926-d8ec11652fcd</guid><dc:creator>Doroana</dc:creator><description>&lt;p&gt;So I did all the steps again:&lt;br /&gt;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 ..&lt;br /&gt;2) ninja light_switch_server_nrf52840_xxAA_s140.7_0_1&lt;br /&gt;3) ninja flash_light_switch_server_nrf52840_xxAA_s140_7.0.1&lt;br /&gt;&lt;br /&gt;Everything went fine except step 3:&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1576072967349v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/224933?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 13:29:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:305560af-2160-4312-be26-c08400164af9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Doroana,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Have you tried to flash the firmware manually using nrfjprog.exe :&amp;nbsp;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;nrfjprog&amp;nbsp;flash_light_switch_server_nrf52832_xxAA_s132_7.0.1&amp;nbsp;&amp;nbsp;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I assume the first time you run &amp;quot;ninja flash_light_switch..&amp;quot; it was something else outputted not just &amp;quot;no work to do&amp;quot; ?&amp;nbsp;&lt;br /&gt;You can try&lt;em&gt; ninja clean&lt;/em&gt; and then run it again.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/224914?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 12:32:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ba35d7d-0b00-486c-8d9f-c79a86cd2410</guid><dc:creator>Doroana</dc:creator><description>&lt;p&gt;I got this:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1576067339214v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Since I am seeing the nrf52840 as a folder, is it possible to flash programs by copying files to the folder?&lt;br /&gt;I know that in some controllers you can do that by just dragging the elf or bin file. &lt;br /&gt;&lt;br /&gt;I dragged the .elf from this folder but as expected did not work...&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1576067533354v2.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/224909?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 12:19:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dde7fc41-c0ed-4a28-a60a-d497b4a12534</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Do you see JLink* or JFlash* in your /usr/bin? Also, what&amp;#39;s your nrfjprog version i.e. nrfjprog --version&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/224888?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 10:43:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:172e308a-e0b3-4e63-a631-ef6b61bad8a9</guid><dc:creator>Doroana</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1576060844475v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So I installed ubuntu in another machine...&lt;/p&gt;
&lt;p&gt;And I have it connected via usb cable. But when I try to flash it does not recognize any device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/224822?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 23:16:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:751d8bd0-cc05-481f-84cf-a58b0be79684</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Maybe your 52840DK was already &amp;quot;claimed&amp;quot;&amp;nbsp; by Windows10? Can you switch back to windows desktop, then unplug the 52840DK, then switch to VM, then plug in the 52840DK (should see some kind of usb icon pops up in the VM Linux desktop)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/224799?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 17:33:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48853c5c-ef30-44c4-8231-432b55629351</guid><dc:creator>Doroana</dc:creator><description>&lt;p&gt;Yes I am using that soft device version.&lt;br /&gt;&lt;br /&gt;With the VM your device is detected?&lt;br /&gt;&lt;br /&gt;With the VM device I have this:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1575999205247v1.png" alt=" " /&gt;&lt;br /&gt;But probably is not recognizing due to another problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Started - Running Examples. Ninja not flashing</title><link>https://devzone.nordicsemi.com/thread/224793?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 16:58:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2af16a65-c5bb-4df3-9819-eac0de86cfb7</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Don&amp;#39;t know much about Windows10 but the flash works in my Linux (Ubuntu 16.04) VM. Which soft device are you using for the cmake/ninja commands? s140_7.0.1?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>