Hi,
I am having no luck in allocating any memory on a Vinculum-II device. My code so far is very small, simply sets up a couple of test tasks, UART and then outputs strings via the UART.
When I attempted to use calloc to allocate some RAM (structure in question is 9 bytes), it returns a NULL. I have tried with malloc also, same response even for a smaller value of 4. I am linking in the stdlib.a library along with stdio.a ioctl.a errno.a uart.a and kernel.a
I have also tried the call vos_malloc(4), which also returns a NULL.
A call to vos_heap_space gives me results of around 10KB for both free and maximum, so it seems like there is a heap configured and available.
Am I missing some crucial configuration command or option? I assume that I should be able to allocate memory within a task? I have also tried increasing the size of the task's stack (just in case
) and that has had no joy either.
Hope someone can point me in the right direction, thanks.