Skip to main content
Visitor
Question

Bug in the configuration of RMII for Nucleo-144 based on STM32F767zi

Why is this bug still not fixed?  I downloaded a new copy of cubeMX and just spent 5 hours debugging a simple ethernet ping application only to find out the pin mapping in the MXX board file is not correct.  This bug was reported in 2019.  This has got to be a 10 minute fix for ST saving countless hours for developers who have no idea, and no expectation, that the pin mapping is incorrect.

6 replies

TDK

Attach the IOC file you’re having trouble with, and/or link the relevant thread. Nobody knows what you’re referring to.

"If you feel a post has answered your question, please click ""Accept as Solution""."
PJB14Author
Visitor

Here is the original post from 2019:
 

 

Attached is the IOC file that is generated when enabling the RMII ethernet port.  It incorrectly assigns ETH_TX_EN to PB11, instead of the correct PG11 pin.  It also incorrectly assigns ETH_TXD0 to PB12 instead of the correct PG13 pin on the board.  ETH_TDX1 is correctly assigned to PB13.  

I ran another test with the Nucleo-F429ZI board and it has the exact same issue.  CubeMX (latest version, 6.19.0, downloaded new today) incorrectly assigns ETH_TX_EN and ETH_TXD1 to the same wrong two pins.  The rest of the RMII pin assignments are correct.

Attached for your reference is the Ethernet page of the board schematic showing the correct pins.

Unless I missed a file download or correction, which is certainly possible, it seems to me that these errors are still in the board selector MX files.

 

Ghofrane GSOURI
ST Technical Moderator

Hello ​@PJB14 

The datasheet DS11532 Rev 9 confirms that PB11 and PB12 support ETH_RMII_TX_EN and ETH_RMII_TXD0, respectively, so these assignments are valid alternate-function choices for the MCU.

 

 

I will be waiting for your feedback .

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
PJB14Author
Visitor

I understand that these are valid alternate functions, I don’t have an issue with that.  The problem is that the default pin assignments that are preloaded with the board file in MX do not have the correct settings for the actual board layout.  The default pin assignments should match the actual board connections.

TDK

The IOC file you created was based off of a bare STM32F767ZI chip, not a board, so it’s not expected to have the pin assignments the same as the nucleo board. You can see this as NUCLEO-F767ZI is not listed in the bar.

 

To create a project from the board, use the board selector (as opposed to MCU selector). Don’t click the MCU part number as it will switch to the MCU selector.


 

With a new project, with up to date tools, the tool sets PG11 as the EN pin on the NUCLEO-F767ZI board. This matches the schematic. Note that NUCLEO-F767ZI is listed in the bar.

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
PJB14Author
Visitor

OK, thank you, that explains what I was doing wrong.  I did start with the board selector, searching for Nucleo-F767 and returning only one item.  I then clicked on the only item that looked clickable (underlined device part number) to select it in order to start the project, but it switched to the MCU selector tab (which I didn’t notice), which has different default pin assignments.

Looks like I didn’t need to select anything since the item was already selected in the list of one item.  I just needed to click “Start Project” to get the development board pin assignments.

Thanks for clearing this up.  I hope this helps someone else out who encounters a similar problem.