dynamic memory usage
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2009-01-21 11:33 PM
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-05-17 2:32 AM
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.