<?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>JLink Firmware for nrf52840DK Shows Board as nrf52DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56457/jlink-firmware-for-nrf52840dk-shows-board-as-nrf52dk</link><description>I am currently developing on the nrf52840DK (Rev 1.1.1) using the mbed os. 
 To debug on the board using OpenOCD it is necessary to flash the JLink firmware for the board. This leads to a problem with mbed os, as the board is now shown as &amp;quot;NRF52_DK&amp;quot; when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Jan 2020 14:54:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56457/jlink-firmware-for-nrf52840dk-shows-board-as-nrf52dk" /><item><title>RE: JLink Firmware for nrf52840DK Shows Board as nrf52DK</title><link>https://devzone.nordicsemi.com/thread/230677?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 14:54:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd8ef86f-d1bb-419e-89e9-504865f6d2af</guid><dc:creator>roasted_duck</dc:creator><description>&lt;p&gt;I debugged through the code, long story short:&lt;/p&gt;
&lt;p&gt;Depending on the firmware producer a different kind of product id is used. I close this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit: I do not know why it did not show up in my google search till now, but apparently someone already had the same problem, and reported it to the mbed os device (&lt;a href="https://github.com/ARMmbed/mbed-cli/issues/877"&gt;issue link&lt;/a&gt;). They have a workaround, but it does not solve the base problem, which is the firmware apparently.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink Firmware for nrf52840DK Shows Board as nrf52DK</title><link>https://devzone.nordicsemi.com/thread/230586?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 11:57:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9eb33825-1bf6-4217-a80e-3fc5c57bbd60</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;If mbed overrides your wanted settings, I&amp;#39;d recommend asking on the mbed forums about this. It sounds like a issue on the mbed side, if this is a warning/issue through their systems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink Firmware for nrf52840DK Shows Board as nrf52DK</title><link>https://devzone.nordicsemi.com/thread/230359?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2020 13:16:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aee41d6b-5f75-469d-9107-fb59f39ae011</guid><dc:creator>roasted_duck</dc:creator><description>&lt;p&gt;The problem is not the flashing &lt;em&gt;per se&lt;/em&gt;, but &amp;#39;mbed os&amp;#39; saying: &amp;quot;We compiled it for the NRF52840_DK, but we only found a NRF52_DK. We do not want to break anything, so we are not flashing your program.&amp;quot;&lt;/p&gt;
&lt;p&gt;I think we are going in two different directions. I actually wanted to use this post as kind of a bug report. The thing is:&lt;/p&gt;
&lt;p&gt;- I want to use the mbed os cli&lt;/p&gt;
&lt;p&gt;- I want it to be recognised by &amp;#39;mbed detect&amp;#39; as NRF52840_DK&lt;/p&gt;
&lt;p&gt;- I &lt;strong&gt;would like&lt;/strong&gt; to use JLink firmware&lt;/p&gt;
&lt;p&gt;- I &lt;strong&gt;would like&lt;/strong&gt; to avoid any further tooling, such as nrfjprog&lt;/p&gt;
&lt;p&gt;If you say: &amp;quot;Yeah, not possible. We build a generic firmware for all nrf52xx platform, and this intentionally led to mbed os detecting them as nrf52DK.&amp;quot; It is fine. It makes my work a bit harder, but I can work around it. Then I need to find a way to modify my setup so I can keep things automated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink Firmware for nrf52840DK Shows Board as nrf52DK</title><link>https://devzone.nordicsemi.com/thread/230001?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2020 08:26:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cda25ce4-e63c-4eff-b2db-4e2c0abfae1a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;You should not use nrfjprog to program the on-board-debugger.&lt;/p&gt;
&lt;p&gt;In order to switch out the debugger IF (reprogram the Atmel IC near the USB plug) to either MBED or JLINK, you should hold down the &amp;quot;IF BOOT/RESET&amp;quot; while you power on the nRF52-DK.&lt;/p&gt;
&lt;p&gt;At this point, a drive will enumerate with the label &amp;quot;BOOTLOADER&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Drag and drop the wanted .bin file over to this drive, wait 10 seconds, then power cycle your board again.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To use nrfjprog, you need the above sequence to be loaded with the J-Link OB*.bin file.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Once the above sequence is performed, and the jlink.bin file is successfully loaded, you can use nrfjprog like this:&lt;/p&gt;
&lt;p&gt;nrfjprog --program path\to\hex\file.hex --sectorerase -f nrf52 --reset&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note: The .hex file should be a compiled program for nrf52, as you&amp;#39;re targeting the nRF52 now.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink Firmware for nrf52840DK Shows Board as nrf52DK</title><link>https://devzone.nordicsemi.com/thread/229943?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 18:07:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:905877ba-b077-43a7-a570-74be58b93087</guid><dc:creator>roasted_duck</dc:creator><description>&lt;p&gt;Could you verify me to the command? I currently have only a single dev board, and I do not want to brick it by accident.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="bat"&gt;nrfjprog --family NRF52 --reset --program &amp;quot;J-Link OB-SAM3U128-V2-NordicSemi 170724.hex&amp;quot; # hex created from bin&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink Firmware for nrf52840DK Shows Board as nrf52DK</title><link>https://devzone.nordicsemi.com/thread/229539?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 08:42:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba6da654-55d9-459c-a816-98a9639345ba</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;It sounds like there&amp;#39;s an issue with the programming process here. Could you try to use nrfjprog instead?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink Firmware for nrf52840DK Shows Board as nrf52DK</title><link>https://devzone.nordicsemi.com/thread/229451?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2020 15:19:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76416e10-0c06-45f9-afb0-6e2eef1b0cee</guid><dc:creator>roasted_duck</dc:creator><description>&lt;p&gt;Sorry for the late answer.&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/56457/jlink-firmware-for-nrf52840dk-shows-board-as-nrf52dk/228785"]This sounds like the project is configured for nrf52832 instead of nrf52840.[/quote]
&lt;p&gt;The project is configured for the nrf52840DK. If I am using ARM&amp;#39;s DAPLink the board gets correctly recognised as NRF52840_DK and everything works without problems.&lt;/p&gt;
&lt;p&gt;The JLink fimware causes the problem at the moment. I double checked today, downloading and flashing the JLink firmware again. My nrf52840DK shows up as nrf52DK when calling &amp;quot;mbed detect&amp;quot;. With ARM&amp;#39;s DAPLink my nrf52840DK shows up correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink Firmware for nrf52840DK Shows Board as nrf52DK</title><link>https://devzone.nordicsemi.com/thread/228785?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2020 12:28:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e1d802e-203f-412d-80e4-34bdf32e3479</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;The IF firmware itself, which can be downloaded from &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF52840-DK/Download#infotabs"&gt;here&lt;/a&gt; (extra drop-down meny for mbed IF), shall work for all nRF5x devices, regardless of the reported usb strings.&lt;/p&gt;
[quote user=""]Resulting in the problem, that some code cannot be properly compiled by mbed os[/quote]
&lt;p&gt;&amp;nbsp;This sounds like the project is configured for nrf52832 instead of nrf52840.&lt;/p&gt;
&lt;p&gt;According to this page:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://os.mbed.com/platforms/Nordic-nRF52840-DK/"&gt;https://os.mbed.com/platforms/Nordic-nRF52840-DK/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The nRF52840 is supported as a target (nrf52840_dk).&lt;/p&gt;
&lt;p&gt;I would recommend you check with the mbed community if you still have issues.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>