2025-08-05 9:38 AM
Hey Team,
I want to make LWIP and TouchGfx to work together for our next product. I have taken reference from here:
1. Touchgfx is working as expected
2. I am not able to ping using etherenet. I am not sure the issue here.
Please let me know what needs to be done here.
Thanks.
(Reposting this question as my previous post closed by mistake)
2025-08-10 9:36 PM
2025-08-11 1:41 AM
Hello @PushparajAdka
Thank you for your message. When you say "tcp_init does not get executed," do you mean that the program gets stuck (hangs) at a certain instruction? If so, could you please specify at which instruction or function the code execution stops?
2025-08-11 1:49 AM
Hey @Saket_Om ,
I am not sure about that. At this moment I know that it does not come out tcp init() function. Is the configuration looks good to you? But my other task of touchgfx works even if this task stuck here.
2025-08-11 2:07 AM
Hello @PushparajAdka
Your configuration is good. However, it is important to know at which point the program get stack.
It may hang in certain ISR when start executing tcp_init.
2025-08-11 2:25 AM
2025-08-11 3:01 AM
Juste pause the debugger right after the execution of tcp_init.
2025-08-11 7:42 AM
So I figured out that the code get's stuck here.
void tcp_init(void)
{
#ifdef LWIP_RAND
tcp_port = TCP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND());
#endif /* LWIP_RAND */
}
It does not come out of this function and when i pause debugging it goes and hangs as I showed in above picture.
Please let me know if you need anymore details.
2025-08-15 2:26 AM
Hello @PushparajAdka
Did you enable the D2SRAM1 clock with the instruction below?
__HAL_RCC_D2SRAM1_CLK_ENABLE();