Skip to main content
Aarra.1
Associate III
February 18, 2023
Solved

Ethernet connectivity issue STM32H7

  • February 18, 2023
  • 1 reply
  • 1020 views

Hello everyone,

I have been working with stm32h747xih6 MCU for a while now.

I'm trying to establish ethernet communication with the MCU.

 if (netif_is_link_up(&gnetif))
 {
 /* When the netif is fully configured this function must be called */
 netif_set_up(&gnetif);
 }
 else
 {
 /* When the netif link is down this function must be called */
 netif_set_down(&gnetif);
 }

My code always goes to the else condition in the above snippet of the code.

I have attached my .IOC file below for reference.

At times when i do arp -a from command terminal my device IP comes on the command prompt but when I try to ping the connection is lost.

Kindly help me out with this issue

This topic has been closed for replies.
Best answer by KDJEM.1

Hello @Aarra.1​ ,

I advise you, when you configurated the ethernet project, to get inspired form the steps described in this FAQ: How to create project for STM32H7 with Ethernet and LwIP stack working. This FAQ will help you to configure your project in STM32CubeMX .

Also, you can get started with the example provided here STM32H7-LwIP-Examples.

I hope this help you!

Kaouthar

1 reply

KDJEM.1
KDJEM.1Best answer
ST Technical Moderator
February 20, 2023

Hello @Aarra.1​ ,

I advise you, when you configurated the ethernet project, to get inspired form the steps described in this FAQ: How to create project for STM32H7 with Ethernet and LwIP stack working. This FAQ will help you to configure your project in STM32CubeMX .

Also, you can get started with the example provided here STM32H7-LwIP-Examples.

I hope this help you!

Kaouthar

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.