Hi,
I am using SYSBIOS 6.32.5.54 with CCS 5.1. In my application, I needed to use dynamic memory so i use malloc function.
I have choose
SYSBIOS Library type = Custom and
used only modules which my application need.
Not included any Memory modules in my .cfg file.
Default heap size = 0
and i compiled the code and debuged it and found that it was returning me null.
now when i change the Default heap size = 1024
then i get following errors
Unresolved symbol ti_sysbios_heaps_HeapMem_alloc__E in file C:\Users\ AMIT\workspace_5_1\ my_project\ Debug\configPkg\package\cfg\base_board_p430X.o430X
Unresolved symbol ti_sysbios_heaps_HeapMem_free__E in file C:\Users\ AMIT\workspace_5_1\ my_project\ Debug\configPkg\package\cfg\base_board_p430X.o430X
Unresolved symbol ti_sysbios_heaps_HeapMem_getStats__E in file C:\Users\ AMIT\workspace_5_1\ my_project\ Debug\configPkg\package\cfg\base_board_p430X.o430X
Unresolved symbol ti_sysbios_heaps_HeapMem_init__I in file C:\Users\ AMIT\workspace_5_1\ my_project\
Debug\ configPkg\package\cfg\base_board_p430X.o430X
Unresolved symbol ti_sysbios_heaps_HeapMem_isBlocking__E in file C:\Users\ AMIT\workspace_5_1\ my_project\ Debug\configPkg\package\cfg\base_board_p430X.o430X
If i Change Default heap size = 1024 with SYSBIOS Library type = instrumented or non-instrumented then no errors.
I have included following header files
xdc/runtime/IHeap.h
xdc/runtime/System.h
xdc/runtime/Memory.h
ti/sysbios/heaps/HeapMem.h
How to remove this errors with custom library types?
What is the difference between Instrumented, Non instrumented and custom Library types. I have read user guide but cant understand exactly.
and what is the standard way to use Dynamic memory allocation with sysbios.
Please reply me ASAP.
Thanks,
Amit Bhorania