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.

[参考译文] CCS/MSP430F5528:[TDC1000-TDC7200EVM][MSP430][CCS V7] sprintf 提供编译错误。

Guru**** 2589300 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/657135/ccs-msp430f5528-tdc1000-tdc7200evm-msp430-ccs-v7-sprintf-giving-compilation-error

器件型号:MSP430F5528

工具/软件:Code Composer Studio

我正在尝试编译 TDC1000-TDC7200 EVM GUI 提供的固件代码。 sprintf 在行中给出编译错误。
   sprintf ((char *) outString、"Start_to_Stop[%d]:%4.6f   "、i+1、start2stop[i]);

错误:

此行有多个标记
   -#2632在 printf_support=minimal 模式下不允许使用修饰符
   -#2631在 printf_support=minimal 模式下不允许转换 f
   "="">processors.wiki.ti.com/.../1532">
   a>(ULP 5.3)检测到 sprintf()操作。 建议在运行时将它们移动到 RAM 中、或者不要将它们用作 RAM
   需要大量处理/功耗

如何使用 sprintf 进行此类操作。

我使用的是 Windows 10、CCS v7

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Rohan、

    我不熟悉此错误。 我必须仔细研究、下周再回来。

    此致、