<?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>Failed to download firmware in nRF52840 chip</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37557/failed-to-download-firmware-in-nrf52840-chip</link><description>Hello, 
 I&amp;#39;m trying to run my application from Segger Embedded Studio into my custom nRF52840 board but it is not working ! 
 
 I switched to Jlink commander to get more details 
 I&amp;#39;m able to connect to the target and read it&amp;#39;s infos 
 
 
 I&amp;#39;m able to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Aug 2018 08:27:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37557/failed-to-download-firmware-in-nrf52840-chip" /><item><title>RE: Failed to download firmware in nRF52840 chip</title><link>https://devzone.nordicsemi.com/thread/145623?ContentTypeID=1</link><pubDate>Fri, 24 Aug 2018 08:27:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb3179c7-7812-4a68-8d5d-345ee0dbf148</guid><dc:creator>Chaabane</dc:creator><description>&lt;p&gt;Thank you Bjorn,&lt;/p&gt;
&lt;p&gt;It seems the case, I&amp;#39;ll check with the productions team to see how we can improve the process.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to download firmware in nRF52840 chip</title><link>https://devzone.nordicsemi.com/thread/145497?ContentTypeID=1</link><pubDate>Thu, 23 Aug 2018 11:44:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e41180fb-6582-4941-9a32-a467173bcde2</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, if the pads connecting to the external decoupling capacitors and/or supply/ground pads are not properly soldered then that could cause issues when writing to flash. This especially important for&amp;nbsp;DEC5 (pad N24 ) ,which is the 1.3 V regulator supply decoupling for the Flash&amp;nbsp;memory.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to download firmware in nRF52840 chip</title><link>https://devzone.nordicsemi.com/thread/145359?ContentTypeID=1</link><pubDate>Wed, 22 Aug 2018 15:50:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8f50d0e-2859-442a-abed-eed421f6266d</guid><dc:creator>Chaabane</dc:creator><description>&lt;p&gt;I forget to capture all the logs. The verification failed&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;Verifying programming.&lt;br /&gt;ERROR: Write verify failed.&amp;quot;&lt;/p&gt;
&lt;p&gt;programming without --verify works with no errors but the firmware loaded from the chip with --readcode doesn&amp;#39;t match the original one.&lt;/p&gt;
&lt;p&gt;I have some working boards that I&amp;#39;m able to load the firmware with no issues but found out that some pins don&amp;#39;t output anything so sent them back to production for a fix and it was soldering problem !&lt;/p&gt;
&lt;p&gt;do you think that the programming problem can be coming from a bad soldering ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to download firmware in nRF52840 chip</title><link>https://devzone.nordicsemi.com/thread/145311?ContentTypeID=1</link><pubDate>Wed, 22 Aug 2018 12:20:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bd63f5b-5485-4ffa-a27c-3fcda00074fe</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Great! Is the screenshot showing all the nrfjprog terminal output, i.e. is verifying programming the last line that is printed? To me it looks like the code was written to the device? Have you tried reading&amp;nbsp;back the flash content and comparing it to the original hex file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to download firmware in nRF52840 chip</title><link>https://devzone.nordicsemi.com/thread/145277?ContentTypeID=1</link><pubDate>Wed, 22 Aug 2018 10:38:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e2556b8-0dd9-40ba-ab5a-af626c03fad8</guid><dc:creator>Chaabane</dc:creator><description>&lt;p&gt;Attached is the logs with the newer version and the screenshot of the console.&lt;/p&gt;
&lt;p&gt;With this version It worked with the blinky example hex file but not with my project hex file.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1067.log.log"&gt;devzone.nordicsemi.com/.../1067.log.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/firmware_5F00_write_5F00_log_5F00_nrfjprog.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank&amp;nbsp; you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to download firmware in nRF52840 chip</title><link>https://devzone.nordicsemi.com/thread/145248?ContentTypeID=1</link><pubDate>Wed, 22 Aug 2018 08:41:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f389676-569b-4370-9d19-95c7cbd8e537</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Chaabane,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll take a look at the logic traces, meanwhile,&amp;nbsp;the latest version of nrfjprog is v9.7.3. Could you try to download this version, link, and then retry the commands with the --log option? The latest version provides more verbose log output than the older one.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, please post the console output from nrfjprog as well as the .log file&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to download firmware in nRF52840 chip</title><link>https://devzone.nordicsemi.com/thread/145219?ContentTypeID=1</link><pubDate>Wed, 22 Aug 2018 07:27:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8f77c74-c942-4b92-b404-c9852bf51bc4</guid><dc:creator>Chaabane</dc:creator><description>&lt;p&gt;Please, Find attached the requested logs&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/working-board.logicdata"&gt;devzone.nordicsemi.com/.../working-board.logicdata&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Notworking-board.logicdata"&gt;devzone.nordicsemi.com/.../Notworking-board.logicdata&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4064.log.log"&gt;devzone.nordicsemi.com/.../4064.log.log&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to download firmware in nRF52840 chip</title><link>https://devzone.nordicsemi.com/thread/145160?ContentTypeID=1</link><pubDate>Tue, 21 Aug 2018 14:45:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4063ed3e-419e-4620-af29-81434763ffd7</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Are you using a Saleae to capture the traces? If so, could you provide the traces as .logicdata files and not .csv? It makes it a bit easier to analyze.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you also try the nrfjprog commands again, but this time append the --log option. The nrfjprog log output will then be placed in a&amp;nbsp;log.log file in the directory where you called nrfjprog from. Please attach the logs to this case.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to download firmware in nRF52840 chip</title><link>https://devzone.nordicsemi.com/thread/144980?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 15:15:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd367420-f4e3-4d81-8f7d-841f666ebe88</guid><dc:creator>Chaabane</dc:creator><description>&lt;p&gt;nrfjprog version&amp;nbsp;9.7.1 and Jlink 6.34b&lt;/p&gt;
&lt;p&gt;I compared both SWD traces. the clock is stable at 880-1000 KHz.&lt;/p&gt;
&lt;p&gt;In the case of the bugged board&amp;nbsp; values read from the debug port and the access port (after read request ) are not always the same as the returned values in the working board. the trace on CLK and IO looks normal for the write cycles before these reads. Below is the records for SWD&amp;nbsp;trace for both boards if&amp;nbsp;it might help&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf52840_5F00_SWD_5F00_Working_5F00_Board.csv"&gt;devzone.nordicsemi.com/.../nrf52840_5F00_SWD_5F00_Working_5F00_Board.csv&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf52840_5F00_SWD_5F00_Bugged_5F00_Board.csv"&gt;devzone.nordicsemi.com/.../nrf52840_5F00_SWD_5F00_Bugged_5F00_Board.csv&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to download firmware in nRF52840 chip</title><link>https://devzone.nordicsemi.com/thread/144877?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 08:47:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e26672e8-e407-4334-a9ba-082035e07245</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Which version of nrfjprog did you use? Which version of JLink do you have installed?&lt;/p&gt;
&lt;p&gt;If you have 6 identical boards, but you&amp;#39;re only able to flash two of them, then I could sound like a hardware issue. Could you capture a logic trace of the SWDIO and SWDCLK pins for&amp;nbsp; one of the &amp;quot;good&amp;quot; devices that you&amp;#39;re able to flash and one of the devices you are not able to flash and then compare the traces?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to download firmware in nRF52840 chip</title><link>https://devzone.nordicsemi.com/thread/144862?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 08:22:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b76b99f0-d889-4a9f-9a65-a9d0173e92e2</guid><dc:creator>Chaabane</dc:creator><description>&lt;p&gt;Thank you Bjorn,&lt;/p&gt;
&lt;p&gt;I used the P20 ( VGT,SWD IO, SWD CLK, RESET and GND DETECT).&lt;/p&gt;
&lt;p&gt;I tried the commands you mentionned but got the same results !&lt;/p&gt;
&lt;p&gt;I was able to&amp;nbsp;download the firmware on&amp;nbsp;some boards (2 of 6) so I asked the production team to&amp;nbsp;check them but they couldn&amp;#39;t find anything wrong with the soldering or the components. It&amp;#39;s confusing how we can erase, write to a single page of the flash and not able to write the hole firmware ! Any idea where this behavior could be coming from ?&lt;/p&gt;
&lt;p&gt;Thx,&lt;/p&gt;
&lt;p&gt;Chaabane&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to download firmware in nRF52840 chip</title><link>https://devzone.nordicsemi.com/thread/144712?ContentTypeID=1</link><pubDate>Fri, 17 Aug 2018 12:08:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d418b36-6593-46d8-bf4f-a8d82a577a22</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Chaabane,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How have you connected the programmer/nRF52xxx DK to your custom board?&lt;/p&gt;
&lt;p&gt;Could you try to use nrfjprog from the nRF Command Line Tools to erase the nRF52840 chip, i.e.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrfjprog --family nrf52 --eraseall&lt;/p&gt;
&lt;p&gt;and then try flashing the chip with SES again. If you still see the issue after performing a full erase, then try using the --recover command. You can also try to use nrfjprog to flash the compiled hex file using&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrfjprog -f nrf52 --program &amp;lt;name of hex file&amp;gt;.hex --sectorerase --verify --reset&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to download firmware in nRF52840 chip</title><link>https://devzone.nordicsemi.com/thread/144638?ContentTypeID=1</link><pubDate>Fri, 17 Aug 2018 07:51:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75a3fe99-a101-4245-9512-dbb18cf918c6</guid><dc:creator>Chaabane</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Just tried using the onboard jlink of the DK but got the same results&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>