在对程序进行 down load 时,
出现错误 " stack pointer is odd "
请问如何解决
共6条
1/1 1 跳转至页
3楼
我用的是h8/3694F的
同一个程序在开始的时候未出现此情况,
多次调试后就出现" stack pointer is odd " 现象了
4楼
很抱歉我没有用过这款单片机,但是从网站上面的FAQ中,我查到了一些信息,仅供您参考。
H8的堆栈指针的初值不能设定为计数地址,当您建立工程的时候,初始化的值是偶数地址。
但是,如果使用E8/E8a调试的时候,调试器自身会占用一定的用户堆栈空间,而这个分配在建立工程的时候已经自动在RAM中建立起来了。
但是,有时由于用户故意把堆栈指针设定于奇数地址,或者程序曾经跑飞过致使堆栈指针设定到了奇数地址等等情况后,就会报错“「Stack pointer is odd」”。
如果遇到这样的情况,单单复位单片机使不能将堆栈指针的起始地址改回来的,所以请在执行程序之前点击菜单-->View-->CPU-->Register,将堆栈指针手动修改为与初始值相同的值,可能是修改ER7或R7寄存器吧,我不太清楚,你可以自己找一下。
目前只能帮你这么多了,应该是E8/E8a调试H8单片机时的一个注意事项吧。仅供参考
[url=http://www.belrion.com/en/ffxi.htm]buy ffxi gil[/url] [url=http://www.belrion.com/en/eq.htm]buy eq plat[/url] [url=http://www.belrion.com/en/wow.htm]cheap wow gold[/url] [url=http://www.belrion.com/en/gw.htm]lowest prices gw gold[/url] [url]=http://www.belrion.com/en/ddo.htm]buy ddogold[/url] [url=http://www.belrion.com/en/sell.htm]buy game gold[/url] [url=http://www.belrion.com/en/l2.htm]buy L2 adena[/url] [url=http://www.belrion.com/en/selleq.htm]sell eq plats[/url] anyone of you bought any wow gold from www.belrion.com
or sold any gold to www.belrion.com.cn ? I was told they deliver and are good and fast
appreciate if anyone here can give me some feedback ^^
or sold any gold to www.belrion.com.cn ? I was told they deliver and are good and fast
appreciate if anyone here can give me some feedback ^^
共6条
1/1 1 跳转至页
回复
我要赚赏金打赏帖 |
|
|---|---|
| 在K230DBOX上实现多时段语音提示功能被打赏¥14元 | |
| 使K230DBOX实现相机持续拍照功能被打赏¥12元 | |
| 基于K230DBOX的文本管理器设计被打赏¥14元 | |
| 基于K230DBOX的彩色画板功能实现被打赏¥15元 | |
| 在K230DBOX上实现音乐播放器功能被打赏¥15元 | |
| NXP MCU系列开发板MCULink固件升级方法【VSCode】被打赏¥28元 | |
| 三分钟快速搭建NXP MCU开发环境(VSCode)被打赏¥22元 | |
| 为遥控小车巧添功能被打赏¥26元 | |
| 【S32K3XX】FlexCAN 模块配置使用被打赏¥30元 | |
| 【S32K3XX】FlexCAN RAM 资源分配整理被打赏¥25元 | |
我要赚赏金
