Hello Leinmi, and welcome to the forum.
Also keep in mind that, if you have created a CW project that will indirectly include the CW header file for the MCU (mc68hc908qy4a.h), this work has already been done for specific addresses in flash. For the address 0xFFC0, a macro has been defined with the name Optional. Also the control register OSCTRIM is already defined as the usual destination address.
OSCTRIM = Optional;
should give the expected result.
Regards,
Mac