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

Need interface MCU initial boot firmware

Please don't give the usual response of 'try the troubleshooting guide' 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 the IF/BOOTRESET pin is pressed on power on.  It seems that if the J-link operational firmware is corrupted, no amount of BOOTLOADER recovery seems to work to restore the J-Link.  I'm able to restore the Mbed firmware but that just allows the device to show up as a USB drive to program the nRF52x code which is *not* what i need to do.

I've been unable to determine where the actual initial Mbed-enabled boot code is.

What i've done is cut SB31 and applied VDD to the ERASE pin of the interface MCU to get the SAM-BA bootloader interface connected.  Then i've attempted to 'Enable Flash Access', 'Erase All Flash', 'Send File Name' with the .bin file for the J-Link firmware, and then finally 'Boot From Flash (GPNVM1)' before cycling power to the DK board.  There's no detection of the USB link after that.  I've obviously erased the initial Mbed bootloader because it doesn't appear anymore when IF/BOOTRESET is pressed during power on.  

It seems to me there's the initial Mbed-enabled bootloader for the interface MCU which will boot into either the J-Link firmware or the Mbed firmware if they exist, but the J-Link and secondary Mbed firmware don't include the initial boot capability.  I'd rather not have to get the Mbed development software and build my own since Nordic has already done it.

Parents
  • Hi,

    You are right that you can re-program the onboard debugger IC using the firmware (bootloader and J-Link application firmware) from the JLINK Restore.zip found in this post. You can also refer to the more extensive documentation from Segger. Based on what you have described you have done as explained in the document, and also installed the J-Link OB-SAM3U128-V2-NordicSemi 170213.bin via DFU, so it should be OK.

    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.

    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.

  • 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.  I don'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?  i didn't recall seeing any sort of popup asking if that's what I wanted, and if it just does it without asking i think that's poor user experience/expectations.  

    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't working.  because this issue has already cost me several days of possible development (i didn't even start yet) i didn'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.  so as I do, I dug into the documentation of the SAM3U part and figured out there's a (mask?) ROM'd monitor that can be used to recover so i did that.

    So i'm guessing that the mbed bootloader that's linked on the nrf52 DK page is an updated bootloader with a flash progamming bit of code included because the bootloader can't do self-update (it's only XIP?).  the bootloader that i got from the .zip file must just be the mbed bootloader itself with no flash progamming update code...

    either way, i'm unable to recover the JLINK FW for some reason.

    see my other post, i was able to install the DAPLink FW just fine using their bootloader.

  • I checked with the production guys, and they now use a single binary in production: concat_mbed_170117_jlink_180712.bin. Can you try with this?

Reply Children
No Data
Related