Skip to main content
Associate II
January 27, 2022
Solved

Information about evaluating Ethernet using the STM32Cube initialization code generator

  • January 27, 2022
  • 4 replies
  • 1473 views

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

This topic has been closed for replies.
Best answer by Amel NASRI

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

4 replies

Pavel A.
January 27, 2022

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.

forstAuthor
Associate II
January 27, 2022

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​

Pavel A.
February 1, 2022

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

Amel NASRI
Amel NASRIBest answer
ST Technical Moderator
January 27, 2022

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 "Best Answer" on the reply which solved your issue or answered your question.