AM62P: Debug MCU_R5FSS0_0/AM62P(XAM62P54AUMHIAMH)

Part Number: AM62P


Hello,
I'm using Texas Instruments 'Code Composer Studio (CCS) (figure 1), with the SDK “mcu_plus_sdk_am62px_11_01_01_08” to run examples on the AM62P.

Figure 1 - CCS Version

I'm trying to connect to the MCU_R5FSS0_0 core, but the IDE always returns the error below:

Figure 2 - Error connecting to MCU

 

I tried lowering the TCLK frequency, but without success as well:

Figure 3 - Connection Properties

 

An interesting detail is that I can connect to the WKUP_R5FSS0_0, as shown in figure 4:

Figure 4 - Connection to WKUP_R5FSS0_0

 

I'm running these tests on the SK-AM62P-LP evaluation board.

 

I tried connecting both with the built-in XDS110 and with an external one we have here, but the results were the same.

 

Any suggestions for additional tests I can do?

 

  • Tiago,

    I am not sure what your boot mode settings are but I can provide the sequence that I use to connect to this board.

    Power up board (USB C for power to a dedicated 3A+ power block, micro USB for XDS110)

    My target configuration (.ccxml) has the AM62P_SK_EVM selected instead of the AM62P device

    Launch the debugger

    Right click on the first A53 and perform a System Reset

    Connect to the first A53

    I then run  the PD_MCUSS_PowerUp() GEL function.  I believe if you run MCU_PSC_PowerUp() from the scripts menu it should do the same

    I then connect to the R5

    I do a reset CPU

    I then load

    Regards,

    John

  • Hello JohnS, 

    Thank you for your response, it enabled me to make important advances.

    I was able to follow the steps you mentioned and progress well, but now when connecting to MCU_R5FSS0_0, I'm getting the following error in the debug output:

    "MCU_R5FSS0_0: Error connecting to the target: (Error -6305) PRSC module failed to write to a router register. (Emulation package 20.4.0.3756)".

    Is there anything else you can suggest?

  • Please tell which boot mode are you using?

    Is the EVM initialized properly with the SBL binaries?

    Regards,

    Tushar

  • Hello Tushar, thank you for your feedback.
    Boot mode:

    Figure 1: Boot Mode

    And about SBL files, follow content on UART debug:


    U-Boot SPL 2025.01-00551-g743712b9ee4b (Jul 31 2025 - 11:32:44 +0000)
    SYSFW ABI: 4.0 (firmware rev 0x000b '11.1.5--v11.01.05 (Fancy Rat)')
    SPL initial stack usage: 17056 bytes
    Trying to boot from MMC1
    Authentication passed
    Authentication passed
    Authentication passed
    Authentication passed
    Authentication passed
    Starting ATF on ARM64 core...

    NOTICE: BL31: v2.13.0(release):v2.13.0-259-ge0c4d3903b-dirty
    NOTICE: BL31: Built : 07:01:36, Jul 1 2025

    U-Boot SPL 2024.04-ti-g29d0c23d67ee (Nov 29 2024 - 11:41:54 +0000)
    SYSFW ABI: 4.0 (firmware rev 0x000b '11.1.5--v11.01.05 (Fancy Rat)')
    SPL initial stack usage: 1904 bytes
    Trying to boot from MMC1
    Authentication passed
    Authentication passed


    U-Boot 2024.04-ti-g29d0c23d67ee (Nov 29 2024 - 11:41:54 +0000)

    SoC: AM62PX SR1.0 HS-FS
    Model: Texas Instruments AM62P5 SK - Teste Sync
    DRAM: 2 GiB (effective 8 GiB)
    Core: 92 devices, 30 uclasses, devicetree: separate
    MMC: mmc@fa10000: 0, mmc@fa00000: 1
    Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1...
    In: serial@2800000
    Out: serial@2800000
    Err: serial@2800000
    Teste LOHR - evm.c - Late Init
    board_late_init gpio: pin 71 value is 0
    board_late_init gpio: pin 41 value is 0
    board_late_init gpio: pin 42 value is 1
    board_late_init gpio: pin 38 value is 0
    Net: eth0: ethernet@8000000port@1
    Error: ethernet@8000000port@2 No valid MAC address found.

    Hit any key to stop autoboot: 0
    switch to partitions #0, OK
    mmc0(part 0) is current device
    SD/MMC found on device 0
    Failed to load 'uEnv.txt'
    46316032 bytes read in 347 ms (127.3 MiB/s)
    75416 bytes read in 18 ms (4 MiB/s)
    Failed to load '/boot/Image'
    Failed to load '/boot/dtb/ti/k3-am62p5-sk.dtb'
    Working FDT set to 88000000
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000
    Working FDT set to 88000000
    Loading Device Tree to 000000008feea000, end 000000008fffffff ... OK
    Working FDT set to 8feea000

  • Failed to load '/boot/Image'
    Failed to load '/boot/dtb/ti/k3-am62p5-sk.dtb'

    Looks like the EVM is not initialized properly. I am routing this thread to our expert for further comments.

    Regards,

    Tushar

  • Hi Tiago,

    Can you let us know if the below SD card image boots fine on AM62P board?

    https://dr-download.ti.com/software-development/software-development-kit-sdk/MD-9ti3Ig9hNi/11.01.16.13/tisdk-default-image-am62pxx-evm-11.01.16.13.rootfs.wic.xz

    Is it a custom board with AM62P? 

    How did you create the SD card image?

    Best Regards,

    Suren

  • Hi, I used the image that Suren sent and I was able to debug the MCU. Thank you very much for your help.

  • Hi, I'm using Texas Instruments board for the AM62P (SK-AM62P-LP evaluation board). With the image you sent, I was able to debug the MCU. Now I'm going to move on to my own PCB. Thank you very much.