| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		
			Jody
 
 
  Joined: 08 Sep 2006 Posts: 182
  
			
			 
			 
			 
			
			
			
			
			
			
  
		  | 
		
			
				| PIC not running after programming | 
			 
			
				 Posted: Thu Jan 26, 2023 7:04 am     | 
				     | 
			 
			
				
  | 
			 
			
				Hi,
 
(PIC18f87J50 , ICD3 ,CCS 5.080)
 
What I have..
 
With the debugger attached (in debug mode) and running the program it is working.
 
LED's are flashing LCD is used etc...
 
 
Switching to release and use the ICD3 as a programmer then the program doesn't run any more...
 
 
I switched the clock.. used the innternal etc.. 
 
enabled fuses .. disabled fuses but no luck..
 
 
anybody an idea???
 
 
Best regards,
 
Jody | 
			 
		  | 
	
	
		  | 
	
	
		
			PrinceNai
 
 
  Joined: 31 Oct 2016 Posts: 554 Location: Montenegro 
			
			 
			 
			
			
			
			
			
			
			
  
		  | 
		
			
				 | 
			 
			
				 Posted: Thu Jan 26, 2023 7:21 am     | 
				     | 
			 
			
				
  | 
			 
			
				| You do have a resistor on MCLR to 5V? | 
			 
		  | 
	
	
		  | 
	
	
		
			Jody
 
 
  Joined: 08 Sep 2006 Posts: 182
  
			
			 
			 
			 
			
			
			
			
			
			
  
		  | 
		
			
				 | 
			 
			
				 Posted: Thu Jan 26, 2023 7:29 am     | 
				     | 
			 
			
				
  | 
			 
			
				| Yes I have... | 
			 
		  | 
	
	
		  | 
	
	
		
			Jody
 
 
  Joined: 08 Sep 2006 Posts: 182
  
			
			 
			 
			 
			
			
			
			
			
			
  
		  | 
		
			
				 | 
			 
			
				 Posted: Thu Jan 26, 2023 7:40 am     | 
				     | 
			 
			
				
  | 
			 
			
				FIXED IT!!!
 
Stupid me has soldered only one side of the pullup resistor!!!!
 
 
Thanks!!! | 
			 
		  | 
	
	
		  | 
	
	
		
			PrinceNai
 
 
  Joined: 31 Oct 2016 Posts: 554 Location: Montenegro 
			
			 
			 
			
			
			
			
			
			
			
  
		  | 
		
			
				 | 
			 
			
				 Posted: Thu Jan 26, 2023 7:50 am     | 
				     | 
			 
			
				
  | 
			 
			
				| I don't know what environment you are using. MPLABX? There are some options to hold a device in reset. Maybe that is a problem? I never had a problem with that, but some here have said that if you leave #device ICD = TRUE or #fuses debug (don't know which) in your code, the program doesn't run. | 
			 
		  | 
	
	
		  | 
	
	
		 |