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.

out file execution in sys bios

Hi,

My requirement is to execute a ".out" file (EABI ELF) compiled using Code Composer Studio ( V5 and above). The compiled file will be loaded in DDR and need to interpret the elf file and execute it. Once the execution is complete, it need to return to main process which will again load a elf file in DDR and execute it.

Is there any API like (fork in linux) to load and execute an elf file and return to main thread.

Regards,

Senthil Kumar.G

  • Hi Senthil,

    Unfortunately, SYS/BIOS does not have an API to branch/return to another application.  However, it is possible to write SYS/BIOS applications such that you can jump from one to another.  

    The first step is to create a platform and set some address ranges which will only be used by your SYS/BIOS application (no other application should use this area).

    Secondly you set the applications .c_int00 to a fixed address, this can be configured in the application *.cfg file (see the following link for more details: link).  By fixing .c_int00 your applications now have a fixed point to jump to.

    Next just modify your code to jump to the other applications fixed .c_int00 address.

    Hope this helps,

    -- Emmanuel