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 at C:0x000B : no 'execute/read' permission

error 65: access violation at C:0x000B : no 'execute/read' permission
---------------------------------------------------
IÂ'm used the toolskit of silicon labs. And after (error 65: access violation at C:0x000B : no 'execute/read' permission) I canÂ't use the kit. Please if can you give me one hand. thanks.
---------------------------------------------------
Build target 'Target 1'
compiling Luces 2.c...
linking...
Program Size: data=13.0 xdata=0 code=240
"Luces 2" - 0 Error(s), 0 Warning(s).

---------------------------------------------------
And my program is:

#include<stdio.h>
#include<c8051f020.h>

#define reload 100 //cantidad de interrupciones en medio T (500 ms)

#define RECARGA ( 0xFFFF - 1000 )

void reset_timer1 (void);
void puerto_1(void);
void control (void);
void puertos (void);

unsigned int tick = reload;
unsigned char estado = 0;

void main (void){

reset_timer1(); puertos(); control ();

while(1);

}

void Control ( void ){ unsigned char in; in = P5 & 0x01;

switch ( estado ) { case 0: P5 = 0x10; break;

case 1: P5 = 0x30; break;

case 2: P5 = 0x70; break;

case 3: P5 = 0xf0; break; } }
void reset_timer1 (void){ WDTCN = 0xde; // watchdog timer WDTCN = 0xad;

TL0 = RECARGA; TH0 = RECARGA >> 8 ;

tick = reload;

TMOD=0X01; TR0=1; EA=1; ET0=1; }
void puertos(void){ //XBR0 = 0x04; // UART0 00000100 //XBR1 = 0x00; // Todo dehabilitado 00000000 XBR2 = 0x44; // crossbar y UART1 01000100 // pull-up

P74OUT = 0x08; // Configuro el puerto 5 como push-pull el // nibble alto y open-drain el nibble bajo P1MDOUT = 0x5f; P2MDOUT = 0xff; }

Parents
  • Configuration
    1.- click on Target 1
    2.- click on option for Target
    3.- Debug
    4.- Select Use Silicon Labs C8051 Fxxx Driver (I have the driver of the kit Toolstick - Silicon Labs)
    5.- Setting (use USB)
    6.- Ok

    7.- Build Target

    Build target 'Target 1'
    assembling STARTUP.A51...
    compiling Luces 2.c...
    linking...
    Program Size: data=13.0 xdata=0 code=240
    "Luces 2" - 0 Error(s), 0 Warning(s).

    Go to Debug.
    7.- Sic8051F
    Communication could not be establiched with the specified with the specified adapter. Please confirm the currendt adapter selection and cable connection.

    * The connection of kit is OK
    * The driver is installed OK
    * IÂ'm used the kit after in other programs and run OK.
    * I donÂ't understand why tell my this error.

    Then: Error: Target DLL has been cancelled. Debugger aborted.

    * I have a dirver of the Kit of Silicon Labs (toolstick).
    -----------------------------------------------------
    * After to used this code y canÂ't use any program.

    #include<stdio.h>
    #include<c8051f020.h>

    #define reload 100 //cantidad de interrupciones en medio T (500 ms)

    #define RECARGA ( 0xFFFF - 1000 )

    void reset_timer1 (void);
    void puerto_1(void);
    void control (void);
    void puertos (void);

    unsigned int tick = reload;
    unsigned char estado = 0;

    void main (void){

    reset_timer1(); puertos(); control (); while(1);

    }

    void Control ( void ){ unsigned char in; in = P5 & 0x01;

    switch ( estado ) { case 0: P5 = 0x10; break;

    case 1: P5 = 0x30; break;

    case 2: P5 = 0x70; break;

    case 3: P5 = 0xf0; break; } }

    void reset_timer1 (void){ WDTCN = 0xde; // watchdog timer WDTCN = 0xad;

    TL0 = RECARGA; TH0 = RECARGA >> 8 ;

    tick = reload;

    TMOD=0X01; TR0=1; EA=1; ET0=1; }

    void puertos(void){ //XBR0 = 0x04; //XBR1 = 0x00; XBR2 = 0x44;

    P74OUT = 0x08; P1MDOUT = 0x5f; P2MDOUT = 0xff; }
    -----------------------------------------------------
    ------------------------------------------------------
    * Now i use this program ( After I used this code on the kit, and at this moment i canÂ't and tell me: error 65: access violation at C:0x000B : no 'execute/read' permission
    -----------------------------------------------------
    #include<stdio.h>
    #include<c8051f020.h>

    #define reload 80 //cantidad de interrupciones en medio T (500 ms)

    #define RECARGA ( 0xFFFF - 1000 )

    void reset_timer1 (void);
    void puerto_1(void);

    unsigned int tick = reload;
    unsigned char data cont;

    void main (void) { reset_timer1();

    P74OUT = 0x08;

    while(1); }

    void reset_timer1 (void) {
    TL0 = RECARGA;
    TH0 = RECARGA >> 8 ;

    tick = reload;

    TMOD=0X01; TR0=1; EA=1; ET0=1;

    WDTCN = 0xde; WDTCN = 0xad;

    P1MDOUT = 0xff;

    }

    void puerto_1(void) interrupt 1
    { TR0= 0; //stop timer 1 para hacer cuenta

    TL0 = RECARGA;
    TH0 = RECARGA >> 8 ;

    TR0= 1; //run tick--; if ( !tick ) //PASO MEDIO PERIODO {

    tick = reload;

    P5 = P5 ^ 0xff;

    cont++;

    if ( cont==2) { P5 = P5 ^ 0x00;

    cont=0; }

    }
    }

    /*
    Build target 'Target 1'
    assembling STARTUP.A51...
    compiling Timer.c...
    linking...
    Program Size: data=12.0 xdata=0 code=244
    "Timer_29.09" - 0 Error(s), 0 Warning(s).
    */

Reply
  • Configuration
    1.- click on Target 1
    2.- click on option for Target
    3.- Debug
    4.- Select Use Silicon Labs C8051 Fxxx Driver (I have the driver of the kit Toolstick - Silicon Labs)
    5.- Setting (use USB)
    6.- Ok

    7.- Build Target

    Build target 'Target 1'
    assembling STARTUP.A51...
    compiling Luces 2.c...
    linking...
    Program Size: data=13.0 xdata=0 code=240
    "Luces 2" - 0 Error(s), 0 Warning(s).

    Go to Debug.
    7.- Sic8051F
    Communication could not be establiched with the specified with the specified adapter. Please confirm the currendt adapter selection and cable connection.

    * The connection of kit is OK
    * The driver is installed OK
    * IÂ'm used the kit after in other programs and run OK.
    * I donÂ't understand why tell my this error.

    Then: Error: Target DLL has been cancelled. Debugger aborted.

    * I have a dirver of the Kit of Silicon Labs (toolstick).
    -----------------------------------------------------
    * After to used this code y canÂ't use any program.

    #include<stdio.h>
    #include<c8051f020.h>

    #define reload 100 //cantidad de interrupciones en medio T (500 ms)

    #define RECARGA ( 0xFFFF - 1000 )

    void reset_timer1 (void);
    void puerto_1(void);
    void control (void);
    void puertos (void);

    unsigned int tick = reload;
    unsigned char estado = 0;

    void main (void){

    reset_timer1(); puertos(); control (); while(1);

    }

    void Control ( void ){ unsigned char in; in = P5 & 0x01;

    switch ( estado ) { case 0: P5 = 0x10; break;

    case 1: P5 = 0x30; break;

    case 2: P5 = 0x70; break;

    case 3: P5 = 0xf0; break; } }

    void reset_timer1 (void){ WDTCN = 0xde; // watchdog timer WDTCN = 0xad;

    TL0 = RECARGA; TH0 = RECARGA >> 8 ;

    tick = reload;

    TMOD=0X01; TR0=1; EA=1; ET0=1; }

    void puertos(void){ //XBR0 = 0x04; //XBR1 = 0x00; XBR2 = 0x44;

    P74OUT = 0x08; P1MDOUT = 0x5f; P2MDOUT = 0xff; }
    -----------------------------------------------------
    ------------------------------------------------------
    * Now i use this program ( After I used this code on the kit, and at this moment i canÂ't and tell me: error 65: access violation at C:0x000B : no 'execute/read' permission
    -----------------------------------------------------
    #include<stdio.h>
    #include<c8051f020.h>

    #define reload 80 //cantidad de interrupciones en medio T (500 ms)

    #define RECARGA ( 0xFFFF - 1000 )

    void reset_timer1 (void);
    void puerto_1(void);

    unsigned int tick = reload;
    unsigned char data cont;

    void main (void) { reset_timer1();

    P74OUT = 0x08;

    while(1); }

    void reset_timer1 (void) {
    TL0 = RECARGA;
    TH0 = RECARGA >> 8 ;

    tick = reload;

    TMOD=0X01; TR0=1; EA=1; ET0=1;

    WDTCN = 0xde; WDTCN = 0xad;

    P1MDOUT = 0xff;

    }

    void puerto_1(void) interrupt 1
    { TR0= 0; //stop timer 1 para hacer cuenta

    TL0 = RECARGA;
    TH0 = RECARGA >> 8 ;

    TR0= 1; //run tick--; if ( !tick ) //PASO MEDIO PERIODO {

    tick = reload;

    P5 = P5 ^ 0xff;

    cont++;

    if ( cont==2) { P5 = P5 ^ 0x00;

    cont=0; }

    }
    }

    /*
    Build target 'Target 1'
    assembling STARTUP.A51...
    compiling Timer.c...
    linking...
    Program Size: data=12.0 xdata=0 code=244
    "Timer_29.09" - 0 Error(s), 0 Warning(s).
    */

Children
No data