<?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>Need interface MCU initial boot firmware</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79832/need-interface-mcu-initial-boot-firmware</link><description>Please don&amp;#39;t give the usual response of &amp;#39;try the troubleshooting guide&amp;#39; to flash the J-Link or Mbed firmware. 
 What I (and probably others) really need is the real initial bootloader firmware for the AT91SAM3U2 that shows up as the BOOTLOADER drive when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 26 Sep 2021 10:38:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79832/need-interface-mcu-initial-boot-firmware" /><item><title>RE: Need interface MCU initial boot firmware</title><link>https://devzone.nordicsemi.com/thread/331185?ContentTypeID=1</link><pubDate>Sun, 26 Sep 2021 10:38:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b231417-0723-4079-af2b-648dfd962b12</guid><dc:creator>jeffd</dc:creator><description>&lt;p&gt;to come full circle and close the issue...&amp;nbsp; &amp;nbsp;I received another board from a coworker that had not been used yet and that board was doing the same thing (windows detected plug in, rapidly flashing led5, no JLINK device).&amp;nbsp; So, now i was on the track that it was something under windows that is causing the issue.&amp;nbsp; apparently the rapidly flashing led5 indicates that USB enumeration isn&amp;#39;t completed, I noticed in device manager under &amp;#39;system devices&amp;#39; that there was a USB/IP device with the warning triangle.&amp;nbsp; i uninstalled that driver and restarted the board and it enumerated correctly and the JLINK firmware came up completely.&amp;nbsp; &amp;nbsp;Same with my original board.&amp;nbsp; a couple weeks ago when i first received the board i was working on a way to share the USB device with an Ubuntu install on WSL 2.&amp;nbsp; I was using the USBIP project to do this.&amp;nbsp; When I decided it was too much of a hassle to keep going with that effort for the time being (secure boot needed to be disabled, etc), I turned off the USBIP binding to the SEGGER USB device. At some point soon after i messed up the JLINK firmware as well.&amp;nbsp; Nothing in any of the help searches turned up anything about making sure that there wasn&amp;#39;t another driver trying to claim the device, and the blink codes for the SEGGER firmware were hard to figure out.&amp;nbsp; &amp;nbsp; At any rate, everything is working now and there should be some information in the Nordic docs that speak to the SAM-BA ROM monitor code in the SoC that can be used to recover the bootloader firmware and restore the operational JLINK firmware from there.&amp;nbsp; Currently the documentation basically says you can&amp;#39;t do anything if the bootloader is corrupted and that&amp;#39;s absolutely not the case, and in reality there&amp;#39;s really no reason that the SAM-BA recovery method wouldn&amp;#39;t ever work that i can tell.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need interface MCU initial boot firmware</title><link>https://devzone.nordicsemi.com/thread/330805?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 10:47:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68bf073b-f31c-4825-8d77-bc1f45cd1034</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Not really, unfortunately. We are not experts on these details though, as this has been made by Segger. Perhaps it is worth asking them?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need interface MCU initial boot firmware</title><link>https://devzone.nordicsemi.com/thread/330677?ContentTypeID=1</link><pubDate>Wed, 22 Sep 2021 13:04:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a819365e-ebfb-4ae3-97ab-aab95af68235</guid><dc:creator>jeffd</dc:creator><description>&lt;p&gt;this image will go into the bootloader with IF/BOOTRESET button, but after a little while, led5 goes from a slow blink to a 1Hz blink and USB disconnects.&amp;nbsp; If i do a normal boot again after that, i get no USB connection (no bell from Windows) and no led.&lt;/p&gt;
&lt;p&gt;with this bootloader i can drop the DAPLink FW onto the device and it boots into that normally as expected.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need interface MCU initial boot firmware</title><link>https://devzone.nordicsemi.com/thread/330672?ContentTypeID=1</link><pubDate>Wed, 22 Sep 2021 12:54:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86fc9706-d22d-4d7e-8f9f-df0a92480425</guid><dc:creator>jeffd</dc:creator><description>&lt;p&gt;any explanation why the DAPLink FW seems to work just fine?&amp;nbsp; I&amp;#39;m able to download applications to the nrf52832 all day long no issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need interface MCU initial boot firmware</title><link>https://devzone.nordicsemi.com/thread/330664?ContentTypeID=1</link><pubDate>Wed, 22 Sep 2021 12:37:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8dbc2ba-926e-4484-a1b9-9f0e0a6cbbb1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. In that case I suspect there may be some other issue on the board as well, as you should have the exact same firmware as the DKs are shipped with after doing that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need interface MCU initial boot firmware</title><link>https://devzone.nordicsemi.com/thread/330662?ContentTypeID=1</link><pubDate>Wed, 22 Sep 2021 12:32:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0735ccf7-3bb5-4dd8-befe-7a6ff3ed9ae6</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;This is the entire flash image which needs to be flashed with the&amp;nbsp;SAM-BA interface or JTAG. In production we get empty chips and flash this and only this image.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need interface MCU initial boot firmware</title><link>https://devzone.nordicsemi.com/thread/330653?ContentTypeID=1</link><pubDate>Wed, 22 Sep 2021 12:18:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f1aad61-3922-4b9b-a945-9e15531e835c</guid><dc:creator>jeffd</dc:creator><description>&lt;p&gt;no joy.&amp;nbsp; flashing via SAM-BA gives the exact same results of a 10Hz flashing led5, no JLINK drive.&amp;nbsp; Windows recognizes something is connected, but i don&amp;#39;t see anything in device manager.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need interface MCU initial boot firmware</title><link>https://devzone.nordicsemi.com/thread/330651?ContentTypeID=1</link><pubDate>Wed, 22 Sep 2021 12:15:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cbdcc1a-2f3a-4c7e-93f6-5155173b5c96</guid><dc:creator>jeffd</dc:creator><description>&lt;p&gt;so is the .bin file below the entire flash image (which would need to be flashed via the SAM-BA interface or JTAG)? or is it an encapsulated .bin that will be able to be downloaded by the currently installed bootloader and do a self-update?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i&amp;#39;m going to start with SAM-BA programming and see what happens.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need interface MCU initial boot firmware</title><link>https://devzone.nordicsemi.com/thread/330617?ContentTypeID=1</link><pubDate>Wed, 22 Sep 2021 10:48:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c380a51e-9994-4efb-ba28-d07a4ecab709</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I checked with the production guys, and they now use a single binary in production: &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/concat_5F00_mbed_5F00_170117_5F00_jlink_5F00_180712.bin"&gt;devzone.nordicsemi.com/.../concat_5F00_mbed_5F00_170117_5F00_jlink_5F00_180712.bin&lt;/a&gt;. Can you try with this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need interface MCU initial boot firmware</title><link>https://devzone.nordicsemi.com/thread/330486?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 12:23:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1aabc1d6-f22b-4510-a4ae-5a7674cc4eab</guid><dc:creator>jeffd</dc:creator><description>&lt;p&gt;what started this in the first place is the same problem lots of people have, when the firmware in the interface MCU is overwritten/corrupted somehow they are unable to restore it.&amp;nbsp; I don&amp;#39;t really know how it got corrupted though, i read something about how when the JLINK Commander/Configurator attaches it automatically attempts to update the JLINK FW to the latest?&amp;nbsp; i didn&amp;#39;t recall seeing any sort of popup asking if that&amp;#39;s what I wanted, and if it just does it without asking i think that&amp;#39;s poor user experience/expectations.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;when i somehow lost the JLINK firmware (i did see it at least the first time i plugged it in), i tried the normal process of restoring as described for the typical usage model of drag/drop but that obviously wasn&amp;#39;t working.&amp;nbsp; because this issue has already cost me several days of possible development (i didn&amp;#39;t even start yet) i didn&amp;#39;t want to have to wait for a new DK to be sent to me and figured there must be a way to reflash it myself.&amp;nbsp; so as I do, I dug into the documentation of the SAM3U part and figured out there&amp;#39;s a (mask?) ROM&amp;#39;d monitor that can be used to recover so i did that.&lt;/p&gt;
&lt;p&gt;So i&amp;#39;m guessing that the mbed bootloader that&amp;#39;s linked on the nrf52 DK page is an updated bootloader with a flash progamming bit of code included because the bootloader can&amp;#39;t do self-update (it&amp;#39;s only XIP?).&amp;nbsp; the bootloader that i got from the .zip file must just be the mbed bootloader itself with no flash progamming update code...&lt;/p&gt;
&lt;p&gt;either way, i&amp;#39;m unable to recover the JLINK FW for some reason.&lt;/p&gt;
&lt;p&gt;see my other post, i was able to install the DAPLink FW just fine using their bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need interface MCU initial boot firmware</title><link>https://devzone.nordicsemi.com/thread/330475?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 11:52:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4df98c9f-64f3-4091-b517-47fc2786f9b1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You are right that you can re-program the onboard debugger IC using the firmware (bootloader and J-Link application firmware) from the&amp;nbsp;JLINK Restore.zip found in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/37759/alternative-way-to-re-flash-interface-mcu-using-tc2050-j3-on-pca10040/145966#145966"&gt;this post&lt;/a&gt;. You can also refer to the &lt;a href="https://www.segger.com/downloads/jlink/UM08018_JLinkOBSAM3U128.pdf"&gt;more extensive documentation from Segger&lt;/a&gt;. Based on what you have described you have done as explained in the document, and also installed the&amp;nbsp;J-Link OB-SAM3U128-V2-NordicSemi 170213.bin via DFU, so it should be OK.&lt;/p&gt;
&lt;p&gt;Regarding size that is no problem. You can fit both the bootloader and the application, and this is what is used in production of the DKs. If you do a flash erase of the debugger IC and programs the bootloader, you should then be able to install the J-Link firmware by drag-and-drop (USB DFU), and you would end up with the same configuration as the DKs are shipped with.&lt;/p&gt;
&lt;p&gt;I am not sure what to make of the states described in your last post, to be honest. May I ask why you started endeavor this in the first place? Perhaps that can also give some hints on the issue you are seeing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need interface MCU initial boot firmware</title><link>https://devzone.nordicsemi.com/thread/330359?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 22:26:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:872b9082-83db-4779-a789-7d6361ca48b2</guid><dc:creator>jeffd</dc:creator><description>&lt;p&gt;it would seem that there&amp;#39;s an issue with the size of the firmware for the interface MCU.....&amp;nbsp; if they are intended to live together in the flash of this device, the MBED firmware binary from the Nordic download page is 35K, and the JLINK firmware binary is 108K, there&amp;#39;s some overrun because there&amp;#39;s only 128K of flash in this MCU.&amp;nbsp; (verified by reading the CHIPID register and issuing the flash read descriptor.)&lt;/p&gt;
&lt;p&gt;last thing i&amp;#39;ve tried today is concatenating the smaller mbed firmware with the JLINK firmware (padded to the next 1K boundary, i presume the bootloader starts scanning there) in a single file and sending that to the flash with the SAM-BA loader and rebooting.&amp;nbsp; &amp;nbsp;I get the same 10Hz flashing led5 as above, rather than the MBED bootloader led 1/2Hz flash.&amp;nbsp; &amp;nbsp;holding the IF/BOOTRESET and powering up give me the BOOTLOADER drive (as expected), which flashes at 1/2Hz for a bit and then disconnects from USB and then flashes at 1Hz.&amp;nbsp; &amp;nbsp;power cycling after that results in no led flashes, as though the JLINK firmware doesn&amp;#39;t start at all...... maybe the MBED bootloader erases the application flash area?&amp;nbsp; i&amp;#39;m able to go to BOOTLOADER again and drag/drop the JLINK FW again, a reboot gets the 10Hz flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need interface MCU initial boot firmware</title><link>https://devzone.nordicsemi.com/thread/330357?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 20:52:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3cf2e83-e100-483b-a554-835ee8bdc4c8</guid><dc:creator>jeffd</dc:creator><description>&lt;p&gt;ok, for any subscribers of this issue, some further debug and i&amp;#39;ve gotten the mbed bootloader back installed and showing up as a drive.&amp;nbsp; i actually found this link:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/37759/alternative-way-to-re-flash-interface-mcu-using-tc2050-j3-on-pca10040"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/37759/alternative-way-to-re-flash-interface-mcu-using-tc2050-j3-on-pca10040&lt;/a&gt;&amp;nbsp;which describes exactly what i already figured out by reading the AT91SAM3U2 datasheet and the nRF52 DK schematic.&amp;nbsp; (forgot to mention, applying VDD to the cut SB31 was simply a wire on one of the nRF current management pins to SB31 1/2 moon closest to the chip for a second while applying power).&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;when i used the 140828_MBED_bootloader.bin from the link above (scroll down to the bottom, file is JLINK Restore.zip) i&amp;#39;m able to get back to the BOOTLOADER drive with the IF/BOOTRESET button.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;previously, the firmware i was trying to load was called nrf5x_atsam3u2c_if_mbed_V0221_11012017.bin (a 35K file), vs the 140828_MBED_bootloader.bin file which is 19K.&amp;nbsp; The nrf5x_xxx file is what you get from the nRF52 DK downloads page.&lt;/p&gt;
&lt;p&gt;please note that the above zip file has a guide in it that basically says that it may not work in all cases, so YMMV.&amp;nbsp; &amp;nbsp; If you have a new board like mine, be aware that the SB31 is shorted to GND, use a razor blade to cut the link.&amp;nbsp; The MCU has a permanent pulldown already so it should work as normal without it.&lt;/p&gt;
&lt;p&gt;i&amp;#39;m still not able to get the board to show up as a JLINK device though, but after sending the JLINK firmware to it and restarting, LED5 is flashing pretty fast, maybe 10Hz.&amp;nbsp; windows recognizes *something* based on the sounds, but nothing shows up in device manager.&amp;nbsp; i&amp;#39;m wondering if the security bit needs to be enabled for the JLINK firmware to boot.&amp;nbsp; perhaps they are protecting it?&amp;nbsp; well, just tried that and it didn&amp;#39;t make a difference.&amp;nbsp; &amp;nbsp;continue digging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>