cancel
Showing results for 
Search instead for 
Did you mean: 

Information about evaluating Ethernet using the STM32Cube initialization code generator

forst
Associate III

Hello,​

I use STM32H735DK.

And I'm creating an Ethernet project using STM32CubeMX

However, the following sample software did not have an .ioc file

--

STM32Cube_FW_H7_V1.9.1\Projects\STM32H735G-DK\Applications\LwIP\LwIP_UDP_Echo_Server

--

I created a new project and generated an .ioc file using STMCubeMX.

However, Ethernet did not work in the project.

LinkerScript.ld is the same as H7_V1.9.1 and

I checked for differences with the sample software.

There was a difference

Added the following code, as a result Ethernet worked

--

__HAL_RCC_D2SRAM1_CLK_ENABLE();

--

Where can I find this setting in STMCubeMX?

Best regards

1 ACCEPTED SOLUTION

Accepted Solutions
Amel NASRI
ST Employee

Hi @forst​ ,

How do I create a project for STM32H7 with Ethernet and LwIP stack working?

May be this is what you need to start with.

-Amel

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.

View solution in original post

4 REPLIES 4
Pavel A.
Evangelist III

There is no such setting in CubeMX. This is in template database used to generate initialization code.

IMHO enabling the appropriate D2SRAM should better be done where the memory area for Ethernet is selected: close to the MPU area initialization or close to ETH initialization where it assigns memory for DMA.

forst
Associate III

Hello,​

What is template database?

After I have generated the code in CubeMX,

Do I have to manually add it to my code?

Is there a standard project for Ethernet using CubeMX?

regardst regards​

Amel NASRI
ST Employee

Hi @forst​ ,

How do I create a project for STM32H7 with Ethernet and LwIP stack working?

May be this is what you need to start with.

-Amel

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.

@forst​ The template database is (on Windows) %USERPROFILE%\.stm32cubemx\databases\DB.6.0.21\db\templates