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.

[参考译文] TMS320F28379D:如何启用浮点值打印?

Guru**** 2609285 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1037744/tms320f28379d-how-to-enable-floating-point-value-print

器件型号:TMS320F28379D

大家好、

我正在尝试将浮点值写入 SDCard、但我发现不支持%f。 我阅读了一些旧的论坛问题、有些人建议编辑系统配置文件、例如"System.extendedFormats ="%$L%$S%$F set in .cfg 文件"。 但在我的项目中、我没有任何系统配置文件。 我正在"sd_card_cpu01"项目下开发代码、该项目由 TI 提供、用于读取 SD 卡。 是否有人可以帮助我如何启用此%f 格式或我必须写入"System.extendedFormats ="%$L%$S%$F"的位置。 提前感谢。

浮点值= 3.1416;

for (b=0;b<9;b++)

k += sprintf(str+k,"%.4f\t",值);

此致

Mukesh Ghosh