cancel
Showing results for 
Search instead for 
Did you mean: 

IS IT POSSIBLE TO USE OTHER GPIO PINS AS CHIPSELECT PIN IN SPI1 MODULE IN STM32F103VC CONTROLLER ?

SB1
Associate II

We are working custom board which has stm32f103vct6 (LQPF 100pin) on it. Our aim is to interface flash memory with microcontroller through SPI1 module but mistakenly board designed as PC4 pin for chip select instead of PA4 pin. Is there any other way to remap chip select pin to PC4 pin.

2 REPLIES 2
AvaTar
Lead

Not really, if you want hardware NSS.

You can forego the HW slave select for the SPI peripheral, and control it manually. This way, you can use any free pin, also PC4.

Or you can go for a board redesign, and patch the current prototypes.

LACTIC
Associate II

You can choose SP1 on "PortB ( PB5 -MOSI,PB4-MISO,PB3-SCK)and your NSS pin come at PA15 " in this config you will not able to use SPI3. If you want to operate your MCU in defaut SPI1

then(PA4-NSS,PA5-SCK,PA6-MISO,PA7 -MOSI).