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

Dynamic memory usage

I'm trying to use dynamic memory on str912fw44. The code compiles well but when it starts to debug, it gives some error :
"*** error 34: undefined identifier
Non-Aligned Access: Thumb Instruction at 0000C072H, Memory Access at 0000C230H
...
*** error 65: access violation at 0x00080000 : no 'execute/read' permission"

The code I tried was :

ubyte *ptr;
int main()
{ ptr=(ubyte*)calloc(10,sizeof(ubyte));
}

Tools : Keil uVision IDE, Keil Ulink2.

Could you please tell me what could be the problem ?
I don't know where to look. How can I know the size of the memory area used as heap ?

0