请教两个问题:
1. 程序有时候编译能通过,运行(reset go) 时会弹出出现Progam counter is odd的错误,请问
是怎么回事,如何消除这个错误。
2. 还有一个是HEw里面用emum 的问题:
例如定义如下:
enum T_ANGLES
{
DEG350 = 63715,
DEG10 = 1820,
DEG50 = 9102,
DEG70 = 12743,
DEG110 = 20024,
DEG130 = 23665,
DEG170 = 30947,
DEG190 = 34588,
DEG230 = 41870,
DEG250 = 45511,
DEG290 = 52793,
DEG310 = 56434,
DEG22 = 4005,
DEG90 = 16384,
DEG285 = 51883
};
有的值超过了Int 的界限,会报错,请问有什么好的解决方案。一定要用
#define DEG350 63715
吗?
共6条
1/1 1 跳转至页
Progam Counter is odd

关键词: Progam Counter

第一个问题没遇到过,只能Google一下。
有两条信息相关。查查PC和SP指针吧。尤其是程序中用汇编改过什么的话。
Program counter is odd Since the program counter holds an odd value, execution of
the program is not possible.
If a PC or SP value is illegally set (e.g., an odd value) and the user program is
executed, an error message such as ‘Program counter is odd’ may be displayed
twice.
有两条信息相关。查查PC和SP指针吧。尤其是程序中用汇编改过什么的话。
Program counter is odd Since the program counter holds an odd value, execution of
the program is not possible.
If a PC or SP value is illegally set (e.g., an odd value) and the user program is
executed, an error message such as ‘Program counter is odd’ may be displayed
twice.
共6条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
发原创文章 【每月瓜分千元赏金 凭实力攒钱买好礼~】 | |
【EEPW在线】E起听工程师的声音! | |
“我踩过的那些坑”主题活动——第001期 | |
高校联络员开始招募啦!有惊喜!! | |
【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
送您一块开发板,2025年“我要开发板活动”又开始了! | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏10分 | |
【我踩过的那些坑】DRC使用位置错误导致的问题被打赏100分 | |
我踩过的那些坑之混合OTL功放与落地音箱被打赏50分 | |
汽车电子中巡航控制系统的使用被打赏10分 | |
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏100分 | |
分享汽车电子中巡航控制系统知识被打赏10分 | |
分享安全气囊系统的检修注意事项被打赏10分 | |
分享电子控制安全气囊计算机知识点被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】【OZONE】使用方法总结被打赏20分 | |
【分享开发笔记,赚取电动螺丝刀】【S32K314】芯片启动流程分析被打赏40分 |