Hi all, My goal is to put a few constants in the code segment at compile time so they are stored in the program flash when the SiLabs 'F122 is initialized via JTAG.
const UCHAR code ucTBD = TBD_VAL;
const UCHAR code ucTBD _at_ 0x6000 = TBD_VAL;
typedef unsigned char UCHAR; #define TBD_VAL (0x00)
John; I use starup.a51 to set these code bytes. About one third down the page you will see CSEG 0. I set CSEG 0yyyh then DB byte1 DB byte2 etc. CSEG 0 Not C but you can force any init bytes to any code address that is required,
Al, That seems more direct. Thank you all for the fast and expert advice. John
View all questions in Keil forum