I was wondering if someone from SwissMicros could share what memory DMCP needs, and when it allocates it.
I've observed variations of at least 8K in the value returned by sys_free_mem(), but it goes up and down, and I don't see why. Typically, leaving 8K free initially, I see sys_free_mem drop to about 6K (6656 bytes to be precise, which is 6.5K), with ocasional drops down to 4K (4592B to be precise, so 2064 bytes were temporaril allocated), and sometimes, I get 0 and the system hangs.
I am not explicitly allocating memory in my program, except a big chunk at the beginning. So I wonder where these 8K of memory are going. I am not using any DMCP display function anymore, except LCD refresh.
Thanks
Memory used by DMCP
Re: Memory used by DMCP
Maybe that helps:
There is some memory allocation in the linker file stm32_program.ld:
FLASH 704k
RAM 8k
QSPI 2048k
In my file is also a commented allocation with RAM 96k.
I never touched this numbers - for big data areas I use malloc.
Regards
deetee
There is some memory allocation in the linker file stm32_program.ld:
FLASH 704k
RAM 8k
QSPI 2048k
In my file is also a commented allocation with RAM 96k.
I never touched this numbers - for big data areas I use malloc.
Regards
deetee