I'm trying to put 2 config chars into ROM (user makes a change which the ROM remembers during power down). However on compiling I get: 'error C142: illegal initialization' and then 'warning C34: 'code' : missing declaration specifiers The code I am using is as follows: code const unsigned char Config1 = 0x00; code const unsigned char Config2 = 0xA0; Can anyone tell me what is going on. Thanks
Are you talking about C51 or C166 (as the thread header suggests) ? Because in C166, there is no such thing as code keyword. - mike