Skip to main content
youssef.amimi
Associate II
June 27, 2019
Solved

Net thread is not worked properly when the graphic thread is running (STM32F769)

  • June 27, 2019
  • 2 replies
  • 1834 views

I running an application on STM32F769 with EWARM that connect to Servers from the net and receiving data (with Net Thread) . Next i added all necessery files and a graphic Thread in main file to display the data on th lcd when i pressed on a button . When i run the application the lcd works and the button appear but the Net Thread blocked on the instruction ( MX_LWIP_Init();)

PS: when i comment the instruction GRAPHICS_Init(); the board connect to the Net

This topic has been closed for replies.
Best answer by youssef.amimi

Hi @Martin KJELDSEN​ 

The problem is that I choose TIM1 as a timebase source, this timer is used in STM32F7Instrumentation::init. I change the timebase from TIM1 to TIM6 and it work.

Thank you @Martin KJELDSEN​ for your assistant.

2 replies

Martin KJELDSEN
Principal III
June 28, 2019

Hi @youssef.amimi​,

I'll try to think about what's wrong here. I'm not that familar with lwip + TouchGFX, but we have a few projects here that we did a while back. The LWIP stack in CubeFW does have it's own issues, so iI'll have to get back to you, is that allright?

Best regards,

Martin

youssef.amimi
Associate II
June 28, 2019

Hi @Martin KJELDSEN​ ,

Ok, thanks for your interest, I will wait for your reply and i will report any progress i have.

Best regards,

Youssef

youssef.amimi
youssef.amimiAuthorBest answer
Associate II
July 1, 2019

Hi @Martin KJELDSEN​ 

The problem is that I choose TIM1 as a timebase source, this timer is used in STM32F7Instrumentation::init. I change the timebase from TIM1 to TIM6 and it work.

Thank you @Martin KJELDSEN​ for your assistant.

Martin KJELDSEN
Principal III
July 2, 2019

Ah, that's good news. Good job finding that.

/Martin

youssef.amimi
Associate II
July 2, 2019

Thank you @Martin KJELDSEN​ 

Youssef