Skip to main content
David Picazzo
Associate
August 3, 2017
Question

How to change pin assignments on STM32CubeF7 example applications?

  • August 3, 2017
  • 1 reply
  • 2049 views
Posted on August 03, 2017 at 19:15

Hello, 

I currently have the LWIP example from the STM32CubeF7code samples running on an STM32F746 Nucleo Board. I would like to change some of the pin assignments to test the code on a prototype board the uses the 746 MCU. So far I have tried using the GPIO_AF11_ETH command in the initialization to change RMII_MII_TXD0 from PG13 to PB12. Is there a better way to do this? Thank you!

#ethernet-stm32f7 #stm32f746-nucleo #stm32 #stm32cube_fw_f7_v1.7.0
This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
August 3, 2017
Posted on August 03, 2017 at 19:23

The example code is manually generated, not via CubeMX, so you'll need to go into the BSP layers and change clocks and pins as required to migrate functionality to different boards.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
David Picazzo
Associate
August 3, 2017
Posted on August 03, 2017 at 20:06

Thank you! This is what I was looking for, The two processors are the same and the have the same pinout and clock configurations for the most part, the only issue is switching the pins from PG13 to PG12. Would you happen to know which BSP layer holds the Ethernet pin assignments? I can't seem to find the correct file. Thank you for your quick response!

Tesla DeLorean
Guru
August 3, 2017
Posted on August 03, 2017 at 21:09

Grep or find-in-files HAL_GPIO_Init, I don't have the F7 library installed on this box.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..