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.

AWR1642BOOST: How to build one combined image for the AWR1642 from two separate DSS and MSS program?

Part Number: AWR1642BOOST

Hello everyone

I can use CCS to build and load the project to the DSS and MSS core. As I want to run the board without using CCS, so I am looking for a method to build one image file from two separated DSS and MSS program. I am aware that in the mmWave user guide, it mentions a way to build the image by using the command line. This method is too complex for me. Since I can successfully build the DSS and MSS project, but separately. Can you tell me a relative easy method to combine those two programs into one image?

I am using Windows 10.

Thanks in advance.

Xining

  • Xining,

    I tired below way to generate one bin file which can burn to spi flash based on two CCS project output files. Suppose the CCS project are located at C:\Users\xxx\workspace_v7\mss_mmw/C:\Users\xxx\workspace_v7\dss_mmw and output files are xwr16xx_mmw_demo_mss.xer4f/xwr16xx_mmw_demo_dss.xe674.

    1. generate bin file of R4F and DSP separately.
    1) Add below command in Post-build steps in R4F ccs project build option.
    C:\ti\mmwave_sdk_01_00_00_05\packages\scripts\ImageCreator\xwr16xx\out2rprc\out2rprc.exe xwr16xx_mmw_demo_mss.xer4f xwr16xx_mmw_demo_mss.bin
    2) Add below command in Post-build steps in DSP ccs project build option.
    C:\ti\mmwave_sdk_01_00_00_05\packages\scripts\ImageCreator\xwr16xx\out2rprc\out2rprc.exe xwr16xx_mmw_demo_dss.xe674 xwr16xx_mmw_demo_dss.bin
    After you build the project, the bin files will generate automatically. Or you just run the command in command line (make sure with right path).

    2. generate one bin files with two bins.
    1) run below commands under C:\ti\mmwave_sdk_01_00_00_05\packages\scripts\windows folder in command line.
    setenv_tools.bat
    mmwave_sdk_setupenv.bat
    2) In same command window, pls run below command to generate a bin file (e.g. metaImage.bin) which can burn to spi flash.
    generateMetaImage.bat metaImage.bin 0x01000005 C:\Users\xxx\workspace_v7\mss_mmw\Debug\xwr16xx_mmw_demo_mss.bin C:\ti\mmwave_sdk_01_00_00_05\firmware\radarss\xwr16xx_radarss_rprc.bin C:\Users\xxx\workspace_v7\dss_mmw\Debug\xwr16xx_mmw_demo_dss.bin
  • Hello Xining,

    Just attaching a batch file which does the same steps mentioned in Chris post .This can be used on any MSS and DSS ELF/Coff format binaries.

    image_create.bat
    REM 1. USAGE : $ image_create.bat <mss>.xer4f <dss>.xe674
    REM 2. Input the MSS and DSS ELF/COFF format files.
    REM 3. Copy this batch file(image_create.bat), <MSS>.xer4f, <DSS>.xe674, xwr16xx_radarss_rprc.bin($mmwave_sdk_01_00_00_05\firmware\radarss)
    REM       to $mmwave_sdk_01_00_00_05\packages\scripts\ImageCreator\xwr16xx
    REM 4. Output is the "metaImage.bin" that can be used to flash the device.
    
    cd out2rprc
    out2rprc.exe ..\%1 ..\mss_rprc.bin
    out2rprc.exe ..\%2 ..\dss_rprc.bin
    cd ..\
    cd multicore_image_generator
    MulticoreImageGen.exe LE 0 0x01000005 ..\metaImage.bin 0x35510000 ..\mss_rprc.bin 0xB5510000 ..\xwr16xx_radarss_rprc.bin 0xD5510000 ..\dss.bin
    cd ..\
    cd crc_multicore_image
    crc_multicore_image.exe ..\metaImage.bin 0
    cd ..\
    cd append_bin_crc
    gen_bincrc32.pl ..\metaImage.bin
    cd ..\
    

    Batch file usage : $ image_create.bat <mss>.xer4f <dss>.xe674


    Copy this batch file(image_create.bat), <MSS>.xer4f, <DSS>.xe674, xwr16xx_radarss_rprc.bin($mmwave_sdk_01_00_00_05\firmware\radarss)
    to $mmwave_sdk_01_00_00_05\packages\scripts\ImageCreator\xwr16xx


    Output is the "metaImage.bin" that can be used to flash the device.

    Thanks,

    Raghu

    ----------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.

    ----------------------------------------------------------------------------------------------------------

  • Thanks for your reply.
    The output file for my DSS project is ${ProjName}.out. However, you used <DSS>.xe674 to build up a bin file. Can I just change the filename extension to make it work?

    Thanks
    Xining
  • Thanks for your reply.

    One more question:
    The output file for my DSS project is *.out. Can I just change the filename extension to *.xe674 to make it work?

    Thanks
    Xining
  • Hello Xining,

    You can rename your DSS.out to DSS.xe674 and use the same image_create.bat to create the metaimage file.

    -Raghu
  • One small modification need in image_create.bat.

    org: MulticoreImageGen.exe LE 0 0x01000005 ..\metaImage.bin 0x35510000 ..\mss_rprc.bin 0xB5510000 ..\xwr16xx_radarss_rprc.bin 0xD5510000 ..\dss.bin

    Change to :MulticoreImageGen.exe LE 0 0x01000005 ..\metaImage.bin 0x35510000 ..\mss_rprc.bin 0xB5510000 ..\xwr16xx_radarss_rprc.bin 0xD5510000 ..\dss_rprc.bin