AnsweredAssumed Answered

Trim hard coded address ?

Question asked by REY Stephane on Feb 1, 2013
Latest reply on Feb 3, 2013 by REY Stephane

Hi there,


I'm copying the trim value from flash to the ICSTRM register of my S08EL32 during boot.

I'm using the following syntax:

ICSTRM = *(unsgined char*) 0xFFAF;


This works fine

However my ICS code is not portable as the address may change from a derivative to another, and the TRIM register in flash is not referenced in the derivative header file from lib.


Any solution other than fill-in the header file or adding somewhere else for each project the flash TRIM definition ?