Carl Norman

CONST_SEG into flast using struct

Discussion created by Carl Norman on Feb 5, 2008
Latest reply on Feb 5, 2008 by CrasyCat
Ok, I have a problem getting these structs to go into Flash in my table.

The first two constants work (just bytes) but the stucts come up in RAM!

I have these lines in my PRM

Code:
ENTRIES  FB01  FB02  TestEvent END

 
Here is a sample of the code (has been modified to remove what it actually does)

Code:
//********************************************************************************************************************************************************//Flash data#pragma CONST_SEG UserFlashData//These work fine and show up at required addressconst far byte FB01 = 0xC1;                   //Two GP registers in flashconst far byte FB02 = 0xC4;                   //Two GP registers in flash//These dont and show up in RAM!volatile far struct SomeStructure TestEvent[10] ={  {  0,                               1,                                  2,                            3                     },{  0,                               1,                                  2,                            3                     },{FALSE}};#pragma CONST_SEG DEFAULT//********************************************************************************************************************************************************

To many possiblities for me to keep guessing and trying, so i thought i would just ask

EDIT* Using Version 5.9.0 and using S08 family 8 bit (S08GB32)

Thanks,
Carl
 


Message Edited by CarlFST60L_3rd on 2008-02-05 05:08 AM

Outcomes