Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 28th February 2007, 10:45 PM   (permalink)
Default Help Getting Inchworm to Debug.

So I finally got my inchworm hooked up to a PIC and at first everything went well. I built the circuit around the PIC and I am able to read/program it perfectly. However, after duplicating the Hello World program from blueroom's PDF, I didn't get any action on the LED. I tried to debug the PIC and now I am getting errors/lockups in the program, but ONLY in debug mode.

Specifically, the MBLAB says: "ICDWarn0015: Program memory has changed since last program operation? Continue with Debug operation?" when I try to step through the program.

Does anyone know why this occurs?

I'm sooo close!

-Eric
ravix is offline  
Old 28th February 2007, 11:07 PM   (permalink)
Default

Are you sure you did not see an error in the OUTPUT window about not being able to enter the debug mode. If so the most common problem in a bad config value or a problem with connecting the osc.

Did you use one of the processors on the INCHWORM hello world poster ? That is to say what PIC are you using ?
3v0 is offline  
Old 1st March 2007, 12:49 AM   (permalink)
Default

I'm sorry I forgot to mention which PIC I am using. I am using the PIC16F88, with the config set to use in the internal oscillator. Although there is no schematic on the poster for my PIC (only the firefly, which uses the same one) I was able to determine how to hookup the PIC from the data sheet and the other diagrams.

I am definitely able to enter the debug mode, the output window looks as follows:
Quote:
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to MPLAB ICD 2
Target Device PIC16F88 found, revision = Rev 0x8
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Do I need to add anything to the circuit to enable debug mode?


edit: AH! I started changing some configuration options, based on the template Microchip provides, and I got the error you specified:

Quote:
MPLAB ICD 2 Ready
ICDWarn0015: Program memory has changed since last program operation? Continue with Debug operation?
Running Target
ICD0083: Debug: Unable to enter debug mode. Please double click this message for more information.
ICD0069: Debug: Unable to run target
MPLAB ICD 2 Ready
Any ideas now?

Last edited by ravix; 1st March 2007 at 01:08 AM.
ravix is offline  
Old 1st March 2007, 01:28 AM   (permalink)
Default

The first error is normally cause by pressing a key while the asm window has focus. This changes the asm file and causes the error. Recompile/assemble to fix it.
The second error has various causes - debug turned off - master clear turned off - reserved location being used (SFR and program space). Have you got a nop at location zero as required with some chips.

Mike.
Pommie is online now  
Old 1st March 2007, 01:32 AM   (permalink)
Default

From MPLAB

Debugger / ICD2

Debugger / Settings / Program / Automatically program after sucessful build (make sure it's checked)
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
More inchworm help needed Andy1845c Micro Controllers 24 6th March 2007 01:40 AM
Configuration Bits (Nigel's tutorials and Inchworm) lpinkai Micro Controllers 7 23rd January 2007 06:39 PM
Unable to connect to Inchworm Hedos Micro Controllers 15 23rd December 2006 04:26 PM
Inchworm built: Next step Hedos Micro Controllers 3 18th December 2006 12:30 AM
BS2p and GSM modem together. Help!!! :roll: ice-egoz Micro Controllers 0 20th July 2004 07:38 AM



All times are GMT. The time now is 08:19 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker