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.

  • TI Thinks Resolved

K2GICE: Booting from sd card

Expert 4390 points

Replies: 8

Views: 90

Part Number: K2GICE

Hi,

The customer followed this link http://software-dl.ti.com/processor-sdk-rtos/esd/docs/06_03_00_106/rtos/index_Foundational_Components.html#k2g and tried to boot from sd card. He could only boot dsp program successfully.

out2rprc.exe [.out file] [rprc output]

MulticoreImageGen.exe LE 55 [output name] 5 [rprc output]


But he could not boot arm program successfully.

out2rprc.exe [.out file] [rprc output]

MulticoreImageGen.exe LE 55 [output name] 0 [rprc output]

As far as i know, it should boot from the arm core by default, i have no idea about this phenomenon.

Below is the log information:

**** PDK SBL ****
SBL Revision: 01.00.09.02 (Apr 20 2020 - 18:21:58)

[01:24:41.979]←◆Begin parsing user application

[01:24:42.187]←◆Jumping to user application

  • Nancy,

    It looks like the Boot ROM on the device is able to load the secondary bootloader(SBL) but for some reason the SBL copies the application and passes control but the application is not starting. In this case, what helps most is by connecting a JTAG to the ARM core (without GEL file) and loading the symbols from the ARM .out. check to see the program counter and indicate if this is in MSMC or DDR memory and use the map file for application and sBL to see which function the core is hung in.

    There are some useful debug tips for debugging SBL based application boot in the article here:

    http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_Foundational_Components.html#software-debug-steps

    SBL is like any other user defined code that can be debugged by setting break points. SBL is provided in full source so we would need the customer to provide some insight into whether the code is hung in SBL or when starting the application. Also ensure the application code/data sections don`t overlap over SBL memory sections.

    Hope this helps.

    Regards,

    Rahul 

    --------------------------------------------------------------------------------------------------------------------------------------
    Please click the
    This resolved my issue button on this post if the responses on this E2E thread answers your question.
    --------------------------------------------------------------------------------------------------------------------------------------

     

  • In reply to Rahul Prabhu:

    Hi,

    He stuck in 0x8000F958 Excrption_asm_gnu.asm: ti_sysbios_family_arm_exc_Exception_excHandlerDataAsm_I, which is in DDR memory.

  • In reply to Nancy Wang:

    Nancy, 

    This definitely indicates that the SBL has passed control to the SYSBIOS application on the ARM and an exception occurred in the application. Do we know if the exception occured before entering main or after entering main in the SYSBIOS application.

    what application are they trying to boot? Is this their custom application or one of the SDK examples. I would recommend testing with SDK examples first and then testing custom application. also, please ask the customer to provide Processor SDK release version used so I can check if there are any known issues.

    Regards,

    Rahul 

    --------------------------------------------------------------------------------------------------------------------------------------
    Please click the
    This resolved my issue button on this post if the responses on this E2E thread answers your question.
    --------------------------------------------------------------------------------------------------------------------------------------

     

  • In reply to Rahul Prabhu:

    Hi,

    He had tried both custom appliction and sdk example.

    sdk version:sdk_rtos_k2g_6_03_00_106

    Could you please help to do a test and to see if the phenomenon is reproducible?Thanks!

  • In reply to Rahul Prabhu:

    Hi,

    The exception occurred before main.

  • In reply to Nancy Wang:

    Thanks for that info. Let me check internally with system test if there is any known issue as the boot should not fail with SDK example.

    Can you please confirm that the SBL image for SD boot that was used was from the following folder and not the prebuilt one that is part of the SD card image.

    pdk_k2g_1_0_xx\packages\ti\boot\sbl\binary\iceK2G\mmcsd\bin

    Was there any modifications made to the SBL source ?

    Regards.

    Rahul

    --------------------------------------------------------------------------------------------------------------------------------------
    Please click the
    This resolved my issue button on this post if the responses on this E2E thread answers your question.
    --------------------------------------------------------------------------------------------------------------------------------------

     

  • In reply to Rahul Prabhu:

    Hi,

    Thanks!

    Yes, he copied MLO from ti\pdk_k2g_1_0_16\packages\ti\boot\sbl\binary\iceK2G\mmcsd\bin to SD card.

  • In reply to Rahul Prabhu:

    Hi,

    Any update?

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.