We are using the LPC5516JBD64 which has eight ADC channels defined and want to use seven of them. Three of the channels share IO with the SWD interface. We would like to use the SWD to program the device at build time but after that use the IO as ADC inputs, Is there a recommended circuit configuration to allow this without using jumpers?
From personal experience, I would recommend to avoid such configurations. You only barter for trouble.
Hello,
It seems no, using jumper is easy method.
As an alternate solution, what pins on the SWD are required for programming. Is the SWO pin required to program the LPC5516 over SWD interface? Is the SWCLK and SWDIO the only connections needed to program over the SWD?
Hello,
If you do not use SWO tracing technology, this pin can not used as SWD interface.
SWCLK, SWDIo and GND are necessary.
About debug design, you can have a look at:
https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Design-Considerations-for-Debug/m-p/469565
BR
Alice