View previous topic :: View next topic |
Author |
Message |
ddorling
Joined: 24 Dec 2007 Posts: 13
|
Debug: Unable to run target mplab ICD2 dspic30F3013 |
Posted: Sat May 09, 2009 2:39 pm |
|
|
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 |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Sat May 09, 2009 3:20 pm |
|
|
Check the ICD fuses setting in MPLAB. It knows about the correct interpretation. |
|
|
Guest
|
|
Posted: Sun May 10, 2009 3:44 am |
|
|
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
|
|
|
ddorling
Joined: 24 Dec 2007 Posts: 13
|
replaced old header |
Posted: Tue May 19, 2009 5:33 pm |
|
|
I replaced the old header with the new one in my application folder. This fixed the problem. |
|
|
|