We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I have a problem with the uVision IDE for programming Atmel ARM-based microcontrollers. This is the code:
main() { int *pa; pa = 0x200000; *pa = 0xFFFF; }
Very simple... On Windows C compiler this code will not be any problem, apart from the fact that application will crash because the memory location specified is not accessible. On uVision, instead, the compiler reports this error message:
main.c(6): error: #513: a value of type "int" cannot be assigned to an entity of type "int *"
Thank you in advance, Luca