Hi Andrew,
If you are using a P&E Multilink or Cyclone...
Under the MultilinkCyclonePro menu
Select "Advanced Programming/Debug Options"
Then make sure there is a tick beside
"Calculate Trim and Programme Non-Volatile Trim Register"
That's it!
Regards David