Go to Post No one wants to have the piece that they spent hours swiss-cheesing break in half... - BillCloyes [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 09-03-2005, 11:37
Justyn Justyn is offline
Registered User
#0759
 
Join Date: Jan 2005
Location: UK
Posts: 5
Justyn is an unknown quantity at this point
MPLAB C18 problem

Hi there,

This isn't related to the robot build but I need some help so if anyone's got some PIC18 series experience and is feeling generous...

I have a particularly annoying problem with a combination of the ICD2 (connected by USB), MPLAB 7.01 and the latest version of C18 running on XP Home. I'm writing a very simple program for the PIC18F2620. In even the simplest C, stepping through the code works ok, but running it almost always results in a reset either immediately or after a few instructions. This "reset" doesn't seem to affect MCLR, just takes the execution back to the first instruction. I'm not sure how the ICD2 is supposed to deal with MCLR, however. I've tried it in both internal and crystal oscillator configurations with no difference.

Can anyone tell me why this is happening? I'm in a huge rush to get a project done and I don't want to be forced to write it in assembler simply because MPLAB won't let me debug it properly with the ICD2. I've never had this problem with earlier versions of MPLAB when using C18. Worse, it doesn't seem to be a simple matter of installing the earlier version of MPLAB again because when uninstalling 7.01 a lot of the new drivers for the ICD2 are left behind.

I also ought to point out that the test code runs fine when just straight programming the device - but I need to be able to set break-points etc.

Hope someone can help. If not, have a nice day and get back to some proper robotics ;-)

Cheers,
Justyn
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MPLAB IDE Problem amateurrobotguy Programming 10 26-02-2005 09:29
Problem with MPLAB d.courtney Programming 5 02-02-2005 21:42
using the MPLAB IDE MPLAB SIM simulator WizardOfAz Programming 1 03-11-2003 01:24


All times are GMT -5. The time now is 02:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi