Dear all, I want to try the example code provided by Keil web site (http://www.keil.com/download/docs/msc1210_adc.zip.asp) and run that in debug mode. But every time when I try to run the program, it always show a message: "error 65: access violation at c:0x0000 : no 'execute/read permission" and the program can't run. Why this message appear and how can I fix that? I need more example code for know more about how to program with Keil C for MSC1210, who can tell me where can I find more example code for the MSC1210? Thanks!
Note that there is a 'Search' link at the top of the page: entering "error 65: access violation" found the following thread: http://www.keil.com/forum/docs/thread191.asp Does that help? (Note that the F1 help on error messages does work a lot better these days!)
Take also a look to: http://www.keil.com/support/docs/814.htm
The problem you are having is caused by the use of the MSC1210 ROM routines. Aparently, the MSC1210 has 2K of on-chip ROM routines that are located at fixed addresses in the upper part of CODE memory. Here is the documentation I found for that: http://www-s.ti.com/sc/psheets/sbaa085a/sbaa085a.pdf When you use a REAL device, these ROM routines are present. However, when using the simulator, these routines are NOT present. The warning you get from the simulator is telling you that there is nothing that uses that memory space and accessing it is PROBABLY an error.