Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Champs,
BIOS user guide chapter D.2.1 discusses the possibility of removing malloc Heap to save RAM. Customer is implementing this option but it is not at all clear what function calls must be avoided when using this option. In other words there is no explicit list of SYSBIOS APIs that make use of malloc heap and may fail when the heap is absent. In looking through SYBIOS documentation I found the BIOS_runtimeCreatesEnabled flag.
It looks like one possible way to safely remove malloc heap is to turn the flag off thus ensuring that all potential malloc calls would take place during initialization and once fixed (i.e. explicit and hidden allocation are done as required) it is virtually guaranteed that no spurious API call attempts malloc.
Does the above make sense? Can you suggest any other ways to remove malloc heap while ensuring that no API requiring malloc slips to the application's run-time?
thank you
Michael