Hello!
The derivative I use is for the HCS08 -> HCS08D family -> MC9S08DZ60 (Connection: SofTec HCS08).
The label on my chip says:
<text snippet start>
PC9S08DZ60
2M05C 8A
ENG SAMPLE
<text snippet end>
In my Project.map -file I found the size limit where the problem occurr.
Not working:
<text snippet start>
ExeFile:
--------
Number of blocks to be downloaded: 7
Total size of all blocks to be downloaded: 1807
<text snippet end>
Working:
<text snippet start>
ExeFile:
--------
Number of blocks to be downloaded: 7
Total size of all blocks to be downloaded: 1799
<text snippet end>
My Project.prm file says:
<text snippet start>
/* This is a linker parameter file for the DZ60 */
NAMES END /* CodeWarrior will pass all the needed files to the linker by command line. But here you may add your own files too. */
SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
ROM = READ_ONLY 0x1900 TO 0xFFAD;
Z_RAM = READ_WRITE 0x0080 TO 0x00FF;
RAM = READ_WRITE 0x0100 TO 0x107F;
ROM1 = READ_ONLY 0x1080 TO 0x13FF;
EEPROM = NO_INIT 0x1400 TO 0x17FF;
END
PLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */
DEFAULT_RAM INTO RAM;
DEFAULT_ROM, ROM_VAR, STRINGS INTO ROM; /* ROM1 In case you want to use ROM1 as well, be sure the option -OnB=b is passed to the compiler. */
_DATA_ZEROPAGE, MY_ZEROPAGE INTO Z_RAM;
END
STACKSIZE 0x50
VECTOR 0 _Startup /* Reset vector: this is the default entry point for an application. */
VECTOR 11 Timer1_Overflow
VECTOR 22 TEST_ButtonInterrupt
VECTOR 24 I2c_TransactionInterrupt
<text snippet end>
According to the data sheet, the Flash area is 0x1900 TO 0xFFFF (59136 bytes)
TAH