Regarding the relocation of the flash code to ram.....is this necessary only if you need to erase the entire flash, or can the flash functions be run out of flash in the normal fashion?
Also, I tried using the S08_flash functions, while connected with a debugger, but do not see the memory change.
I used the initializer to set the FCDIV register, and I verified that 0x42 was sent, and that after reset the register reads 0xC2, as expected, so I did not call the FlashInit() function.
I ran the following, then checked the memory location with the debugger, but it is still 0cFF
if(Flash_Erase(0xFE00))
{
i=9;
}
ucInput = 0x5A;
if(Flash_Program(0xFE00,ucInput))
{
i=9;
}
Is there something else that I need to do to get the flash to be programmed?
Thanks,
Jerry