Hello,
I am new and doing my first steps with the ARM Cortex evaluation board from Keil. I want to read a SPI device at SPI2 and I want to use the ST library. Everything is fine and compiles and downloads, BUT when I ran the program then I got an : *** error 65: access violation at 0x40003800 : no 'read' permission
When I type MAP then I see, that there is no read write defined for the SPI2 location.
Does anybody know, what has to be done, that the map is setup correctly, when using the SPI2 with the ST library ?
Any help would be great.
Uwe Renschler
Does anybody know, what has to be done,
Well, isn't that self-evident? You have to change the memory map to include the missing parts. The debugger has commands for that, to be put into the debugger initialization script ("debug.ini" by default).
Thanks for the information. Are there some documents out, where this can be read ? In our current toolset, there has been no need for such a debug.ini file. Now I know this and I already have fixed it (besides several other beginner mistakes).
Thanks again.
Are there some documents out, where this can be read ?
There's a user's manual for the debugger, and a reference manual for the debugger's builtin commands, e.g. here: http://www.keil.com/support/man/docs/uv4/uv4_debug_commands.htm. You have this documentation locally on your machine, too.
Try inserting this line near the top of your code as it seem's to cure a lot of wierd problems
#include <stdlib.h>
"it seem's (sic) to cure a lot of wierd problems"
The only problems it will fix are those related to using stuff that's defined in the stdint.h header - part of the standard 'C' library.
It has absolutely nothing whatsoever to do with the error at hand!