Content originally posted in LPCWare by Mile on Wed Sep 17 23:37:15 MST 2014
My code is as follows:
const uint16_t wMainFlag __attribute__((at(0xFE00))) = 1754;
int main(void)
{
uint16_t u16Value = 0;
uint16_t *pTest = 0;
pTest = 0xFE00;
u16Value = *pTest;
}
but u16Value is not 1754 is 512,why?
How to use __attribute__ set the fixed address(0xFE00) to a fixed value(1754)in LPCXpresso?
And My LPCXpresso version is :Version: LPCXpresso v5.2.4 [Build 2122] [2013-04-29]