Problem of TouchGFX and LWIP working together.
Hi everyone,
I am trying to use LWIP with TouchGFX together. But it's not working well. First of all need to say; I have a massive TouchGFX code. And I want to add LWIP in this project. When I try this first, I got a linker error about RAM usage. I use STM32f746BET microprocessor and its has a 320 kb RAM. On the other hand I also has an external RAM about 16 megabytes. I thinked project will use external RAM when internal RAM is full. But that's not working that way. When I notice that, I did some research. As I understand, LWIP using to freeRTOS heap. So I thinked, if I grew up FreeRTOS heap this maybe solve my problem. But I didn't have memory in to my internal RAM. So I decide to use some external RAM for FreeRTOS heap. I thought to use FreeRTOS's heap_5 for do this. I created 20 kb heap in internal RAM and 100kb heap in external RAM. When I did this linker error gone. TouchGFX and LWIP ran together but system couldn't get an IP. :(
When I can't solve problem that way, I changed working plan. I created a working LWIP project and start add other peripheral thats need for TouchGFX. Ist gone well until add real TouchGFX code. This is a dead end too but I learned something when do this. Some interrupts break LWIP connections. On the other hand when activate 'cache' this is break LWIP too.
I have been working on this problem for about 1 week. And I couldn't go too far. I tryed to explain what I do and what I get. If have any advice I would like to hear it.
thanks in advance. stay healthy.