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.

AM263P4-Q1: Minimum Configurations Required to Allow Debug Logs from UART

Part Number: AM263P4-Q1

Tool/software:

Hi Team,

What is the minimum settings required to output debug logs using DebugP_log() from the UART port?

Is there any restriction to use DebugP_log()? For example, is there any issue using DebugP_log() within and ISR context or outside ISR context? 

If DebugP_log() has any restrictions in its usage, what alternative is there? They are looking for an alternative that they can place anywhere in the code and it will not stop the execution unlike DebugP_assert(). They are looking for an API that will output a log when passed through.

Best regards,

Mari Tsunoda

  • Hi Mari,

    You can enable DebugP_logs from syscfg with steps shown below (by default, enabling UART logs from Syscfg -> Software -> Debug Log, will add a UART0 instance):

    Restrictions:
    1. Do not use DebugP_log in code related to performance or benchmarking, UART streaming is generally slower and will take up resources.

    2. Do not use DebugP_log or any logging in any ISR content. All the ISRs should be executed within a fixed, deterministic and small time

    3. DebugP_logs can be used outside ISR context in code which is not time-critical.

    Alternatives to DebugP_logs are to either log data somewhere in a fixed memory in OCRAM and then periodically read and dump that over UART (this won't be real-time logging though)

    Or if other R5F cores are free, you can execute your main code on Core0, log data in Shared memory and use Core1 for logging purposes (e.g. DebugP_log over UART)

    You can also have a look at real-time debug if needed: https://software-dl.ti.com/mcu-plus-sdk/esd/AM263PX/latest/exports/docs/api_guide_am263px/REAL_TIME_DEBUG_SUPPORT_GUIDE.html

    Regards,
    Shaunak

  • Thanks for the quick response! I will let my customer know.