The calibration process is configured from the "True-Time Simulator & Real-Time Debugger" by selecting the "SofTec-RS08->Communication..." menu item which brings up the "MCU Conguration" dialogue box (I have the DEMORS08KA2 selected in the Hardware Model pull-down for my case). From there, the Communications Settings button brings up the Communications Setting dialogue (go figure...) which has a check box to "Enable Trimming" and a text field to enter the desired DCO frequency in Hz (e.g. 20000000). The box indicates that it will use the calculated trim value to set the $FFFA and $FFFB Flash locations when the part is programmed. So, it does appear that the FTRIM bit
will be set (the PDF "Debugger_HC08.pdf" that comes with Codewarrior has more info... my version had it on p. 628/629).
As for 32.768kHz... that's well within the range of the ICS specifications for the chip (which are given as 31.25kHz to 39.0625kHz, trimmed). So that's perfectly feasible. In that case you'd just trim for a DCO of 16777216 (the reference oscillator to DCO scale is 1:512) and accept the calibration error, trim resolution limitation, and deviation over temp and voltage. In my case, what I'm trying to do is set the clock for
as high a frequency as possible such that for the calibration errors (in determining the trim value by the software/hardware configuration I have as well as in bulk programming in production), trim resolution errors, and errors introduced by drift over voltage and temperature, the chip won't be running out of specification (i.e. without going over 20MHz in the worst case of all the errors added together -- to guarantee I will never exceed the published f_BUSmax. specification of 10MHz).
Application note AN3041 has much more detailed information on the ICS module (including some much better operational descriptions than the RS08's data sheet has). AN2496 describes the calibration methods for the earlier ICG module, but AN3041 says that the ICS is a stripped-down version of the ICG and that the same iterative approach should be used to trim the ICS (and that the algorithms should be portable). But... that still doesn't answer what the trimming accuracy of the specific setup I am using (software, USB, and hardware) actually is.
And finally, there is apparently tremendous variability between individual chips re: the internal reference oscillator frequency. This is driven home in the entirely annoying mask errata sheet "MSE9RS08KA2_2M44C" for the RS08 (and its ICS module):
"The trim value for any particular clock frequency is unique to each device." (which basically limits the reliable bus clock speed to 5MHz due to the bug).