Jump to content

Ways to change the Sd card pins definition on STM32F4 boards


Recommended Posts

Hi here,

I try to modify the pin definition mapping between MIOS and hardware because I use a STM32F4VGT alternative board with a sd card directly implemented and the pins are differents for the midibox standard pins.

I need to swap this standart Midibox Ports to this new ones :

Midi box  | Alternatie board

From image.thumb.png.5b714226f1c984b68114cb83da341305.png

To :



How can I do that ?


Thanks a lot by advance !


Link to comment
Share on other sites


All pin of the STM32F4 are General purpose I/O(GPIO) but they have limited alternative functions.

The pins for this SD Card are used for other ports/peripherals.

PC10 is used for the onboard DAC(Disco)
PC11 is the LCD Read/Write
PD2 is the UART5 RX(MIDI)
PC12 is the UART5 TX(MIDI)

So you will have to remap more than this pins, cause the functions you remove has to move on an other pins, to get all MIOS32 ports available and avoid conflict.

I strongly suggest to follow the regular pinout and add an external SD Card Socket

...Or you can download the datasheet, open a blank excel sheet and start a long adventure... ;)

Note: your CPU must be a STM32F407xx for MIOS32 to work properly.

Best regards


Link to comment
Share on other sites

Like I said before, it's not something easy.
SD Card can be shifted to any predefined SPI port J16(default) J8/9(SRIO) and J19. They are unfortunately not defined over your requested pins.
Moving the SPI to your desired pins is something deeper, and the functions defined on this pins will have to be moved somewhere else then move another somewhere else again.
It's not in one unique file, it's multiple header files you have to modify in MIOS32.
There's no quick answer for your request, it needs study and time.

Best regards


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...