cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7S78-DK ETH and clock

roblahnst
Associate II

Board is STM32H7S78-DK

Serial: K242000883

CubeMX 6.14.0

TouchGFX Designer 4.25.0

CubeIDE 1.17.0

I load the STM32H7S78 Discovery Kit FreeRTOS example in TouchGFX Designer, design a screen and then open it in CubeIDE and flash it to the board. All fine. Then I open the .ioc file in CubeMX and activate ETH in Application and select the RMII mode. Immediately I get a Clock Configuration issue. The ETH CLOCK is only 24 MHz, but should be 50 MHz. When I click the button resolve clock issues I get a solution. I generate the Code (must enable USE_NEWLIB_REENTRANT) and flash the board with CubeIDE, but the Screen is dark. When I debug it goes into the Screen1View::setupScreen, but the Screen I designed in TouchGFX doesn't come up.

4 REPLIES 4
MM..1
Chief III

Long era missunderstanding. Projects created in TGFX isnt ioc reconfigurable. 

GaetanGodart
ST Employee

Hello @roblahnst ,

 

Check what the 24MHz clock that is connected to the ETH is connected to also.
Automatically changing the clock configuration probably changed some other parameters.
Try to fix the clock configuration manually so you see what you changed.

Also, check what have change on the firmware side.

You don't have to enable the USE_NEWLIB_REENTRANT, you can just generate code without.

Also, remember that you have to generate code in STM32CubeIDE and then in TouchGFX Designer to be safe.

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)
GaetanGodart
ST Employee

Hello @roblahnst ,

 

Have you been able to move forward on your project?

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)
Guillaume K
ST Employee

Hi

Not sure it is your problem, but could you check what is the configuration of JP6 on your STM32H7S78-DK board ?

On STM32H7S78-DK the ethernet ETH_MDC can be routed from the LAN8742 PHY to either STM32H7S pin PC1 or PB1. It depends of JP6 setting.

this is to allow other alternate function on pin PC1. 

By default the jumper uses PB1.

the default code example uses PC1 so JP6 must be configured to use it.

It depends how the ethernet pins are configured in your sources.

see STM32H7S78-DK user manual and schematics.

example of code that initialise the GPIO pins for ethernet: STM32CubeH7RS/Projects/STM32H7S78-DK/Applications/LwIP/LwIP_TFTP_Server/Appli/Src/ethernetif.c at main · STMicroelectronics/STM32CubeH7RS