Error in SPI pin allocation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-06-04 4:10 AM
Hello,
I just designed an electronic card using the STM32G474QET6TR. Just a day before receiving the card I realised I had made a mistake on the routing. I want to use SPI2 to driver 2 MAX4896ETP+ that are daisy chained.
As per the MAX datasheet, to do this you're supposed to connect as follows :
But I realised while doing the pin allocation on the ioc file of my new STM32CubeIDE project that I actually messed up on my routing. I inverted the SPI2_SCK and the SPÏ2_MISO.
SO I'm left with:
- PB13 connected to the second MAX DOUT
- PB14 connected to the both MAXs SCLK
WHen it should be the otherway arround.
SO my question is acually quite simple, is it that big a problem ? Can I fix it through software or am I going to have to cut both tracks and then solder a wire to invert it ?
Thanks for your time and answers
Solved! Go to Solution.
- Labels:
-
SPI
-
STM32G4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-06-04 5:16 AM
You won't be able to use SPI2 as-is. For a single device, it would take less time to cut the track and solder a wire than to implement SPI by bit-banging, in my opinion. In any case, those are your options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-06-04 5:07 AM
Hi,
This device does not seem to require frequent data exchanges with the MCU or high I/O flow, so possibly you can get away with bit-banging the SPI. So, it won't be a big deal. Things happen ))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-06-04 5:16 AM
You won't be able to use SPI2 as-is. For a single device, it would take less time to cut the track and solder a wire than to implement SPI by bit-banging, in my opinion. In any case, those are your options.
