I want to write to particular memory address in flash
So i have following code before main()
unsigned int i2c=0;
# define PORTBASE 0x003F6BB8
unsigned int volatile *const port=(unsigned int *) PORTBASE;
And inside main I have added
*port=0xAAAA;
i2c=*port;
I watch view when i monitor the variable i2c It shows value FFFF it dosent get changed to AAAA
Please guide its urgent