whenever im trying to step the function this error is occuring so how can i solve this ?please help me
*** error 65: access violation at C:0x0002 : no 'execute/read' permission
According to the error message, I assume that you are working with a Keil MDK and the uVision debugger. Is that correct?
These knowledgebase articles should explain what you need to do:www.keil.com/.../814.htmwww.keil.com/.../4045.htmThere are also other forum entries for this error message. If you can't fix it, please give me more details in order to help you.
Error 65 means you are touching hardware that's *not* simulated, touching 0x0002 might relate to an errant pointer, but without knowing the micro-controller or the code sequences you are using, it is very hard to diagnose your specific issue.
Stop using the Simulator, it doesn't support the hardware you are using, you need to migrate to Real Hardware. There are a lot of low costs development boards in 2019 that include a micro-controller and JTAG/SWD debuggers. STMicro has their NUCLEO and DISCOVERY boards, and NXP has boards too.
But, as Westonsupermare Pier says, using Real Hardware is probably the best way forward ...
View all questions in Keil forum