使用MDK5.10仿真STM32F时,提示"access violation at 0x40021004: on 'read' permission"这样的错误。
修改方法:
将“Optionsfor Target 'Target 1'”中‘Debug’页面下,最下面一行的Diglog DLL:改为DARMSTM.DLL,Parameter:改为-pSTM32F103RB就可以了,这边STM32F103RB是我选的芯片型号,参考Peripheral Simulation for STMicroelectronics STM32F1Series
设置Dialog DLL 分别为: DARMSTM.DLL 和TARMSTM.DLL, Parameter 均为:-pSTM32F103RC,用于设置支持芯片的软硬件仿真(即可以通过 Peripherals 选择对应外设的对话框观察仿真结果)。
http://www.keil.com/support/docs/3726.htm
Information in this knowledgebase article applies to:
I am trying to use the Simulator that is available in the µVisionDebugger with MDK-ARM Version 5. However when I start the debugger Iget the following error:
*** error 65: access violation at address : no 'read' permission
This error happens when my application accesses on-chipperipherals. In the past the µVision Debugger used to providesimulation for the on-chip peripherals. Is this no longer availablewith MDK-ARM Version 5?
The µVision Debugger provides complete instruction setsimulation for all ARM7, ARM9, Cortex-M0/M0+, Cortex-M3 and Cortex-M4processor cores. However it is impossible to simulate the behavior ofthe on-chip peripherals for many devices.
Today the capabilities of Target Debugging match the functionalityof device simulation when using trace with a powerful debug adaptersuch as the ULINKpro Debug and Trace Unit. It provides with thereal-world application features such as Code Coverage, PerformanceAnalyzer, Event Viewer, and Logic Analyzer.
For some older devices, the legacy device simulation is stillavailable and can also be used together with MDK Version 5 projects.To enable the device simulation open the dialogProject - Optionsfor Target - Debug. Under the sectionUse Simulator changethe entries forDialog DLL and Parameter. The values from thetables below give you device simulation for certain devices. Refer toSimulated Features in theµVision Legacy Device Database to get information about thesimulated peripherals for each of these devices.
Peripheral Simulation for STMicroelectronics STM32F1Series
Dialog DLL | Parameter | Microcontroller Device ------------|-----------------|------------------------------------ DARMSTM.DLL | -pSTM32F101C6 | STM32F101C6 DARMSTM.DLL | -pSTM32F101C8 | STM32F101C8 DARMSTM.DLL | -pSTM32F101CBT6 | STM32F101CBT6 DARMSTM.DLL | -pSTM32F101R6 | STM32F101R6 DARMSTM.DLL | -pSTM32F101R8 | STM32F101R8 DARMSTM.DLL | -pSTM32F101RB | STM32F101RB DARMSTM.DLL | -pSTM32F101T6 | STM32F101T6 DARMSTM.DLL | -pSTM32F101T8 | STM32F101T8 DARMSTM.DLL | -pSTM32F101V8 | STM32F101V8 DARMSTM.DLL | -pSTM32F101VB | STM32F101VB DARMSTM.DLL | -pSTM32F103C6 | STM32F103C6 DARMSTM.DLL | -pSTM32F103C8 | STM32F103C8 DARMSTM.DLL | -pSTM32F103CB | STM32F103CB DARMSTM.DLL | -pSTM32F103R6 | STM32F103R6 DARMSTM.DLL | -pSTM32F103R8 | STM32F103R8 DARMSTM.DLL | -pSTM32F103RB | STM32F103RB DARMSTM.DLL | -pSTM32F103T6 | STM32F103T6 DARMSTM.DLL | -pSTM32F103T8 | STM32F103T8 DARMSTM.DLL | -pSTM32F103V8 | STM32F103V8 DARMSTM.DLL | -pSTM32F103VB | STM32F103VB DARMSTM.DLL | -pSTM32F103ZE | STM32F103ZE