Hello I begin with STM32xxx Cortex M3 MCU. I MDK-ARM I make new project for STM32L152 MCU program is very simple blinky with LED, compiled is OK Program Size: Code=936 RO-data=276 RW-data=32 ZI-data=1632 "LED2.axf" - 0 Error(s), 0 Warning(s). Problem is in Debug (software simulated debug , debuger report
*** error 65: access violation at 0x0000000C : no 'read' permission Where is problem?
hi. Takl Berry This problem is handled as follows. You download guide I have made www.mediafire.com/
Hello Takl Berry,
In Options for Target - Debug - 'Simulator section' CPU DLL you can add "-REMAP" to Parameter. This will automatically remap the code from address 0x08000000 to address 0x00000000.
But be aware that this device is not simulated and also the address space for the peripherals are not mapped. To map the periperal address space you need an INI file which does this mapping.
Use command MAP.
MAP 0x40000000, 0x40001FFF Read Write // map peripherals
Best Regards, Martin Guenther