cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H743 Ethernet FreeRTOS LwIP Ping Problem

Muharrem
Associate II

Hi.

I'm trying a simple ping application with my board that contains the H743 microcontroller. I am following the instructions in Adam Berlinger's example. But I can't get ping. I connect my computer to my board via ethernet switch. My computer's IP is 192.168.2.5. But it can't reach to my board. When I try to send UDP packet, I can see the Ip adresses of target and destination(via WireShark software). But I can't see the "Hello UDP message!\n\r". IPs are manually setted. H7 board and computer connected via ethernet switch hub. I added a breakpoint to "void ETH_IRQHandler(void)". After the initial power-on, the system reaches the breakpoint twice even when there is no ping command on the Ethernet port. But when i send ping commands, nothing happens. I can reset LAN8742A PHY via GPIO. 

  /* Initialize all configured peripherals */
  MX_GPIO_Init();
  /* USER CODE BEGIN 2 */
  HAL_GPIO_WritePin(ETH_RESET_GPIO_Port, ETH_RESET_Pin, GPIO_PIN_RESET);
  HAL_Delay(50);
  HAL_GPIO_WritePin(ETH_RESET_GPIO_Port, ETH_RESET_Pin, GPIO_PIN_SET);
  HAL_Delay(100);
  /* USER CODE END 2 */

 

STM32CubeIDE

Version: 1.19.0

My configuration:

MPU1.jpg

MPU2.jpg

 

eth.jpg

Flash_ld.jpg

LwIP_GeneralSettings.jpg

LwIP_KeyOptions.jpg

FreeRTOS_Task.jpg

PS C:\Users> ping -S 192.168.2.5 192.168.2.10

Pinging 192.168.2.10 from 192.168.2.5 with 32 bytes of data:
Reply from 192.168.2.5: Destination host unreachable.
Reply from 192.168.2.5: Destination host unreachable.
Reply from 192.168.2.5: Destination host unreachable.
Reply from 192.168.2.5: Destination host unreachable.

Ping statistics for 192.168.2.10:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
PS C:\Users>
0 REPLIES 0