现象:

我使用的FreeModbus+RTT+STM32F103C8T6+MDK5,在FreeModbus在使用下列语句时,不到5分钟就死机。

unsigned short int u16temp[2];
float ftemp;    
ftemp = Words2Float(u16temp)*1000;  //  Words2Float是将2个字拼接后转换成浮点数的函数

解决:

在项目选项中勾选Use MicroLIB,重新编译下载,观察50分钟无死机现象。


STM32F103浮点数死机的处理一例

相关文章:

  • 2022-01-11
  • 2022-12-23
  • 2021-11-20
  • 2021-10-30
  • 2022-01-18
  • 2021-07-15
  • 2021-10-25
  • 2021-09-12
猜你喜欢
  • 2021-09-05
  • 2022-12-23
  • 2022-03-01
  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
相关资源
相似解决方案