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)” .
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=p2='o'; p1=p2='k'; printf("p1:%s p2:%s",p1,p2);
the results are:
p1: ok p2: \0xa0\0x82
If possible, add screenshots and/or videos about the current state.