This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

When I setup memory pool beginning with 0x0000, malloc doesn't work.

When:

init_mempool(0x0000, 1024);
p = malloc(10);
malloc always returns NULL.
But when:
init_mempool(0x2000, 1024);
p = malloc(10);
p gets a valid address.
Why does this happen?
Thanks.

Parents
  • As it says in the Manual,

    "Source code is provided for this routine in the \lib directory. You can modify the source to customize this function for your hardware environment."

    Why don't you just have a look?

Reply
  • As it says in the Manual,

    "Source code is provided for this routine in the \lib directory. You can modify the source to customize this function for your hardware environment."

    Why don't you just have a look?

Children