在Keil和IAR中都可以使用printf函数,但两者设置的方法不一样。以下分别是IAR和Keil的设置。

使用printf函数实现串口信息打印——设置IAR和Keil的Options

使用printf函数实现串口信息打印——设置IAR和Keil的Options

 

下面是Keil的设置。

使用printf函数实现串口信息打印——设置IAR和Keil的Options

选中Options--->Target--->Code Generation--->Use MicroLIB。

 

相关文章:

  • 2021-11-17
  • 2021-09-13
  • 2021-11-05
  • 2022-01-01
  • 2021-08-15
  • 2021-11-17
  • 2021-09-09
猜你喜欢
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2021-04-09
  • 2021-06-04
相关资源
相似解决方案