2018-07-03 08:08 AM
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 - * ethhdrError message from debugger back end:value has been optimized out2) Unable to create variable object
3) Failed to execute MI command:
-var-create - * ethhdrError message from debugger back end:value has been optimized out===============================================
My main methode looks basically like this
(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-ethernet2018-07-03 09:15 AM
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 Accept as Solution on the reply which solved your issue or answered your question.
2018-07-03 12:45 PM
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?