将变量声明为 unsigned long 或 unsigned long long、将其设置为零、variable 显示0x0008000 for unsigned long、或00080008000 for unsigned long long。 这是怎么回事???? 如何解决此问题?
使用 CCS 版本12.0.0.00009和 c.
感谢所有的帮助。
Bob Scott
214.673.1439.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
将变量声明为 unsigned long 或 unsigned long long、将其设置为零、variable 显示0x0008000 for unsigned long、或00080008000 for unsigned long long。 这是怎么回事???? 如何解决此问题?
使用 CCS 版本12.0.0.00009和 c.
感谢所有的帮助。
Bob Scott
214.673.1439.
显示*在哪里*?
当您使用变量时是否会发生这种情况?
分享一个展示问题的简短测试案例。
当变量保持最高值和使用观察函数时显示。 还没有尝试使用它。 简单的测试用例:
无符号长 tempnum;
tempnum = 0;
您是否在同步之前执行了该分配?
您有优化吗?
如果您的分配不起作用、可能会忽略它
无符号 long foo
FOO = 0;
…
foo = bar * 12;
是在漫游之前执行了托管。
优化是什么???
尊敬的 Bob:
您可以在项目属性中更改优化级别。 在项目资源管理器中右键点击您的项目名称、然后从上下文菜单中选择"Properties"。
然后在 Build -> MSP430 Compiler -> Optimization 下、将优化级别设置为 off。
此致、
Brandon Fisher
没有问题。 非常感谢。