I’m currently facing a problem with my STM32F7. I cannot ping to this target.
I’ve confirmed that the PHY link status is high and do see this function “vDHCPProcess( pdFALSE );” getting called from prvIPTask.
But I’m not sure why can’t I see any ping or arp request working.
You code is using lwIP, not FreeRTOS+TCP. Where did you get the project from? Where did you get the STM32F7 driver from? Would the lwIP support mailing list be a better place to start?
lwip example works fine. But I’m trying to work on FreeRTOS+TCP. I used the LWIP existing project to make sure driver provided works fine or not.
Now I wanted to make a FreeRTOS+TCP working on STM32F7 or STM32H7. Sorry for the confusion here. I should have removed lwip related code. It’s removed project from Project subgroups.
It seems like the code ends up in one of the task:prvConnectionListeningTask
and finally asserted:
/* Attempt to open the socket. */
xListeningSocket = FreeRTOS_socket( FREERTOS_AF_INET, FREERTOS_SOCK_STREAM, FREERTOS_IPPROTO_TCP ); configASSERT( xListeningSocket != FREERTOS_INVALID_SOCKET ); (This is where execution stays and disabled the interrupts which I believe may causing all tasks disabled)
I found from the FreeRTOS website, it says that return value is Invalid.
If there is insufficient FreeRTOS heap memory available for the socket to be created then FREERTOS_INVALID_SOCKET is returned.
I’m going to increase the Static HEAP Size in FreeRTOSConfig.h file and see how it goes.