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

Debug: Unable to run target mplab ICD2 dspic30F3013

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



Joined: 24 Dec 2007
Posts: 13

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

Debug: Unable to run target mplab ICD2 dspic30F3013
PostPosted: Sat May 09, 2009 2:39 pm     Reply with quote

Debug: Unable to run target

debugging with mplab ICD2 IDE8.00A

I recently updated to 4.092 from 4.075. Had no problems with mplab ICD2 under compiler 4.075.

Target is dspic 30F013.

Using EMUC2, EMUD2 so I can use SPI

board is set up as

Patchchords from PGC and PGD pins to ICD2 connector when connecting ICD2 to target and for programming
EMUC2 EMUD2 pins are hardwired to ICD2 connector for running ICD2 debugger. Patchchords are removed when runnning the ICD2 debugger.


after installing update 4.092
Ran ideutilsupd4-902
Ran setup_mplab_plugin2007
Ran setup_mctools

for dspic 30F3013
4.075 has com fuses ICS, ICS1, ICS2, ICS3
4.092 has com fuses ICPS1, ICSP2, ICSP3, ICSP4

?????

assumed ICSP3 corresponds to ICS2 so made the fuse ID change to ICSP3.

place jumpers
ICD2 connects to target
ICD2 programs target
Remove jumpers
won't run target

Hope this is enough info Rolling Eyes Rolling Eyes
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Sat May 09, 2009 3:20 pm     Reply with quote

Check the ICD fuses setting in MPLAB. It knows about the correct interpretation.
Guest








PostPosted: Sun May 10, 2009 3:44 am     Reply with quote

thanks FvM for the response
Yes it does show the correct interpretation

Unfortunately I made a big goof by forgetting to replace the old 30F3013.h with the new one in my application folder. CCS made some changes to this file. At the moment this is my main suspect. By the time I realized my mistake I fooled around with too many settings and really screwed things up. So I'll go back to the working app in 4.075 and working IDE (made a copy of the hard drive) and start over.

I avoid updating compilers because this seems to be a recurring theme with CCS, poor backward compatibility. I started with 3.01 PCWH went to 4.075 PCWHD for 16 bit and now need 4.092 for the assembly MAC instruction, wasn't implemented in 4.075.

new
#define RESTART_WATCHDOG 4
#define RESTART_SOFTWARE 6
#define RESTART_MCLR 7

old
#define RESTART_WATCHDOG 0x0010
#define RESTART_SOFTWARE 0x0040
#define RESTART_MCLR 0x0080
Rolling Eyes Rolling Eyes
ddorling



Joined: 24 Dec 2007
Posts: 13

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

replaced old header
PostPosted: Tue May 19, 2009 5:33 pm     Reply with quote

I replaced the old header with the new one in my application folder. This fixed the problem.
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