cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F302K8 JTAG + SPI

ifarah
Associate
Posted on January 28, 2016 at 16:07

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.

#spi-jtag-stm32f302
1 REPLY 1
mark239955_stm1
Associate II
Posted on January 28, 2016 at 16:46

If you use SWD instead of JTAG, which requires only PA13/14, then PB3/4 are freed up for SPI3.