2009-01-21 11:33 PM
2011-05-17 02:32 AM
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.