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.

RTOS/AM5728: Bootloader issue

Part Number: AM5728

Tool/software: TI-RTOS

H\ello,

My board is evmAM5728 .I use CCS and RTOS.Now I want run my app(ARM and DSP) from SD card.

1.I follow the steps 

and get the correct result 

My MLO and app is located in C:\ti\processor_sdk_rtos_am57xx_3_01_00_06\prebuilt-sdcards\evmAM572x .the boot .img is also in there.

2.I want to run my app.So I get a new app using the tools(out2rprc and MulticoreImageGen) , There is no change in MLO.But the result is wrong.

So there are two possibilities. My new app is not right,the other is MLO is not fit for my app. I try some tests to find the answer.

A.chage the  MLO.I find a new one (C:\ti\pdk_am57xx_1_0_4\packages\ti\boot\sbl\binary\evmAM572x\mmcsd\bin)

but I get nothing from UART3

B. so I want to create a new MLO.Firstly, I create a CCS project just as in the picture.

I use my new app and the app in SDK ,I can respectly  run the both app correctly.

3.Now I'm sure that my app is creared correctly, I need a new MLO using the CCS project.

I read some related documents about the MLO and tiimage tool.

This is a piece of explanation about tiimage  on AM335x board.

but  I don't know  how to get the boot.bin.

I try to use ccs2bin tool to change the .out to .bin

then get the MLO using tiimage tool.But I can run my app.

Although my pdk packet is old ,I try the recent packet with the same wrong results.

Is  there any wrong in my steps?Can you give me some ideals about howto use the SBL.out to get a new MLO about  evmAM5728?

  • The RTOS team have been notified. They will respond here.
  • HELLO,

    Recently,I find a makefile(located in C:\ti\pdk_am57xx_1_0_4\packages\ti\boot\sbl\board\evmAM572x\build)that have a description about MLO.

    1.I creat a SBL_TEST project just as before and run correctly the app by using the SBL_TEST.out file.

    So I change the SBL_TEST.out into SBL_TEST.bin by using the 'objcopy tool' (located in C:\ti\ccsv6\tools\compiler\gcc-arm-none-eabi-4_9-2015q3\bin)

    2.Then I change the SBL_TEST.bin into MLO by using the 'objcopy tool' (located in C:\ti\pdk_am57xx_1_0_4\packages\ti\boot\sbl\tools\tiImageGen\bin)

    3.Last ,I test the MLO and app.But I can't get nothing from UART3 just like using the MLO this located in C:\ti\pdk_am57xx_1_0_4\packages\ti\boot\sbl\binary\evmAM572x\mmcsd\bin.

    4. Why ? I think the way to get a MLO described in the makefile is a right way.But the MLO can't run in SD card .Maybe the app is not fit  to the new MLO.My app is created by using the out2rprc and multicoreImageGen tools.

  • Hello,
    I have been trapped by this difficult problem about MLO for two weeks. Now I really your help.
    Please give me some advices about it as soon as possible. I'm looking forwad for your help.
    Thanks.
  • Gf li,

    Sorry for the delayed response. The E2E thread has been assigned to me but I am currently not able to spend time on this issue as I am in a workshop until Thursday. I will come back on Friday and provide a detailed response to your post:

    The MLO that is built in the SDK is built using makefile approach and not CCS:

    To build the SBL/MLO for SD/MMC for GP EVM, setup the SDK build environment and use the following command

    cd <PDK_INSTALL_PATH>/packages/ti/boot/sbl
    gmake all BOARD=evmAM572x SOC=AM572x BOOTMODE=mmcsd

    the Steps to build this using CCS were created using older version of the SDK and may need to be updated. The wiki only shows that the build can be replicated in CCS if required but not the preferred way.

    Please also review common steps to debug boot loader issues, that we have provided here:
    processors.wiki.ti.com/.../Processor_SDK_RTOS_Boot

    Ensure that there is no memory overlap between app and MLO and try to load the sbl.out over JTAG to confirm that it is working over emulation. If it is working over emulation then the boot image format is likely reason for the fail.

    Can you please indicate what application are you trying to boot or provide the .out and .map file for your application for our analysis.

    Regards,
    Rahul
  • Gf li,

    Sorry for the delayed response. The E2E thread has been assigned to me but I am currently not able to spend time on this issue as I am in a workshop until Thursday. I will come back on Friday and provide a detailed response to your post:

    The MLO that is built in the SDK is built using makefile approach and not CCS:

    To build the SBL/MLO for SD/MMC for GP EVM, setup the SDK build environment and use the following command

    cd <PDK_INSTALL_PATH>/packages/ti/boot/sbl
    gmake all BOARD=evmAM572x SOC=AM572x BOOTMODE=mmcsd

    the Steps to build this using CCS were created using older version of the SDK and may need to be updated. The wiki only shows that the build can be replicated in CCS if required but not the preferred way.

    Please also review common steps to debug boot loader issues, that we have provided here:
    processors.wiki.ti.com/.../Processor_SDK_RTOS_Boot

    Ensure that there is no memory overlap between app and MLO and try to load the sbl.out over JTAG to confirm that it is working over emulation. If it is working over emulation then the boot image format is likely reason for the fail.

    Can you please indicate what application are you trying to boot or provide the .out and .map file for your application for our analysis.

    Regards,
    Rahul
  • Thank you for your replay!It help me a lot.