CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Access violation :(

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
[mAnNaRo]



Joined: 02 Dec 2005
Posts: 28
Location: Italy, Milan

View user's profile Send private message Send e-mail

Access violation :(
PostPosted: Mon Feb 27, 2006 11:11 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Feb 27, 2006 11:53 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Feb 27, 2006 11:57 am     Reply with quote

Quote:
I've tried 3.245 with an empty project with a single instruction and I get access violation error.

Post the program.
Guest








PostPosted: Mon Feb 27, 2006 12:37 pm     Reply with quote

your compiler license files are old.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Feb 27, 2006 12:59 pm     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Mon Feb 27, 2006 3:14 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Feb 27, 2006 3:16 pm     Reply with quote

Post the program.
[mAnNaRo]



Joined: 02 Dec 2005
Posts: 28
Location: Italy, Milan

View user's profile Send private message Send e-mail

PostPosted: Mon Feb 27, 2006 3:36 pm     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Mon Feb 27, 2006 3:45 pm     Reply with quote

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: ???,???" Confused
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Feb 27, 2006 3:51 pm     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Mon Feb 27, 2006 3:57 pm     Reply with quote

CCS support replied me... they will send me a new registration file. I suppose that the problem was my license file Smile

Thanks at all
Alex
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group