我们正在使用的μC/OS-III RTOS 和RX62N的Renesas。
We built a system where we have to dynamicly alloc and free data. We found out the functions malloc() and free() are not working well with the RTOS. However the RTOS has a custom function for this; the Mem_HeapAlloc() function. This function allocates some memory of the RTOS made heap . Problem is that it does not have a free function, probably because everything goes into a heap pool.
在 RTOS 中, 也可以建立一个集合体。 这个集合体的问题在于所有封存区块的大小必须相同。 由于我们正在分配和释放不同的大小, 这对我们来说不是一个好的解决办法 。
We found a document which describes the memory RTOS functions HERE Chapter 4 describes the functions.
有人知道我们怎样才能解决这个问题吗?
我们所准备的一些解决办法
- Make all the blocks sizes the same as the biggest allocation. We have a lot of overhead since the smallest and biggest allocation differ a lot.
- Don t do a free. This is no solution, there will be a memory leak.
希望有人能帮我们 如果有什么不清楚 请问我
提前感谢