2016-01-28 07:07 AM
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-stm32f3022016-01-28 07:46 AM
If you use SWD instead of JTAG, which requires only PA13/14, then PB3/4 are freed up for SPI3.