| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| wq Guest
 
 
 
 
 
 
 
			
			
			
			
			
			
			
			
			
 
 | 
			
				| Can use Microchip ICD2 instead of CCS ICD-U40 |  
				|  Posted: Sun May 20, 2007 10:31 pm |   |  
				| 
 |  
				| we are currently using a pic18f4520 prototype board from ccs for a project, 
 this board support a ICD Connector which compatible for CCS U40 debugger,
 
 I have tried out to connect the prototype board through microchip ICD 2  it can programme and download the source code to the target board and shows no error in Microchip MPLAB IDE, but once I plug out the RJ45 connector the programme seems not run.
 
 I am still wondering whether the prototype board compatible with the Microchip brand hardware and software.
 
 or is there any fault of the prototype board.
 
 can anyone help? Thanks a lot.
 |  | 
	
		|  | 
	
		| PCM programmer 
 
 
 Joined: 06 Sep 2003
 Posts: 21708
 
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Sun May 20, 2007 10:58 pm |   |  
				| 
 |  
				| You're probably programming the board with MPLAB in debugger mode. You need to use MPLAB in Programmer mode instead.  See the
 instructions below.
 
 Here are some instructions for programming a PIC in MPLAB so it
 will run as a stand-alone program:
 http://www.ccsinfo.com/forum/viewtopic.php?t=21415
 
 Those instructions are somewhat out-of-date, because since then,
 MPLAB has added two buttons on the menu which can take the PIC
 in and out of a reset condition.  So you don't have to unplug the
 ICD2 connector anymore, to get the PIC to run in stand-alone mode.
 You can just press the button in MPLAB to release the reset condition.
 Also, you don't have to do the erase operation that I put in those
 instructions.
 |  | 
	
		|  | 
	
		| wq Guest
 
 
 
 
 
 
 
			
			
			
			
			
			
			
			
			
 
 | 
			
				|  |  
				|  Posted: Mon May 21, 2007 12:44 am |   |  
				| 
 |  
				| this is not the actually answer i needed,  for my case the Microchip ICD 2 working everything well in the programmer part, workspace shows all the hex file successfully downloaded inside the chip. 
 What I concentrate is whether Microchip ICD and CCS ICD-U40 are compatible each other or not.
 
 I just wanna use ICD 2 to programe the target device not the debugger.
 
 If Microchip ICD 2 can do the job, we do not need another CCS ICD-U40.
 |  | 
	
		|  | 
	
		| PCM programmer 
 
 
 Joined: 06 Sep 2003
 Posts: 21708
 
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Mon May 21, 2007 3:22 pm |   |  
				| 
 |  
				| See this page in the CCS FAQ, which shows the pinout of the ICD connector:
 http://www.ccsinfo.com/faq.php?page=icd_connection
 
 Also download the Microchip ICD2 poster.   It shows the pinout
 of the ICD2 connector in the upper right corner of the sheet.
 http://ww1.microchip.com/downloads/en/DeviceDoc/51265e.pdf
 
 Compare the two pinouts.   Read the Guidelines and Notes on each
 document.   Then you can assess the differences between them.
 
 My opinion is that the ICD2 should probably be able to plug into the
 CCS board and work OK.  But I don't have the CCS board to test,
 so I can't say for sure.
 |  | 
	
		|  | 
	
		|  |