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

Chain JTAG, mutli-mcu programming with nrf52?

I'm just checking because search didn't have hits.

Has anyone used JTAG "chain" programming to flash two micros on the same circuit? I assume the nrf52s won't hold this up, but I'm not sure.

Anyone?

Parents Reply Children
  • You answer enough questions here that I really don't mind linking your own stuff.

    But... Is that going to help me to program two chips on the same board via one connector? Esp considering one is Nordic and the other is not?

  • I though you were talking about multiple nRF52. Well there are no gang programmers that can do different kind of MCU at the same time. Usually they program same processor in parallel. As I said, SWD is peer to peer (one on one) only. If you want to use the same connector, you need to have a switch between them. The IDAP-M was used like that on a customer dev kit which as a nRF51 + KL26Z sharing the same connector. It can program both processor but one at a time only.

  • The programmer you linked to is not particularly cheap.

    If you are willing to do the work to compile the code, you can build a BlackMagic Probe, using a $4 STLink (STM32) dongle and the code from github.com/.../blackmagic

    In terms of programming 2 devices via one connector. AFIK its not possible, But as SWD is only 2 wires, you could add an extra 2 wires to your connector and have separate SWCLK and SWDIO lines for both processors (assuming they are both ARM type and use SWD)

    In fact, I suspect you can probably share the SWCLK line between both (though you'd need to double check this)

  • I am sorry to disappoint you but $4 is only the MCU. There are a lot more components to that. Overall costs is over 10x that and I am not using some body else code. I write my own. It took 2 years to complete the project and the software is still on updating every time Nordic changes its SOC. To tell you the trust, my investment into the project hasn't paid off yet. All that is because I don't steal other people work and sale knockoff of it. An other thing, a legal USB Vend/Prod ID will cost you $5K. The IDAP is sold with a legal USB ID.

    BTW SWCLK cannot be shared.

  • Nope.

    I made a fully working programmer for $3.80

    www.aliexpress.com/.../213957_32676015777.html

    Checkout my video www.youtube.com/watch where you see that I repurposed that STLink flash a WaveShare BLE400 with a nRF51822

    Please checkout the Blacksphere's products. You can buy the Blackmagic probe from them (also via Kickstarter)

    But they make their code available via the github (as linked above) for anyone to use as long as you have the technical knowledge.

    You can give BlackSphere a donation if you use their code.

    BTW. To Flash the Baite STlink dongle, you need a $2 USB to Serial adaptor (if you don't already have one, so you could fact that into the cost if needed) (umm you would probably need a soldering iron as well)

Related