2024-01-11 12:50 AM
Hi community, just a single question as confirm.
I am working with stm32f429.
From the schematic the hw engineer decided to use the following pin for spi purpose for communicating with an eeprom
Can you confirm that i cannot use those pins for spi purpose ?
(i have tried to select sp1,sp2,sp3,sp4,sp5,sp6)
Thanks a lot
Solved! Go to Solution.
2024-01-11 01:44 AM - edited 2024-01-11 01:51 AM
>the point is is all the pins are ok for spi and how to change the proposed pins in cube mx
check = exactly this. Is possible ? -> ok , then click on each pin and select the function you want , spi2xxx here.
ready . Now they are "user defined" (pinned) on this position.
And set in configuration SPI2 -> full duplex master (or what you need for your eeprom access ).
2024-01-11 01:26 AM - edited 2024-01-11 01:33 AM
F429 - case ?
from ds , p.62: PB13 , should be sck_eeprom - right ?
-> spi2_sck is possible, so check , for other pins for your eeprom on SPI2 ;
pin74 --> LQFP144 .
+
When in Cube select/activate spi2 , then can choose also alternative pins for some peripherals ;
you can select them manually, click on the pin and choose..
2024-01-11 01:34 AM
Hi @AScha.3 ,
thanks for the quick reply
case is stm32f429zit6,
what do you mean for spi2_sck is possible, so check , for other pins for your eeprom on SPI2 ;?
the point is is all the pins are ok for spi and how to change the proposed pins in cube mx
Thanks
2024-01-11 01:44 AM - edited 2024-01-11 01:51 AM
>the point is is all the pins are ok for spi and how to change the proposed pins in cube mx
check = exactly this. Is possible ? -> ok , then click on each pin and select the function you want , spi2xxx here.
ready . Now they are "user defined" (pinned) on this position.
And set in configuration SPI2 -> full duplex master (or what you need for your eeprom access ).
2024-01-11 02:06 AM
2024-01-11 02:32 AM
>mosi and miso are inverted
signal inverted ? pins exchanged ?
2024-01-11 02:49 AM - edited 2024-01-11 02:50 AM
@AScha.3 - "pins exchanged ?"
Look at the diagrams:
This is why names like "SI" and "SO" are best avoided: they are ambiguous - does your "SO" mean output from the MCU to the EEPROM, or output from the EEPROM to the MCU?
Using MISO and MOSI* removes this ambiguity!
* or modern alternatives alternatives like PICO and POCI: https://www.sparkfun.com/spi_signal_names
2024-01-11 03:00 AM
1. I have no eeprom connected... ( this i made just to show you, how to do)
2. right or wrong : which eeprom and connected pins ?
3. Maybe your lucky : miso--mosi can be swapped on some cpu , just look in your rm -> spi.
here from f44x manual: