<p>Thinking a bit more, I don&#39;t think I actually need to have a hard &quot;never use SO&quot; rule.</p><p>What I can do instead is, default SO to tristated / JTAG mode.</p><p>And in a few specific commands like &quot;query bootloader flash status&quot; enable SPI mode on that pin (resetting jtag in the process due to the errata) and then immediately return to normal mode.</p><p>It means that single-stepping through that part of the code won&#39;t work, but I&#39;ll still be able to reset or power cycle the chip and have JTAG functional again for flashing or debugging of anything but the bootloader.</p>
Reply