完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
当使用模拟器调试似乎在实际目标上工作的代码时,我收到以下错误。 ''在0x801处停止写保护''芯片是stm8s105c6,代码是用C使用Raisonnance编译器编写的。我查看了STVD内部的帮助,它提到了在MCU配置下查看内存映射,但我似乎找不到这个对话框,也没有提到如何导航到这个对话框。还有其他人遇到过这个问题吗?任何人都可以帮我解决这个问题吗?谢谢
#STVD写保护模拟器 以上来自于谷歌翻译 以下为原文 I am getting the following error when using the simulator to debug code that seems to be working on the actual target. '' stopped on write protection at 0x801'' The chip is stm8s105c6 and code is written in C using Raisonnance compiler. I looked at help inside STVD and it mentions looking at the memory mapping under MCU configuration but I cannot seem to locate this dialog and there is no mention on how to navigate to this dialog. Has anyone else encountered this problem? Can anyone help me to solve this issue? Thanks #stvd-write-protection-simulator |
|
相关推荐
1个回答
|
|
你好迈克尔!
stm8s105c6 RAM映射到地址0x0 - 0x7FF,因此0x801是无效的RAM地址。 当模拟器运行您的代码时,它会在访问未定义的RAM位置时停止。 发生这种情况时,反汇编窗口中会突出显示导致错误的指令。 ''real''stm8s105c6不检查指令是读取还是写入保留的RAM位置。 如果代码在''真实''stm8s105c6上运行,它可能仍然包含错误,如您所示。 模拟器是一个功能强大的调试工具,因此我建议尽可能多地使用它来发现一些可能隐藏在某处的错误,并在截止日期到期时显示... 问候, EtaPhi 以上来自于谷歌翻译 以下为原文 Hello Michael! stm8s105c6 RAM is mapped at addresses 0x0 - 0x7FF, so 0x801 is an invalid RAM address. When the simulator is running your code, it therefore stops when it access an undefined RAM location. When this happens, the instruction that caused the error is highlighted in the disassembler window. A ''real'' stm8s105c6 doesn't check if an instruction reads or writes a reserved RAM location. If a code runs on a ''real'' stm8s105c6, it may still contain errors as your case shows. The simulator is a powerful debug tool, so I suggest to use it as much as possible to discover some bugs that may conceal themselves somewhere and show up when a deadline is expiring... Regards, EtaPhi |
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
913 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
974 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3125 浏览 1 评论
3400 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1986 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
151浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
169浏览 5评论
186浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
214浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
169浏览 5评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-7-1 10:30 , Processed in 0.675846 second(s), Total 47, Slave 41 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191