Description
What MCU/Processor/Board and compiler are you using?
STM32f407
What LVGL version are you using?
7.7
What do you want to achieve?
In my LVGL app, use “malloc(10)” will lead to the " No space in execution regions with …"error, But it’s OK for “lv_mem_alloc(10)” .
What have you tried so far?
Code to reproduce
Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.
The code block(s) should be formatted like:
/*You code here*/
char *p1,*p2;
p1 = (char *)malloc(10);
p2 = (char *)lv_mem_alloc(10);
p1[0]=p2[0]='o';
p1[1]=p2[1]='k';
printf("p1:%s p2:%s",p1,p2);
the results are:
p1: ok p2: \0xa0\0x82
Screenshot and/or video
If possible, add screenshots and/or videos about the current state.