LWIP: allocation fails in Heap (mem_malloc) for TX
Hello,
I'm on a STM32H743 (nucleo-H743ZI2), and I got LWIP (no OS) to "work", as in it receives ip packets and reads them. The problem is with allocating on the heap. I didn't use the libc_malloc option, the heap pointer is at 0x30044000 and is 1600 bytes long, and I configured the MPU for this area as follows:
MPU_InitStruct.Number = MPU_REGION_NUMBER2;
MPU_InitStruct.BaseAddress = 0x30044000;
MPU_InitStruct.Size = MPU_REGION_SIZE_16KB;
MPU_InitStruct.DisableExec = MPU_INSTRUCTION_ACCESS_ENABLE;
MPU_InitStruct.IsShareable = MPU_ACCESS_NOT_SHAREABLE;
MPU_InitStruct.IsCacheable = MPU_ACCESS_CACHEABLE;
MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE;The problems I encounter are:
mem_malloc: could not allocate 60 bytes
etharp_raw: could not allocate pbuf for ARP request.The ram stats before it shows
MEM HEAP
avail: 1600
used: 0
max: 0
err: 0(And after it, it's the same but with the error counted)
Is my config ok?
