cyberjack
 
 
  Joined: 05 Oct 2003 Posts: 1
  
			
			 
			 
			
			
			
			
			
			
			
  
		  | 
		
			
				| Reprogramming 12F629 OSCCAL after erase flash in mplab 6.x | 
			 
			
				 Posted: Sun Oct 05, 2003 2:12 pm     | 
				     | 
			 
			
				
  | 
			 
			
				Aplogies if this is slightly off topic, but I'm not sure if this is a CCS issue or an mplab 6.x issue. 
 
 
 I'm working with incircuit programming of a 12F629 and can successfully read/write/verify the chip. However, when I erase the flash, it erases all of program memory, including the OSCCAL value at 0x3ff. No worries, right? 
 
I just use:
 
   	  | Code: | 	 		  | #rom 0x3FF={OSC_VALUE} | 	  
 
and everything is happy...
 
 
 Except here's the kicker, mplab 6.x refuses to program that address. When I check programming ranges, it shows me 0-0x3FE, and gives an error when I change to range to include 0x3FF. 
 
 
  Should I be using a different CCS option? Is this a bug in mplab 6? What am I missing?!?
 
 
Thanks a ton, 
 
-Josh | 
			 
		  |