2003-05-15 09:25 PM
Constant at certain location (0xefff) with C compiler?
2003-05-13 11:41 PM
Hello,
I wrote firmware that is able to update the firmware of the device ($e000-$efff) by USB. I want to place a constant at the end of this memory to check whether the firmware has been programmed/updated successfully. This is the constant value: const Byte FlashableVersionNumber=0x01; //place at 0xefff? How can I do this with the Cosmic compiler? I was/am new in C, so please clarify with some code. Thanks in advance Kind regards, Mark2003-05-14 06:03 AM
Have alook at
, this topic was discussed. Regards SJO2003-05-15 09:25 PM
In both C compilers (Cosmic or Metrowerks), you can define a variable by precising the address where you want it to be (like in the mapfiles for the hardware registers for instance!):
const Byte FlashableVersionNumber @efff;