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; }
I puts "return;" in my fuction, but the mistake is kept.
Thenks you.