2020-01-23 09:03 AM
Hi!
I have problems using Ethernet with an STM32H743ZIT6 chip. Im using the suggested lan8742 ETH PHY. And I generated the code with cubeMx. My problem is that I cant find any good sample codes on the net, and I think Im not configuring correctly the stm chip. In the ETH section I get the message that the ram needs to point at 0x24000000 but I dont know how to do it. The leds on the Magjack blink, my switch detects activity on the port, but I cannot see the MAC address of the board in my connected clients list.
I only want to have a static IP and send simple UDP packets with my data to the chip.
Best regards,
Attila
2020-01-23 11:15 AM
Please start with one of Ethernet example projects from Cube library: build them precisely as is, not changing a single bit.
(this means using one of IDEs that the examples are provided for. Not CubeIDE).
They should work on EVAL2 and Nucleo boards.
After seeing them running, adapt for your board.
The Ethernet driver in Cube library has known issues (to put it mildly) but first get the hardware right.
--- pa
2020-01-23 08:16 PM
Hello!
I tried the provided examples. But still no luck. I dont know if I did something wrong with the code, I made it with System Workbench. I cant run debug in system workbench.
Error starting process.
Cannot run program "B:\arm\Projects\NUCLEO-H743ZI\Applications\LwIP\LwIP_HTTP_Server_Netconn_RTOS\SW4STM32\STM32H743ZI_Nucleo\Debug\STM32H743ZI_Nucleo.elf": Launching failed
Cannot run program "B:\arm\Projects\NUCLEO-H743ZI\Applications\LwIP\LwIP_HTTP_Server_Netconn_RTOS\SW4STM32\STM32H743ZI_Nucleo\Debug\STM32H743ZI_Nucleo.elf": Launching failed
Cannot run program "B:\arm\Projects\NUCLEO-H743ZI\Applications\LwIP\LwIP_HTTP_Server_Netconn_RTOS\SW4STM32\STM32H743ZI_Nucleo\Debug\STM32H743ZI_Nucleo.elf": Launching failed
I attach the message I get. I uploaded the bin file with st-link utility. And it doesnt want to get an ip address. I attach my hardware design. Please check if it is correct, the magjack is on the back.
Best regards,
Attila
2020-01-24 11:28 AM
Hi!
I have tested the board with my oscilloscope. I dont see activity on the transmit pins of the arm. The orange led blinks when I connect an ethernet cable, the yellow led light is on permanently. The ETH PHY chip reacts to the NRST, leds are turning off. I get an 50MHz signal on the ref_clk_out pin going to the arm.
Best regards,
Attila
2020-01-25 01:24 PM
With ST's code networking is virtually impossible, especially on H7. Fixing their code requires more effort than writing normal ETH driver and integrating lwIP on your own.