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 16th August 2008, 06:13 AM   (permalink)
Default PK2 debug exec in wrong place.

I am trying to debug a 12F509 with PK2 and it appears that MPLAB is trying to place the debug executive at location 0x600. The 12F509 only has memory up to 0x3ff. I've posted on Microchip about this but as it's weekend I thought I would see if anyone here can help.

This is the output window,
Quote:
Initializing PICkit 2 version 0.0.3.30
Found PICkit 2 - Operating System Version 2.20.1
Target power detected ( 4.79V)
PICkit 2 Ready

Resetting
Programming Target (16/08/2008 3:01:25 PM)
Erasing Target
Programming Program Memory (0x0 - 0xF8)
Verifying Program Memory (0x0 - 0xF8)
Programming Debug Executive (0x-600 - 0x3FF)
Verifying Debug Executive (0x600 - 0x3FF)
PK2Error0027: Failed verify (Address = 0x600 - Expected Value 0x5E4 - Value Read 0x4)
PICkit 2 Ready
edit, forget it, it looks like this device needs additional circuitry before you can debug.

Mike.

Last edited by Pommie; 16th August 2008 at 06:42 AM. Reason: see above.
Pommie is offline  
Old 16th August 2008, 07:41 AM   (permalink)
Default

Quote:
Originally Posted by Pommie View Post
I am trying to debug a 12F509 with PK2 and it appears that MPLAB is trying to place the debug executive at location 0x600. The 12F509 only has memory up to 0x3ff. I've posted on Microchip about this but as it's weekend I thought I would see if anyone here can help.

This is the output window,


edit, forget it, it looks like this device needs additional circuitry before you can debug.

Mike.
Hay Pommie, Nice catch.Perhaps it would covered only in next version update.
How are you other wise? Finger fully restored and perhaps we can forget about that accident.

Ps: Can you set the device to base line and select the device, there after see the mplab limitations as displayed there please?
__________________
Regards,
Sarma.

Last edited by mvs sarma; 16th August 2008 at 07:47 AM.
mvs sarma is online now  
Old 16th August 2008, 10:01 AM   (permalink)
Default

Hi Sarma,

Yes, my finger is fully restored.

I hadn't tried debugging one of the little pics before and didn't realize that an additional header was required. I'm currently debugging the 12f509 code on a 16F886 as that was the smallest chip I had that has full PK2 debug (the 16f88 only has partial support). The hardest bit is making sure I don't exceed the 2 address stack.

I hope all is well with you and your family.

Mike.
Pommie is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Debug Code? doo20000 Micro Controllers 9 15th January 2008 10:19 AM
LED Matrix Project Debug, Please Help :[ mekohler Micro Controllers 2 7th December 2007 07:57 AM
Help Getting Inchworm to Debug. ravix Micro Controllers 4 1st March 2007 01:32 AM
debug pin for pic bogart Micro Controllers 1 16th June 2004 06:59 AM
how do I debug my pic program ? lneijman General Electronics Chat 1 3rd March 2003 11:58 AM



All times are GMT. The time now is 03:54 AM.


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

eXTReMe Tracker