Hi Greg,
you didn't mention what exact warning and info message, so I can't say if your problem is because of heap allocation.
anyway, The heap is defined in the library file alloc. c, and the size of the heap is specified in libdefs. h by the LIBDEF_HEAPSIZE define. The default size is 2000, but you can modify it as needed.
how to:
- open the lib project in the folder: \lib\hc12c\hc12_lib.mcp
- open the heap.c file and the libdefs.h,
- in the libdefs.h file change the value of LIBDEF_HEAPSIZE (line 193).
- Rebuild the libraries
Now with the lib you can use the malloc function for your application.
Refer to the heap.c file. All heap is allocated in the HEAP_SEGMENT with a pragma.
So if you want you can place exactly where you want the heap.
Else it will be placed in the DEFAUFT_RAM.
Be careful it will work only after you rebuild the lib.
hope this helps!
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------