请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TM4C129EKCPDT Thread 中讨论的其他器件:EK-TM4C1294XL
工具/软件:TI C/C++编译器
我的器件具有适用于 TM4C VBAT 引脚的电池电源。 我想在程序运行时写入32位值。如果重新启动设备,我可以在断电前读回我写的参数值。谢谢!
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.
工具/软件:TI C/C++编译器
我的器件具有适用于 TM4C VBAT 引脚的电池电源。 我想在程序运行时写入32位值。如果重新启动设备,我可以在断电前读回我写的参数值。谢谢!
我在项目:中添加了以下代码
uint32_t pin_vel;
uint32_t print_io=0;
void main ()
{
PIN_vel = 0x00000001;
HibernateDataSet (&PIN_vel、1);
while (1)
{
HibernateDataGet (&print_io、1);
printf ("print_io=%d\r\n"、print_io);
延迟(1000);
}
}
结果: 返回"print_io"值为0,不是我期望的:0x00000001;
如何获取预期值(0x00000001)? 谢谢!