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.

msp430f5529串口发送printf函数的使用问题

图中是从别的单片机程序中移植过来的printf函数,使用之后发现该函数不能发送 %ld 等类型的数据,请问我的移植哪里有问题呢,该怎么改一下,用的软件是ccs

  • 你可以使用标准c库中的printf函数,重新定向下printf函数就好了,具体做法百度即可。你移植的printf函数不能发送 %ld 等类型的数据,可能是函数原型就不支持。
  • 我这会用手机上网,没看到楼主的图。
    估计是函数不支持%ld类型,建议楼主贴一下代码
  • 很抱歉您未能成功上传附件。请重新上传一下您的图片或者直接贴程序。