Text Area for logging console cause fill of heap

Description

I need to display some logging text using text area. but when heap is filled program hangs.
I’ve no much resources on my MCU

What MCU/Processor/Board and compiler are you using?

STM32F103RE / Keil

What do you want to achieve?

I’d like to free memory, FIFO mechanism, before heap is filled.

What have you tried so far?

I’m digging in lv_ta.c but no ideas

thanks.

The text area will display the contents of whatever buffer you pass to it. I suggest that you make your buffer a fixed size and shift the newer contents to the beginning when you run out of space to make more room. The exact mechanism you use to do that is not LittlevGL-specific.

You could reference the example “lv_examples/lv_apps/terminal”.