Skip to main content
egemen_gl
Associate
January 22, 2009
Question

dynamic memory usage

  • January 22, 2009
  • 1 reply
  • 515 views
Posted on January 22, 2009 at 08:33

dynamic memory usage

This topic has been closed for replies.

1 reply

egemen_gl
egemen_glAuthor
Associate
May 17, 2011
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.