William Blum

9S08AC128 FLASH In-Circuit Programming

Discussion created by William Blum on Apr 11, 2012
Latest reply on Oct 11, 2012 by William Blum

1. Working Flash programming functions on 9S08AW60 migrated to 9S08AC128. 

2. Erase and Programming functions not working on AC128. 

3. No errors returned when byte programming or segment erase functionis run. 

4. Byte programming does not program bytes.  Returns function complete and no errors.  

5. Migration included checking and changing FDIV clock rate. FCDIV = 0x4C;  /* 19,660,800 Hz /{8 * (12+1)} = 189.03 Hz   */ 

6. Block protection:  const unsigned char NVPROT_INIT @0x0000FFBD = 0x43; /* Protects Flash from 0xC000-0xFFFF */
/* 0x01 - sets the protection range as spec'd by the FPC bits */ 

7. Flash command handler function is relocated from Flash to RAM when Flash command function used.

8. "walking the code" with P&E debug pod indicates no problems. Code relocates and runs out of RAM as expected.


Any help would be appreciated!