Keil™, An ARM® Company

Discussion Forum

Error 65 access violation

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Jaime Martinez
Posted
11-May-2008 19:14
Toolset
C51
New! Error 65 access violation

Hi im having a problem with the interrupts im making a mastermind game that uses a matritial board 4x16 and im using a changin bit to check if any button has been pressed, and everything goes right until the second interrupt ooccurs, the changin bit stops, im using timer 0 to generate this ive checked the interrupt enables and everything is all right the error is:

error 65: access violtion at C:0x3A29 : no execute/read permission ill appreciate any help! if you cna reply to my email better
thanks
jimmy098@gmail.com

Read-Only
Author
Jaime Martinez
Posted
11-May-2008 19:15
Toolset
C51
New! RE: Error 65 access violation

sorry is 4x4 board!

Read-Only
Author
Per Westermark
Posted
11-May-2008 20:38
Toolset
C51
New! RE: Error 65 access violation

4x16 or 4x4 shouldn't make much difference for the problem - as long as your code isn't writing past the end of the array.

Forum requests are indented to be discussed in the forum, not on private email. Private help = hired consultants = money transfer.

Show code, but make sure that you read the posting instructions.

Have you made sure that you don't get a stack overflow?

Read-Only
Author
Hans-Bernhard Broeker
Posted
12-May-2008 04:35
Toolset
C51
New! RE: Error 65 access violation

Have you made sure that you don't get a stack overflow?

Actually he's pretty much proved that he is getting a stack overflow.

The quoted error message is about an access to code memory outside the area covered by the program. About the most probable way of ending up with that error is to smash the stack, corrupting a return address.

Next Thread | Thread List | Previous Thread Start a Thread | Settings