2021-11-10 06:20 AM
Hi all,
The MCU we will be using is in the STM32U5 Family.
The debug probe will be the SEGGER J-Link Base.
Best regards,
Bastien
Solved! Go to Solution.
2021-11-15 04:03 AM
If you can keep the device with the remapped jtag pins under reset when connecting, you are set. Remapping only happens when device has started up.
2021-11-10 02:05 PM
I don't know the U5, but on older STM32 the JTAG+SWD interface was always available when the mcu was held in reset using the NRST pin, see debug chapter in RM.
JW
2021-11-11 01:11 AM
Jtag and SWD can not talk _simultanous_ ("at once") to multiple devices. Handling the devices sequential is possible, at least under reset.
2021-11-12 03:02 AM
> Jtag and SWD can not talk _simultanous_ ("at once") to multiple devices.
JTAG, as a bus, can. That's how it's designed - it's basically a shift register, so you chain up multiple devices in one long chain and then shift data through all of them in each individual step. It's a bit more involved than this, but this is the principle.
In fact, one STM32 already represents a chain of two JTAG devices - one is the boundary-scan device, and other is the debug adapter.
I don't know about Segger's implementations' capabilities.
JW
2021-11-13 03:57 AM
Normally only one device in a JTAG chain has a working register selected while the other devicees are in bypass mode. In principle, multiple devices can have the same working register selected and the same payload can be delivered. But I do not know of any tool capable of that.
2021-11-15 12:58 AM
Thank you for clearing that out. I am not accustomed with JTAG, that is why I ask the question.
The need is to program multiple MCUs from a single connector, on a PCB panel that is composed of multiple boards, with 1 MCU on each board. To my knowledge, that is possible using JTAG. It is not an issue whether the MCUs are programmed simultaneously or sequentially (sorry for my misleading previous question).
But what if a panel is programed with the wrong firmware, and this firmware uses the JTAG pins for various functions: will the whole PCB still be programmable from the one JTAG connector?
2021-11-15 04:03 AM
If you can keep the device with the remapped jtag pins under reset when connecting, you are set. Remapping only happens when device has started up.