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.

[参考译文] TMS320F28027:Ltao 不工作

Guru**** 2589280 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/665219/tms320f28027-ltao-not-working

器件型号:TMS320F28027

您好、以下代码似乎间歇性工作:

uint16_t int_val = 50;
char * msg;
ltoa (int_val、msg); 

此代码是否有效? 准确的代码正在工作并且停止工作。

 

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

    在执行 ltoa 之前、不应该将内存分配给 msg?