硬汉嵌入式论坛

 找回密码
 立即注册
查看: 2365|回复: 2
收起左侧

[MDK] mdk522 软件模拟器 模拟STM32F407 为啥不好使???

[复制链接]

10

主题

21

回帖

51

积分

初级会员

积分
51
发表于 2018-12-29 21:57:42 | 显示全部楼层 |阅读模式

"第5期:SVC的使用"  工程 用mdk522 软件模拟器 点连续运行按钮不能连续运行,为啥??
命令窗口有如下输出,如何破呢??


Load "G:\\load\\stm32\\armfly\\ucosiii\\第5期:SVC的使用\\第5期:SVC的使用\\Project\\MDK-ARM(uV4)\\Flash\\Obj\\output.axf"
BS \\output\../../User/main.c\56
BS \\output\../../User/main.c\56
BS \\output\../../User/bsp_stm32f4xx/system_stm32f4xx.c\487
____________^
*** error 35: undefined line number
*** error 65: access violation at 0x40023800 : no 'read' permission
*** error 65: access violation at 0x40023800 : no 'write' permission
*** error 65: access violation at 0x40023808 : no 'write' permission
*** error 65: access violation at 0x40023800 : no 'read' permission
*** error 65: access violation at 0x40023800 : no 'write' permission
*** error 65: access violation at 0x40023804 : no 'write' permission
*** error 65: access violation at 0x40023800 : no 'read' permission
*** error 65: access violation at 0x40023800 : no 'write' permission
*** error 65: access violation at 0x4002380C : no 'write' permission
回复

使用道具 举报

10

主题

21

回帖

51

积分

初级会员

积分
51
 楼主| 发表于 2018-12-29 23:41:18 | 显示全部楼层
map 0x40000000,0x47ffffff readwrite
map 0x50000000,0x57ffffff readwrite
map 0xa0000000,0xa7ffffff readwrite
map 0xf0000000,0xf7f00000 readwrite
map 0x1fff7a10,0x1fff7a40 readwrite


在option for target 中添加 以上 内容的 initionlization file 文件后可以运行到main()了  但是串口窗口UART#1 仿真不了,看不到东西。
fputc函数中的下面死循环已被注释了
while (USART_GetFlagStatus(USART1, USART_FLAG_TC) == RESET)
        {}

回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
107157
QQ
发表于 2018-12-30 00:48:28 | 显示全部楼层
MDK的软件仿真仅供娱乐。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-5-20 21:36 , Processed in 0.189128 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表