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 ?