EEPROM emulation on QGx

Discussion created by ROB LUND on Jun 21, 2006
Latest reply on Oct 4, 2007 by CompilerGuru
I've read this thread, and this one, oh and this one too. Too many choices makes my head spin!

But my local FAE was kind enough to send me a sample CodeWarrior project for EEPROM emulation on the MC9S08GB60. My target is a QG4/8 demo board. I’ve ported the project over to the QG8 with all the correct include files, timing differences, flash location differences, but haven’t gotten it to work just yet.

My question is this. Page 26 of the MC9S08QG8 rev 1.01 10/2005 datasheet states:
The internal frequency is nominally 16-MHz and the default ICS settings will provide for a
4-MHz bus out of reset.
Yet page 21, figure 1-2 (clock distribution) shows the BUSCLK as divided by 2 from ICSOUT. So which is it? Seems to me that the bus clock should be 8MHz, but it's stated that it will be 4 by default.

Naturally, these clock settings determine my flash programming clock setup. I'm guessing that timing is my problem.