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

Accessing/Reserving memory in program space

I've been trying to set and reserve a byte in my Code segment and haven't been able to do it yet.
I created a separate file where I declared my variable:
byte code console_type = 1;

and specified the location in the linker under User Segments:
?CO?CONSTANTS(0x820000)

and I am having the following errors:

ERROR L108: SEGMENT IN LOCATING CONTROL CANNOT BE ALLOCATED and
ERROR L120: CONTENT BELONGS TO ERRONEOUS SEGMENT

Does anyone have any idea on how to fix these errors or another way to accomplish this?

0