Hi Everyone,
I followed an example provided in the help in STM32CubeMX tools from ST. I generated the code and selected Keil 5 as my platform. When I opened the project in Keil, it compiled with no error. But when I tried to simulate the code and hit "run", it generated the following errors "*** error 65: access violation at 0x4002380C : no 'write' permission *** error 65: access violation at 0x40023C00 : no 'read' permission". I tried different examples but similar error was generated. I am using Keil Lite version.
Thanks in Advance
Like all the other Error 65 posts on the forum the issue here is that the SIMULATOR does not support your chosen target. Use the DEBUGGER on a real part/board.
Alternatively remove code dependent on hardware, like the clock sources, PLL, GPIO, etc.
I was able to find what is causing the problem but could not figure out why. During debugging when I checked the "memory map" in the "Debug" menu, I noticed the area 0x40000000-0x400FFFFF is not included for read-write. If I include it, then the problem goes away. However, if I close the debugger and open it again, I have to redo the mapping.
Thanks again
However, if I close the debugger and open it again, I have to redo the mapping.
Time to read the manuals then.
So write a debugger script, still not going to get around the issue that at some point you're going to have some dependencies on the HW actually returning some usable non-zero value.
Stop wasting time suppressing the error and focus on the real issues at play.