Problem with setting LWIP from TouchGFX generated project
- November 22, 2024
- 2 replies
- 2363 views
Moved from Feedback Forum
Hi guys,
I am trying to set up LWIP project on my STMH750B-DK. I have generated this project from TouchGFX (to start off i just put a picture as a background and toggle switch with no functionality) and configured following things in .ioc:
a) Clock configuration: PLLCLK option with SYSCLK on 400 MHz
b) Timebase source: TIM6
c) ETH:
- MII mode (PA0 and PA3 pins used for ETH_CRS and ETH_COL since QSPI, which needs does pins for Bank 2, is used by default when generating project with TouchGFX)
- Ethernet global interrupt enabled
d) FREERTOS: - DefaultTask stack (where I call MX_LWIP_Init()) size 1024 words (just to be on a safe side)
- USE_NEWLIB_REENTRANT enabled
e) LWIP:
- Platform settings: Driver_PHY Found solutions to LAN 8742
- DHCP disabled (IP: 192.168.1.50, MASK: 255.255.255.0, GATEWAY: 192.168.1.1)
I have generated the project and ran Debug. I get 3 warnings ('MX_QUADSPI_Init' defined but not used; Project 'STM32H750B-DK' has no explicit encoding set; STM32H750B-DK.elf has a LOAD segment with RWX permissions).
When i click play, the display works fine so the display task works fine I guess, but when i try to ping IP 192.168.1.50 I don't get response. When i click pause I find that the code is stuck in some sort of handler called _exit. I am providing a photo of debugging window.
