I'm using CW 6.1 & PE 3.01 for the MC9S08SH8_16. On the 16-pin version of that chip, port C (C0-C3) is not connected to actual pins.
Here is what the data sheet PDF says: To avoid extra current drain from ﬂoating input pins, the reset initialization routine in the application program should either enable on-chip pull-up devices or change the direction of unused pins to outputs so they do not ﬂoat. When using the 16-pin devices, the user must either enable on-chip pullup devices or change the direction of non-bonded port C pins to outputs so the pins do not ﬂoat.
Maybe in the future PE could add this capability on the CPU bean Properties page?
In the meantime, should I add the init code to the CPU bean "Build Options" page in one of the three "User initialization" strings. Any suggestions of which to use and what to add?