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.

AM62A7: Debug the R5F SPL

Part Number: AM62A7

Tool/software:

Hi, 

What is the step-by-step process to debug the R5F SPL ? 

I have been through https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/latest/exports/docs/linux/Foundational_Components/U-Boot/Apps-SPL-Debug.html but it doesn't work the R5F SPL

Thank you

Geoffrey 

  • Hi Geoffrey,

    Could you please specify what doesnot work and which step causes the problem in the documented steps above?

    Regards,
    Aparna

  • Hi, 

    Step 8 : After loading the code, CCS should find the source code file and it should be stuck at the code previously added  ;

    In my case it doesn't stop

    Regards

    Geoffrey 

  • Hi,

    Are you loading the R5 U-boot SPL image ?

    Regards,
    Aparna

  • Hi, 

    Yes, can you try on your end and let me know if you can go through all the steps without an issue please? 

    Regards

    geoffrey 

  • Hi Geoffrey,

    I will try this out today and let you know by EOD.

    Thanks for your patience.

    Regards,
    Aparna

  • Hi Geoffrey,

    Steps:

    1) If you want to debug on AM62A EVM use:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    diff --git a/arch/arm/mach-k3/am62a7_init.c b/arch/arm/mach-k3/am62a7_init.c
    index 5a96683c53..6a971c6cee 100644
    --- a/arch/arm/mach-k3/am62a7_init.c
    +++ b/arch/arm/mach-k3/am62a7_init.c
    @@ -100,6 +100,11 @@ void board_init_f(ulong dummy)
    ctrl_mmr_unlock();
    + #ifdef CONFIG_TARGET_AM62A7_R5_EVM
    + volatile uint8_t halt = 1;
    + while(halt);
    + #endif
    +
    /* Init DM early */
    spl_early_init();
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Modify the config according to the EVM used.

    2) Rebuild the U-boot binaries and modify them in boot-media.

    3) Load the file as symbols as mentioned in documentation.

    It should halt at the loop and you will be able to debug.

    Regards,
    Aparna