2023-08-01 06:52 PM
I am running a simple poc to test the SPI connection to a flash memory chip. When I select SPI3 in cube MX, It gives me two options for the set of pins. I would like to use PC12 as Clock but it wont let me change it. Hand editing the generated code doesn't seem to take any effect. There are so many pins available why is it not letting me assign to any unused pins?
Is there a right way to modify the pins after code is generated?
2023-08-01 10:21 PM
There are so many pins available why is it not letting me assign to any unused pins?
SPI3 is a hardware module, it has specific pins that can be alternated.
2023-08-02 06:13 AM
Hello @coolname and welcome to ST Community,
Could you please specify the full part number?
You need to refer to the datasheet to check the related pins physically mapped according to the package being used.
For further details, please refer to the reference manual section 9.3.11 SPI3/I2S3 alternate function remapping and section 9.4.2 AF remap and debug I/O configuration register (AFIO_MAPR)
Thanks for selecting Accept as solution if this helps!
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.