View previous topic :: View next topic |
Author |
Message |
[mAnNaRo]
Joined: 02 Dec 2005 Posts: 28 Location: Italy, Milan
|
Access violation :( |
Posted: Mon Feb 27, 2006 11:11 am |
|
|
I've just installed PCM version 3.245 and I get the message "Access violation at address 00000000. Read of address 00000000".
I've tried with 3.242 and it work fine.
I've tried 3.245 with an empty project with a single istruction and I get access violation error.
I'tried to uninstall PCM (and the PICC directory) reboot the system and reinstall 3.245 but always same error.
It seems that the "real compile" process isn't still started when I get the error...
Any idea?
Alex |
|
|
pfournier
Joined: 30 Sep 2003 Posts: 89
|
|
Posted: Mon Feb 27, 2006 11:53 am |
|
|
Email a copy of your project and a desscription of what is happening to tech support. That did it for me. I JUST installed 3.245 so I'll keep an eye out. It is the first one since 3.242 that worked for me.
BTW: On 3.242 I got an access violation on an unmatched brace! _________________ -Pete |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Feb 27, 2006 11:57 am |
|
|
Quote: | I've tried 3.245 with an empty project with a single instruction and I get access violation error. |
Post the program. |
|
|
Guest
|
|
Posted: Mon Feb 27, 2006 12:37 pm |
|
|
your compiler license files are old. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Feb 27, 2006 12:59 pm |
|
|
Quote: | your compiler license files are old. |
To test your theory, I copied the previous version of my PCM .crg
file over the current version. Then I tried to compile a file.
I didn't get an Access Violation. I got a dialog that says:
"File version mis-match - Reinstall compiler files"
So I don't think that's his problem. |
|
|
[mAnNaRo]
Joined: 02 Dec 2005 Posts: 28 Location: Italy, Milan
|
|
Posted: Mon Feb 27, 2006 3:14 pm |
|
|
Anonymous wrote: | your compiler license files are old. |
My compiler license expries on 3 March.
I've tried the compiler (3.245) on win2000 and XP and I get the same error.
My license file isn't exipred but probably it has some errors...
Alex |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Feb 27, 2006 3:16 pm |
|
|
Post the program. |
|
|
[mAnNaRo]
Joined: 02 Dec 2005 Posts: 28 Location: Italy, Milan
|
|
Posted: Mon Feb 27, 2006 3:36 pm |
|
|
Code: |
/*-------------------------------------------------------------------------------------------
ALFA TEST BOARD A01
Author: Alessandro Blason
Date: 05/02/2006
---------------------------------------------------------------------------------------------*/
#include <16F877A.h>
#device ADC=10
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)
/*
#include <16F628A.h>
#fuses INTRC,NOWDT,NOPROTECT,NOLVP
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_B2, rcv=PIN_B1)
*/
//Need for BOOTLOADER
#org 0x1F00, 0x1FFF void loader16F876(void) {} //protect bootloader code for the 8k 16F876/7
//for 4Mhz set 9600baud
//-----------------------------------------------------------------//
//---------------------------- MAIN -------------------------------//
//-----------------------------------------------------------------//
void main() {
int16 value;
// Setup ADC Port
setup_adc_ports(ALL_ANALOG);
setup_adc(ADC_CLOCK_INTERNAL );
#IGNORE_WARNINGS 203
while(TRUE) {
#IGNORE_WARNINGS NONE
set_adc_channel(0);
delay_us(20);
value = read_adc();
printf("Value 0 = %LX\r\n", value);
set_adc_channel(1);
delay_us(20);
value = read_adc();
printf("Value 1 = %LX\r\n", value);
set_adc_channel(6);
delay_us(20);
value = read_adc();
printf("Value 6 = %LX\r\n", value);
}
}
|
|
|
|
[mAnNaRo]
Joined: 02 Dec 2005 Posts: 28 Location: Italy, Milan
|
|
Posted: Mon Feb 27, 2006 3:45 pm |
|
|
A strange thing...
With compiler 3.242 the utility "Compiler Version" return me the right version but with the 3.245 the small window is blank!. Morover the compiler window report on title bar "CCS PCM C Compiler, Version ???" and inside "Registered to: ???,???" |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Feb 27, 2006 3:51 pm |
|
|
I compiled it with PCM vs. 3.245 and MPLAB 7.20, and I didn't have
any problems.
You could do some experiments such as commenting out the #org
statement, and commenting out the #ignore warnings statements.
See if that makes it work. |
|
|
[mAnNaRo]
Joined: 02 Dec 2005 Posts: 28 Location: Italy, Milan
|
|
Posted: Mon Feb 27, 2006 3:57 pm |
|
|
CCS support replied me... they will send me a new registration file. I suppose that the problem was my license file
Thanks at all
Alex |
|
|
|