请教两个问题:
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 跳转至页
回复
打赏帖 | |
---|---|
【S32K146】S32DS watchdog 配置使用被打赏20分 | |
【Zephyr】使用 IAR 调试 Zephyr 镜像被打赏20分 | |
【Zephyr】MCXN947 Zephyr 开发入门适配shell被打赏20分 | |
【我要开发板】6.联合MATLAB记录数据被打赏50分 | |
【瑞萨RA2E1开发板】:使用ADC功能实现位移传感器采集方案被打赏20分 | |
【nRF7002DK】基于sht30的温湿度计被打赏20分 | |
【nRF7002DK】日志打印被打赏20分 | |
【换取手持示波器】RGB屏幕移植ARM-2D库被打赏35分 | |
【分享开发笔记,赚取电动螺丝刀】分享一下如何解决瑞萨RA2E1使用printf编译报错问题被打赏27分 | |
rtthread硬件加密-5hash加密分析被打赏10分 |