assembly - st8s013f2控制器中的stm8地址范围错误读取访问
问题描述
我在 ST Visual Studio(汇编语言)的模拟器模式下使用 stm8s103f2p 控制器,在编译我的一个示例文件期间,我收到错误“读取访问超出 stm8 地址范围”。
映射文件:字节;以下地址是 0-ff 'ram0' 处的 8 位长段字节
WORDS ; The following addresses are 16 bits long
segment byte at 100-1ff 'ram1'
WORDS ; The following addresses are 16 bits long
segment byte at 200-3ff 'stack'
WORDS ; The following addresses are 16 bits long
segment byte at 4000-427F 'eeprom'
WORDS ; The following addresses are 16 bits long
segment byte at 8080-8FFF 'rom'
WORDS ; The following addresses are 16 bits long
segment byte at 8000-807F 'vectit'
源文件:stm8/
#include "mapping.inc"
segment 'rom'
。主要的: ; 示例代码 CPL A
end
解决方案
推荐阅读
- java - 春季启动自动接线服务为空
- git - git diff changes with name only 正确显示更改,但不包括从开始的提交中更改的文件
- docker - 为什么我不能从我的 docker 容器 curl 到远程服务
- php - 如何在 Yii2 中使用表关系获取记录的更多详细信息
- r - 将字符串转换为时间格式,以便计算差异
- amazon-web-services - 如何将密钥从我的桌面导入到 cloudformation 模板?
- javascript - 发送推文失败。错误为:{"name":"Exception"} - Google 应用脚本
- css - 我应该怎么做才能使搜索框的边缘变圆?
- reactjs - Redux 操作在 mapStateToProps 函数中抛出“TypeError:无法读取未定义的属性 'num_of_players'”
- f# - F#如何为主从数据构造一个Linq查询?