I am building a project on SAM4S Xplained to test SAM4S CPU. The environment is very simple:
1. install latest Atmel Studio,
2. create an ASF project, no OS of course,
3. write some code and encountered a problem...
I want to use standard C library memory functions, such as malloc realloc, and free functions, but i can not that even I #include stdlib.h.
The only thing i found is ...
Does Ateml Studio support these functions? or i have to include any other header files?
Code: Select all
#include <alloca.h> ... uint32_t * mptr = alloca( 256 );// ... UNUSED( ptr ); //not sure this works well to replace free( ptr )
thanks for your help