cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic memory usage

egemen_gl
Associate
Posted on January 22, 2009 at 08:33

dynamic memory usage

1 REPLY 1
egemen_gl
Associate
Posted on May 17, 2011 at 11:32

Hi,

I'm trying to use dynamic memory allocation on str912FAW44 but the debugger(using Keil uVision3 IDE and Keil Ulink2 debugger) gives me errors at run time:

- ''Non-Aligned Access: Thumb Instruction at 0000C072H, Memory Access at 0000C230H''

- ''*** error 65: access violation at 0x00080000 : no 'execute/read' permission''

here are the code statements :

''UBYTE *ptr;''

''ptr=(UBYTE*)calloc(10,sizeof(UBYTE));''

I dont have any idea about the problem. Why this code is trying to access to a non-permitted area ? Could anyone please help me ?

Thank you.