This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

error 65: access violation : no 'execute/read' permission

hello,

i am using the following code to generate a delay of 200ms.

while(tfcount <= 16666)
{
	if (TF1 == 1)
	{
		tfcount++;
		TF1 = 0;
	}
}
im using the Timer 1 as a baud rate generator and it overflows every 12 us. the problem is that when i simulate the code using microvision 3 ,as soon as the while condition becomes false, instaed of continuing down the code, it gives the following error :

*** error 65: access violation at C:0x000B : no 'execute/read' permission

can u please help and tell me how to avoid this.

thanks
saad

Parents
  • *** error 65: access violation at C:0x000B : no 'execute/read' permission

    Sorry...

    if it is 0X000B, then it is interrupt vector of timer 0.
    So check for ET0 = 1; in your code.And if you are making TR0 = 1; instead of TR1 = 1;
    Better is disable EA (EA = 0;) if you are not using interrupts.
    EX0 - 0X0003;
    ET0 = 0X000B;
    EX1 = 0X0013;
    ET1 = 0X001B;
    ES = 0X0023;

Reply
  • *** error 65: access violation at C:0x000B : no 'execute/read' permission

    Sorry...

    if it is 0X000B, then it is interrupt vector of timer 0.
    So check for ET0 = 1; in your code.And if you are making TR0 = 1; instead of TR1 = 1;
    Better is disable EA (EA = 0;) if you are not using interrupts.
    EX0 - 0X0003;
    ET0 = 0X000B;
    EX1 = 0X0013;
    ET1 = 0X001B;
    ES = 0X0023;

Children