UCOS-II and Dynamic Memory Allocation.

Jan 09, 2009 1 Replies

Hello, I have some quires regarding Dynamic Memory Allocation in UCOS-II. 1. Is there any interface/call in UCOS-II which is equivalent to standard malloc and free. 2. What is OSMemGet in UCOS-II.



Thanks, Gopu.S


uCOS does not support dynamic memory allocation. It has a block oriented memory feature which includes the OSMemGet function you mention. Before using OSMemGet you must configure and create the memory blocks. See the information in the uCOS-II-RefMan.pdf delivered with the code from Micrium, available on the web site. For more detailed information get a copy of Jean Labrosse's book MicroC/OS-II The Real Time Kernel. About $70 from Amazon, etc.

Scott Validated Software Lafayette, CO

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required