6
\$\begingroup\$

Both my microcontrollers on my project (dsPIC33FJ128GP804 and PIC24FJ64GA004) support JTAG boundary scan testing. Should I wire these up and expose a JTAG port for hackers? The product is intended to be open hardware and as such be modified. ICSP and ICD ports will also be exposed. Of course these ports and traces take up space - so is it worth it? Would people be able to use them with basic PIC micros?

\$\endgroup\$
4
  • \$\begingroup\$ I'd say you should ask your potential users that. Since it's open hardware, JTAG would add to the feeling of openness, but if your target audience isn't interested, it would be a waste of time. \$\endgroup\$
    – AndrejaKo
    Dec 10, 2010 at 12:48
  • \$\begingroup\$ @AndrejaKo, I'd ask, but I'm selling to both EE's and non-EE's - the EE's will probably say "yes please", the non-EE's will probably say "I don't care." \$\endgroup\$
    – Thomas O
    Dec 10, 2010 at 12:59
  • \$\begingroup\$ As I feared. Unfortunately, I don't have anything smart to say. :( \$\endgroup\$
    – AndrejaKo
    Dec 10, 2010 at 13:05
  • \$\begingroup\$ This is a rather subjective and localized question. The answers will all depend on who your audience is and what could be done in your particular application. If you don't know what all a JTAG connector can do for you then you can ask that and then decide on your own if the features that you get are worth it. \$\endgroup\$
    – Kellenjb
    Dec 11, 2010 at 21:53

4 Answers 4

10
\$\begingroup\$

How expensive is half a square inch of board space? Bring out the traces to some small pitch pads. Those who are interested can solder their own header adapter.

(EE who says "yes please")

\$\endgroup\$
2
  • 1
    \$\begingroup\$ We do this even on products that are never intended to be modified by the end user. Makes them easier to debug if something goes wrong in the field. Connector is expensive, so we just leave the pads. \$\endgroup\$ Dec 10, 2010 at 15:18
  • \$\begingroup\$ Good idea. I'm going to do this as well. \$\endgroup\$
    – tyblu
    Dec 10, 2010 at 18:43
7
\$\begingroup\$

JTAG is very rarely used with those devices. All you need is the usual connector for an ICD 2/3 or PICkit.

\$\endgroup\$
1
  • 5
    \$\begingroup\$ Agree. I've never used the JTAG interface on any of my PIC projects. The ICSP interface is quite adequate for debugging via MPLAB. \$\endgroup\$
    – tcrosley
    Dec 10, 2010 at 13:45
0
\$\begingroup\$

Yes, you should. It can be used to check connections between the chips. If there are a lot of such connections, it can really help. If they mainly go to other chips w/o JTAG (e.g. memories), then it won't be as helpful.

\$\endgroup\$
-1
\$\begingroup\$

These pins will surely be needed for the firmware debugging/loading.

You could always bring them out onto a section of the board that can be snapped off before delivery/installation. This means that the developer has access to the connector/debug interfaces that are absent from the final product. If you place the debug traces on an inner board layer then this will make the hacker's life more difficult but, assuming that you have not disabled the JTAG in the processor, they will always have access to the device pins and so to the interface.

\$\endgroup\$
1
  • 1
    \$\begingroup\$ The ICSP headers are used for programming, not JTAG... unless I'm missing something(?) \$\endgroup\$
    – Thomas O
    Dec 10, 2010 at 13:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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