I am designing a circuit. it will include ARM LPC1769 and AVR ATmega2560. I want to program these chips with JTAG. Now, the question is:

Is that possible to do it with a single JTAG programmer through daisy-chain or do I have to use a separate programmer for each MCU?

  • 1
    \$\begingroup\$ From the hardware and JTAG protocol side, yes. You need to find a programmer and software that supports both AVR and ARM, though, and that can cope with multiple devices on a JTAG chain. \$\endgroup\$ – starblue Dec 16 '12 at 10:26
  • \$\begingroup\$ You'll be hard pressed to find a programmer that does both for the simple reason that the pinout is different. The next challenge would be finding software that supports both architectures. For instance, OpenOCD supports many different chips. However, AVR isn't one of them. \$\endgroup\$ – embedded.kyle Dec 17 '12 at 15:14
  • \$\begingroup\$ @embedded.kyle - pinout is really not that significant. \$\endgroup\$ – Chris Stratton Jan 17 '13 at 18:27
  • \$\begingroup\$ @ChrisStratton Significant? Maybe not from a construction standpoint. Worth mentioning? I thought so. Since many use the same size connector but have different connection arrangement including vendor specific pins, I felt it was useful to point it out in case the OP wasn't aware. \$\endgroup\$ – embedded.kyle Jan 18 '13 at 13:46

Yes, and No.

If you use the vendors programming tools the chances are that although they will work in a chain each vendor will only be able to program it's chip.

However there are vendor agnostic 'universal' programming tools, e.g. OpenOCD, which is open source. Commercial ones exist too. Often the work involved in configuring the universal too to work with all the chips is more work then using each vendor tool one at a time.

Most vendor tools allow you to create SVF (Serial Vector Format) files, these files tell third party universal tools and SVF players how to program each of the chips in the chain without the actual tool having to have built in knowledge of how to program the chip.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.