renesas / fsp

Flexible Software Package (FSP) for Renesas RA MCU Family
https://renesas.github.io/fsp/
Other
182 stars 82 forks source link

rm_freertos_plus_tcp: FreeRTOS_IsNetworkUp returns true before DHCP finishes #337

Open SeanMeng0509 opened 6 months ago

SeanMeng0509 commented 6 months ago

Issue

FreeRTOS_IsNetworkUp will return true on Phy link up event. When DHCP is enabled, device won't have a valid IP address at that time, which could lead to subsequent socket operation failure.

Workaround

Instead of calling FreeRTOS_IsNetworkUp, applications shall check whether FreeRTOS_GetIPAddress() returns a valid DHCP address before any socket operation.

SeanMeng0509 commented 1 month ago

This is being internally tracked using RAP-2935.