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: Real time debug with UART issue

Part Number: AM263P4
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi All,

I am trying to enable real time debug by following AM263Px MCU+ SDK: Enabling Real Time Debug

I am unable to get it to work.

I have created a sample project. A simple count variable is incremented in while loop. 

As shown in pic, Error: “Target failed to read memory “ and “Malformed response packet” appears.

Attaching the project as well here.

Kindly help in resolving issue.

rt_debug_am263px-cc_r5fss0-0_nortos_ti-arm-clang.zip

  • Hi Arjun,

    Thanks for sharing your project, I will try the same on my end. Meanwhile, can you please let me know the Syscfg and the SDK version you are using for the AM263Px

    Regards,
    Shaunak

  • Hi Arjun

    Sharing my findings below:

    1. I used the example shared by you above, imported it in CCS, built it. I reduced the sleep to a few microseconds instead of seconds.

    2. Created a target configuration as explained in the documentation. 

    3. Then launched the above config and connected the R5F core (make sure the UART_connection_0/cortex_r5f_0 is running). Load the .out file to R5 0 core, execute,

    4. In expressions window, add "count" and click on the "enable continuous refresh" button.

    With the above steps I was able to see the continuous refresh working and updating continuously.

    At 2 seconds, it is causing a read time out which Im . May I know if you really need the ClockP_Sleep(2)? The Real time debug works without any intermediate sleep as well. Seems like the CCS has some UART timeout setup which gives the read timeout error. I will have to check with our tools team on this. But meanwhile, you can continue using it by reducing sleep to us or removing the sleep.

    Regards,
    Shaunak

  • Hi Shaunak,

    Thanks for the detailed reply.

    sysconfig ver: 1.20.0

    SDK ver: 9.2.0.56

    I have tried again but not successful. However, now the error msg is different. "Read Time out" Please see image.

    I have tried to increase refresh rate for expressions watch window but no changes.

    I have a doubt regarding Step 3 you mentioned.

    3. Then launched the above config and connected the R5F core (make sure the UART_connection_0/cortex_r5f_0 is running). Load the .out file to R5 0 core, execute

    As soon as i launch the target config, status is as below: Only UARTConnection_0 shows as running. And i load the .out file to this target

    Is this correct? am i missing something?

    Kindly help in resolving this issue.

    Thanks,

    Arjun.R

  • Hi Arjun,

    I have a doubt regarding Step 3 you mentioned.

    1. As soon as you launch your target config, the UART connection is running by default (expected behavior).

    2. In the above findings I shared, I let this UART core run, I connect my R50 core and load my program here.

    3. Then execute the core R5F0.

    4. Then load the symbols on the UART core.

    Regards,
    Shaunak