I managed to get one step closer to the solution.
I found another similar issue where the proposed solution was to make sure the lwip heap is placed in non_cachable ram. Unfortunately, the detailed solution using S32DS was not possible to see due to bad resolution in attached image.
Instead, I did this temporarily by simply appending in mem.c:
LWIP_DECLARE_MEMORY_ALIGNED(ram_heap, MEM_SIZE_ALIGNED + (2U * SIZEOF_STRUCT_MEM))__attribute__((section(".mcal_bss_no_cacheable")));
I also made sure that the Gmac_Ip_Cfg.o elements are placed in non_cachable RAM by building without -fdata-sections
Current result is that pinging it (or connecting to port 80 with a browser, same result) works about 60% of the time.
Thus, I get the feeling that there is some more data that needs to put in non_cachable RAM.
Any suggestions?
Regards