zaordsword Posted October 20, 2020 Report Share Posted October 20, 2020 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 : To : How can I do that ? Thanks a lot by advance ! Quote Link to comment Share on other sites More sharing options...
Antichambre Posted October 20, 2020 Report Share Posted October 20, 2020 Hi, 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) Etc... 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 Bruno Quote Link to comment Share on other sites More sharing options...
zaordsword Posted October 20, 2020 Author Report Share Posted October 20, 2020 (edited) Hi ! Where I can remap those pins ? in which file ? It is for a MIDI128 application Edited October 20, 2020 by zaordsword Quote Link to comment Share on other sites More sharing options...
Antichambre Posted October 22, 2020 Report Share Posted October 22, 2020 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 Bruno Quote Link to comment Share on other sites More sharing options...
zaordsword Posted October 24, 2020 Author Report Share Posted October 24, 2020 Okay, And for shifting SD card to J16, J8/9 or J19, how can I do that ? Quote Link to comment Share on other sites More sharing options...
Antichambre Posted October 24, 2020 Report Share Posted October 24, 2020 Put it on J16 which is 3V3, J8/9 is 5V and reserved for SRIO, J19 is 5V too.http://www.ucapps.de/index.html?page=mbhp_sdcard.html Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.