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.

[参考译文] MCU-PLUS-SDK-AM243X:使用"printf"用于 AM2434器件的内核 M4F

Guru**** 2445440 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1237526/mcu-plus-sdk-am243x-using-printf-on-core-m4f-for-am2434-device

器件型号:MCU-PLUS-SDK-AM243X

您好!

我有一个关于"printf"的问题。
在 R5内核上、在 UART 终端上使用"printf"输出(在 syscfg 中启用 UART)。

我们还希望为 M4内核复制类似的行为。 在 M4 SYSCFG 上、启用了 UART、但在使用"printf"时不会出现任何情况。
注意:"DebugP_LOG"确实可以打印到 UART 终端、但我想弄清楚为什么 printf 不能实现与 R5f 上相同的行为。

谢谢!

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

    尊敬的 Himel:

    printf 不会输出到 UART 控制台。 它仅输出到 CCS 控制台。

    另一方面,DebugP_LOG ()可以根据 syscfg"Debug Log"的选择输出到 CCS 控制台和/或 UART 控制台。

    有关详细信息、请参阅 Hello World 示例- hello_world_am243x-evm_m4fss0-0_nortos_ti-arm-clang。

    此致、