This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

far const declaration

Hello,

I'm using Silab IDE Simplicity Studio and MCU EFM8BB31F16GB.
I'm try to locate const array in code memroy space, but I've been not able to find the correct syntax to do that.
Searching the topics I found:

#define _code_ far const

far const myarray[] = {1,2,3};

but, maybe it's referred to other compilers because I get this message:

*** ERROR L127: UNRESOLVED EXTERNAL SYMBOL SYMBOL: ?C?CLDXPTR MODULE: C:\SILICONLABS\SIMPLICITYSTUDIO\V3\DEVELOPER\TOOLCHAINS\KEIL_8051\9.53\LIB\C51BL.LIB (?C?CLDPTR)

*** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: ?C?CLDXPTR MODULE: C:\SILICONLABS\SIMPLICITYSTUDIO\V3\DEVELOPER\TOOLCHAINS\KEIL_8051\9.53\LIB\C51BL.LIB (?C?CLDPTR) ADDRESS: 10006FDH

Thanks for your help