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 support@ccsinfo.com

Help - compiler "access violations"

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



Joined: 15 Jun 2006
Posts: 8

View user's profile Send private message

Help - compiler "access violations"
PostPosted: Thu Jun 15, 2006 12:17 pm     Reply with quote

Last week I got a USB demo kit in. We are developing a USB-based application for a truck tracking system. I tried to compile the code on my current version of the compiler; no luck. (Was using 3.243.) I got "Internal Error - Contact CCS LABEL SCR=5327"

I called CCS and got no reply. No suprise there. So I thought upgrading might be a good idea. I upgraded to 3.249 via the website. I am now getting "Access violation at address 0000000. Read of address 0000000" errors, and now nothing will compile at all, even old projects that have never given me trouble before.

Our project is now dead in the water. Tried calling CCS again; no one available. Emailed their tech support, and have heard nothing three days later. Anyone have any ideas? We're getting desperate.
_________________
--bill von
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jun 15, 2006 12:27 pm     Reply with quote

1. Post the filename of the main source file.
2. Post all the #include files that are listed in that main file.
3. Post the PIC that you're using.
4. Post the IDE that you're using. (CCS PCWH or Microchip MPLAB)
5. Post your O/S.
billvon



Joined: 15 Jun 2006
Posts: 8

View user's profile Send private message

PostPosted: Thu Jun 15, 2006 12:52 pm     Reply with quote

Filename: ex_usb_kbmouse2.c (from the CCS USB demo disk)

Include files:
#include "headerfiles\18F4550.h" (from 3.249 compiler)
#include "headerfiles\pic18_usb.h"
#include "headerfiles\usb_desc_kbmouse2.h"
#include "headerfiles\usb.c"

PIC is the one on the CCS demo board (PIC18F4550)

Using IDE v7.20

OS is WinXP pro
_________________
--bill von
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jun 15, 2006 1:24 pm     Reply with quote

It worked for me. Here is what I did:

Using MPLAB vs. 7.20, I used the MPLAB Project Wizard to create a
project called Ex_usb_kbmouse2 in the c:\Program Files\Picc\Examples
directory. The project window in MPLAB looks like this:

Code:

C:\Program Files\Picc\Examples\Ex_usb_kbmouse2.mcp
- Source Files
   --- Ex_usb_kbmouse2.c
- Header Files
  --- 18F4550.h
  --- pic18_usb.h
  --- usb.h
  --- usb_desc_kbmouse2.h
- Other Files


I compiled it with PCH vs. 3.249. I'm using Win98se.

Try doing it exactly as I did above. Don't use the source files from
the CCS kit's CD-ROM. Use the source files that were installed in
the Examples and Drivers directories when you installed PCH vs. 3.249.
Those are the files that I'm using above (since I don't have the CCS
USB kit). The problem may go away if you use the latest files.
Make sure your Project Window in MPLAB looks exactly like the one
shown above.
billvon



Joined: 15 Jun 2006
Posts: 8

View user's profile Send private message

PostPosted: Thu Jun 15, 2006 2:02 pm     Reply with quote

PCM programmer wrote:


I compiled it with PCH vs. 3.249. I'm using Win98se.

Try doing it exactly as I did above.


Thanks for the recommendation, but 3.249 doesn't work on my machine. I get "Access violation at address 0000000. Read of address 0000000" whenever I try. So I had to regress to 3.243.
_________________
--bill von
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jun 15, 2006 2:29 pm     Reply with quote

I installed PCH vs. 3.243 and I do get the following error when I compile.
Quote:
Internal Error - Contact CCS LABEL SCR=5327

I even tried using the Driver and Examples files from vs. 3.249 and
it still gave the same error. So the problem is in that version of the
compiler.

If you do a search of the board's archives for Access Violation,
you will see several threads on the topic.

Here's one where the OP implies that getting new registration files
will fix the problem, but unfortunately he never actually comes
back on the thread and confirms that it was solved.
http://www.ccsinfo.com/forum/viewtopic.php?t=26155

Other people suggest reinstalling the compiler, but I guess you've
already tried that. CCS support is usually very quick about
responding to a request for new registration files, so you might
try that and hope that it works.
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