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.

to know how to load and execute a binary in ccsv4

Other Parts Discussed in Thread: AM1707

Hello All,

Can we write an application in ccsv4 which copies the given executable binary file to a known location in the external SDRam and executes the binary copied to the SDRam.

Means the CCS application should copy the given binary file into the known location in the SDRam and should give the control to the binary so that the binary starts executing in SDRam.

I am using spectrum digital xds510 jtag emulator and am1707 processor based custom board.

If already such application is there, then please give that application.

 

Thanks in advance,

Best Regards,

Nidhi

 

  • Nidhi,

    Surely such application exists and it is commonly called as a bootloader - it is usually a small piece of software stored in flash memory that copies data from one place to another and delivers control to it. For AM1707 this software is usually comprised of a x-loader + u-boot combination, and it is provided by the SDK.

    A good starting point to use it is shown at:

    http://processors.wiki.ti.com/index.php/Getting_Started_With_the_AM17x_EVM

    Apart from allowing debugging this whole process, from a CCS standpoint there is not much else the tool itself does. Therefore I will move your post to the device forum so you can get additional insights about this process there.

    Hope this helps,

    Rafael

  • Nidhi,

     

        Let us know whether or not the Wiki article solves your inquery.

  • Hello Rafael,

    Thanks for the Reply.

    Yes I still know that there will be boot loader and it is useful, but I need a .out file in CCS which does the task of downloading the binary into sd ram and executes it.

    I mean,I need to do this entire task in ccs framework only i.e. the .out file when executed in ccs should download the file and give the control to binary.Then binary should start executing.

    The above mentioned action is something similar to SLH (Serial Loader Host) utility, which I want to implement from CCS.

     

    Best Regards,

    Nidhi

     

  • Hello Drew Abuan,

    Thanks for the Reply.

    The wiki article doesn't solve my inquery because I need a .out file in CCS which does the task of downloading the binary into sd ram and executes it.

    I mean,I need to do this entire task in ccs framework only i.e. the .out file when executed in ccs should download the file and give the control to binary.Then binary should start executing.

    The above mentioned action is something similar to SLH (Serial Loader Host) utility, which I want to implement from CCS.

    I think I can't get the answer for this query from wiki article.

     

    Best Regards,

    Nidhi

  • Sri,

     

    Thanks for the clarification. Unfortunately I'm not aware of such a .out file that currently exists for the CCS framework. I would suggest to search the wiki/forums to see if something is out there that suits your needs, however I'm sure you done a little of this already. I'm transferring this thread into the Code Composer Studio forum in case they are aware of something that I am not.

     

  • Are you saying that you need something that can parse the out file in order to load it into the appropriate SDRAM location?  If so, rather than trying to parse the out file I would recommend converting the out file to an easier format.  For example you can use the hex conversion utility to convert the out file into a much easier form.  Alternatively there is something called cg_xml which contains a perl script for turning an out file into a C array which can easily be loaded to memory.  See this thread for more details:

    cg_xml bootimage