Skip to main content
Michael Siekiera
Associate
July 3, 2018
Question

STM32H7 LwIp Ethernet

  • July 3, 2018
  • 2 replies
  • 1468 views
Posted on July 03, 2018 at 17:08

Hi everyone,

I am new to programming Ethernet applications and wanted to start with just sending Ethernet frames with my stm32H7 Nucleo Board. The only Middleware I use is LwIP.

My problem is, that the programm itself is running, but i can not see any frames from my nucleo board with Wireshark.

Rigth now when I am trying to send a Ethernet frame with ethernet_output(), the first line

struct eth_hdr* ethhdr;

seems to fail to create the struct ethhd with following Message:

===============================================

Multiple errors reported.

1) Failed to execute MI command:

-var-create - * ethhdr

Error message from debugger back end:

value has been optimized out

2) Unable to create variable object

3) Failed to execute MI command:

-var-create - * ethhdr

Error message from debugger back end:

value has been optimized out

===============================================

My main methode looks basically like this 0690X00000604j4QAA.jpg

(note: the MACAddrDest was not 0x00 during my testing).

Does anyone know, where my Problem could be?

Would appreciate any help i could get.

Best regards

PS. I also attached my whole project, if someone wants to look in.

#stm32h7-ethernet
This topic has been closed for replies.

2 replies

Amel NASRI
ST Technical Moderator
July 3, 2018
Posted on July 03, 2018 at 18:15

Hi

Siekiera.Michael

,

Could you please start with a working example like the one mentioned in 

 ?

For your project generated with CubeMX, try to follow the recommendations provided in this same FAQ.

-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.
Michael Siekiera
Associate
July 3, 2018
Posted on July 03, 2018 at 19:45

Hi

st.mcu

,

thank you for the quick response.

I modified my linker script and my MPU config to match the ones from the working examples, but I still get the same error.

Is there anything else I could try to do?