MDK5软件仿真stm32 Simulation of Cortex-M Devices

使用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

µVISION DEBUGGER: Simulation of Cortex-M Devices


Information in this knowledgebase article applies to:

  • MDK-ARM Version 5

QUESTION

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?

ANSWER

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

  • 1
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值