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/AM3352:printf 输出问题

Guru**** 2549890 points
Other Parts Discussed in Thread: SYSBIOS

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/620382/ccs-am3352-printf-output-issue

器件型号:AM3352
Thread 中讨论的其他器件:SYSBIOS

工具/软件:Code Composer Studio

我在定制板上运行、运行 RTOS、GNU compiler 4.4.3、SYSBIOS 6.46.5.55

当我尝试 printf 时、控制台中不会输出任何内容。 当我运行代码时:

Enet_PHY_log ("设置物理模式:%08X 自动:%d、FD10:%d、HD10:%d、FD100:%d、HD100:%d、 FD1000:%d LPBK:%d\n"、PhyMode、
(PhyMode 和 NWay_Auto)、(PhyMode 和 MII_NWay_FD10)、(PhyMode 和 MII_NWay_HD10)、(PhyMode 和 MII_NWay_FD100)、
(PhyMode 和 MII_NWay_HD100)、(PhyMode 和 NWay_FD1000)、
(PhyMode & NWay_LPBK));

其中 ENET_PHY_LOG 定义为 printf、控制台上不显示任何内容。 我有一个相当大的堆和堆栈、PhyMode 被定义为 uint32 * PhyState =&((ENETPHY_DEVICE *) hPhyDev)->PhyState;

这是 BBB enet_phy.c 的默认代码

#include 是文件中的第一个活动行