cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGfx and LWIP Implemention on STM32H750DK

PushparajAdka
Associate II

Hey Team,

I want to make LWIP and TouchGfx to work together for our next product. I have taken reference from here:

https://community.st.com/t5/stm32-mcus/how-to-create-a-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308

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)

17 REPLIES 17

Hey @Saket_Om @MOBEJ ,

    Please let me know your thoughts on this. Thank you.

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?

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Saket_Om

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. 

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.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Saket_Om

@Saket_Om  I am not aware of how to show these to you. Could you please provide more details? 

 

Thanks 

Juste pause the debugger right after the execution of tcp_init.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Saket_Om

PushparajAdka_0-1754923106707.png

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.

Hello @PushparajAdka 

Did you enable the D2SRAM1 clock with the instruction below?

__HAL_RCC_D2SRAM1_CLK_ENABLE();

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Saket_Om