Hi all, again a question related to the execution of external / elf programs:
When I use malloc within the running elf program, allocating more than 1K bytes, malloc seems to work (doesn't return NULL), but when I use that memory (memset) I get a assertion/Kernel panic.. Funnily this does not happen if I use the same program as built-in program (the one which is already in ROM flash).. Here I can allocate and use 8K or more without any problem.. So, it seems the binary loader itself consumes a lot of memory, decreasing the available heap.. I was not able to solve that problem even increasing all available and possibly related stacksizes in .config After loading the elf file, even running dmesg can cause that assertion.. (using RAMLOG with 8K buffer and memory debug output) . free shows about 130K of free RAM.. in the memory debug output I can see that the periodical allocation at about 10K of distance of the next stack-end (means stackbase minus stacksize, knowing stack decreases), which is my app.. so, I thought allocate 2K on the heap should not be a problem. Any ideas about any configuration that's important here? Many thanks & BR, -- Florian WehmeyerTFW Tech-Solutions