AnsweredAssumed Answered

STM32F302K8 JTAG + SPI

Question asked by farah.ibrahim on Jan 28, 2016
Latest reply on Jan 28, 2016 by markt
I'm trying to use the STM32F302K8 32-pin microcontroller and wish to use both JTAG and SPI communication with the same chip. The JTAG connections occupy pins PA13-15 and PB3-4, and there are two options for the SPI connections. If I choose to use PA10 and PA11 (as the MISO and MOSI connections), then I would have to use PF1 as the CLK connection. However, this pin also functions as the OSC_OUT pin for the external oscillator, thus I do not want to use this connection for SPI. The only other SPI option on the chip shares pins with the JTAG connections (PB3 and PB4). I was wondering if someone knows if there is a safe way to toggle between SPI and JTAG functionality on pins which they share, which would allow me to use both types of connections.

Any help is greatly appreciated.

Outcomes