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.

AM275-FREERTOS-SDK: genimage.py not generating .mcelf file

Part Number: AM275-FREERTOS-SDK

Hi TI, 

based on file:///C:/ti/freertos_sdk_am275x_11_01_00_16/docs/api_guide_am275x/TOOLS_FLASH.html#autotoc_md1523, 

I would like to use generate xaf_ut.mcelf file. For this I understand I need to use genimage.py which is there in C:\ti\freertos_sdk_am275x_11_01_00_16\tools\boot\multicoreELFImageGen\genimage.py. 

After compilation, I am able to generate the xaf_ut.out file but .mcelf file is not generated. 

This is the command I am passing for execution:

Run command: ['py', '-3', 'C:\\ssp_am275x\\bamboo\\ut\\..\\..\\tools\\ti_am275x_sdk\\sdk\\tools\\boot\\multicoreELFImageGen\\genimage.py', '--core-img', '5:C:\\ssp_am275x\\bamboo\\ut\\..\\..\\output\\apps\\c75\\release\\xaf_ut.out', '--output', 'C:\\ssp_am275x\\bamboo\\ut\\..\\..\\output\\apps\\c75\\release\\xaf_ut.mcelf', '--xip', '0x61000000:0x62000000', '--sw_version', '0x0B010010']

as seen in the git Bash prompt.

But the output log message give some erron. Basically, genimage.py is returning 1 when it should be 0. 

Traceback (most recent call last):
  File "C:\ssp_am275x\bamboo\ut\execute.py", line 844, in <module>
    main()
  File "C:\ssp_am275x\bamboo\ut\execute.py", line 810, in main
    generate_appimage(repo_dir_path, elf_dir_path, "xaf_ut.out", core_id)
  File "C:\ssp_am275x\bamboo\ut\execute.py", line 679, in generate_appimage
    raise ScriptError(f"Build appimage failed with return code: {process.returncode}")
utils.tools.ScriptError: Build appimage failed with return code: 1

Are the parameters xip and sw_version passed incorrect or some other issue?

Kindly advice.