2024-11-22 06:14 AM - last edited on 2024-11-22 06:20 AM by Andrew Neil
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.
2024-11-22 06:18 AM - edited 2024-11-22 06:20 AM
Hello,
Need to start with step by step: try first the LWIP alone and validate the functionality.
Then create another project where you start from TouchGFX designer and add LWIP where you put the same config you validated before.
It's tricky to start with two middlewares relatively complex.
2024-11-25 06:00 AM
Hello @AK16 ,
It looks like a LWIP issue more than a TouchGFX issue.
Looking at your call stack, you got an assert from the rand function, can you check it, what could have caused the assert?
Can you check the address?
Regards,