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.

CCS/awr1642: Flashing a new .bin file onto the radar

Part Number: AWR1642
Other Parts Discussed in Thread: UNIFLASH

Tool/software: Code Composer Studio

Hi everyone,

Due to unsatisfactory response on my question regarding the same topic I am asking this question again. I was previously pointed to a thread which had similar problem but the cause was totally different and that did not help. We wanted to do some changes in the mmw demo .c files , so we carried them out successfully in the debug mode and the radar works fine. However, when we try to upload the mmw_demo.bin file on the radar the file is uploaded and is of the same size as that of the original version. But when we try to send configuration from the Visualizer on to the radar we get no data on the console and the plots. We are using CCS 7.1, mmw_training 1.2.1. We also tried upgrading to CCS 7.2 but had installation issues on 2 different systems. 

Is there any way we could upload our very own bin file successfully onto the radar and get the radar function properly as well? because trying to run radar in debug mode every time is a very big hassle. 

Thank you. 

  • Hi Amol,

    I cannot comment about the other issues but someone from the mmWave group has been notified to take a look. But regarding you CCS install issue

    Amol Vagad said:
    We also tried upgrading to CCS 7.2 but had installation issues on 2 different systems. 

    Are you upgrading from 7.1. to 7.2? Or are you doing a full 7.2 installation? And if it is the latter, are you using the web installer or the full off-line zip installer?

    Thanks

    ki

  • Hello Amol,
    Apologize that you were not able to get a closure on your previous thread. Since you have raised the same query on this thread i will close the previous one (e2e.ti.com/.../2265103 for now and we can continue the debug on this thread.

    Regards,
    Vivek
  • Hi Ki-Soo,

    We tried upgrading CCS by doing the full 7.2 installation. For this particular application we used the off-line zip installer
  • Amol,
    Please see the below troubleshooting link regarding installation:
    processors.wiki.ti.com/.../Troubleshooting_CCSv7

    If the suggestions there does not help, please provide the install logs:
    processors.wiki.ti.com/.../Troubleshooting_CCSv7

    Thanks
    ki
  • Is it mandatory to have 7.2 version to upload a new .bin file on the device ?
  • Hi Amol,

    To answer your latest question, CCS 7.2 is not Mandatory to flash the .bin file as flashing is done with UNIFLASH anyway. However, you need CCS 7.2 with the latest version of mmWave Training (1.2.1) which is what we recommend. Please use the latest version of mmWave Training and upgrade to CCS 7.2 as well. Information on how to upgrade to the latest mmWave Training (in case you are not able to) is provided in this thread.

    Assuming that you have the above requirement satisfied, I would suggest two things.

    1. Can you please try flashing the pre-built binary file provided in the mmWave SDK 16xx demo (C:\ti\mmwave_sdk_01_00_00_05\packages\ti\demo\xwr16xx\mmw\xwr16xx_mmw_demo.bin) and check if that works? If the pre-built binary works fine, then the problem may be with your build, in which case move to step 2 below. Otherwise we know that the issue is with the Flashing procedure itself on your side, and in this case, please provide your UNIFLASH log and snapshot of the final screen.
    2. If Step-1 works for you, then please provide the complete CCS build log as shown in the thread below for your build.
      1. https://e2e.ti.com/support/sensor/mmwave_sensors/f/1023/p/614056/2264246#2264246

    -Nitin

  • Hi Nitin,

    Thank you for your response . We checked the build log file and found some pre-build and post-build errors which are ignored. The following is the build log. Can you suggest some methods to eliminate these errors ?

    **** Build of configuration Debug for project mmw ****
    
    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O 
    rm -f C:/Users/dev/workspace_v7/mmw/xwr16xx_mmw_mss.bin
    makefile:184: recipe for target 'pre-build' failed
    process_begin: CreateProcess(NULL, rm -f C:/Users/dev/workspace_v7/mmw/xwr16xx_mmw_mss.bin, ...) failed.
    make (e=2): The system cannot find the file specified.
    
    gmake[1]: [pre-build] Error 2 (ignored)
    ' '
    'Building file: ../mss_mmw.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_50_01_12_core/xs" --xdcpath="C:/ti/bios_6_50_01_12/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.R4F -p ti.platforms.cortexR:IWR16XX:false:200 -r release -c "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS" "../mss_mmw.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring mss_mmw.xer4f from package/cfg/mss_mmw_per4f.cfg ...
    generating custom ti.sysbios library makefile ... 
    Starting build of library sources ...
    making C:/Users/dev/workspace_v7/mmw/src/sysbios/sysbios.aer4f ...
    gmake[1]: Entering directory `C:/Users/dev/workspace_v7/mmw/src/sysbios'
    gmake[1]: Nothing to be done for `all'.
    gmake[1]: Leaving directory `C:/Users/dev/workspace_v7/mmw/src/sysbios'
    Build of libraries done.
    cler4f package/cfg/mss_mmw_per4f.c ...
    'Finished building: ../mss_mmw.cfg'
    ' '
    'Building file: ../cli.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/dev/workspace_v7/mmw" --include_path="C:/ti/mmwave_sdk_01_00_00_05/packages" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --define=SOC_XWR16XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="cli.d" --cmd_file="configPkg/compiler.opt" "../cli.c"
    'Finished building: ../cli.c'
    ' '
    'Building file: ../mss_main.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/dev/workspace_v7/mmw" --include_path="C:/ti/mmwave_sdk_01_00_00_05/packages" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --define=SOC_XWR16XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="mss_main.d" --cmd_file="configPkg/compiler.opt" "../mss_main.c"
    'Finished building: ../mss_main.c'
    ' '
    'Building target: xwr16xx_mmw_mss.xer4f'
    'Invoking: ARM Linker'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --define=SOC_XWR16XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi -z -m"xwr16xx_mmw_mss.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/control/mmwave/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/control/mmwavelink/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/crc/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/esm/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/gpio/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/mailbox/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/osal/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/pinmux/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/soc/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/drivers/uart/lib" -i"C:/ti/mmwave_sdk_01_00_00_05/packages/ti/utils/cli/lib" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/lib" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --reread_libs --disable_auto_rts --diag_warning=225 --diag_wrap=off --display_error_number --warn_sections --xml_link_info="xwr16xx_mmw_mss_linkInfo.xml" --rom_model --unused_section_elimination=on -o "xwr16xx_mmw_mss.xer4f" "./cli.obj" "./mss_main.obj" "../mss_mmw_linker.cmd" "../r4f_linker.cmd" -l"configPkg/linker.cmd" -llibosal_xwr16xx.aer4f -llibesm_xwr16xx.aer4f -llibgpio_xwr16xx.aer4f -llibsoc_xwr16xx.aer4f -llibpinmux_xwr16xx.aer4f -llibcrc_xwr16xx.aer4f -llibuart_xwr16xx.aer4f -llibmailbox_xwr16xx.aer4f -llibmmwavelink_xwr16xx.aer4f -llibmmwave_xwr16xx.aer4f -llibcli_xwr16xx.aer4f -lrtsv7R4_T_le_v3D16_eabi.lib -llibc.a 
    <Linking>
    'Finished building target: xwr16xx_mmw_mss.xer4f'
    ' '
    C:/ti/mmwave_sdk_01_00_00_05/packages/scripts/ImageCreator/xwr16xx/out2rprc/out2rprc.exe xwr16xx_mmw_mss.xer4f xwr16xx_mmw_mss.bin
    Parsing the input object file, xwr16xx_mmw_mss.xer4f.
    Appending zeros 0
    Appending zeros 256
    File conversion complete!
    C:/ti/mmwave_sdk_01_00_00_05/packages/scripts/ImageCreator/xwr16xx/multicore_image_generator/MulticoreImageGen.exe LE 37 0x01000005 xwr16xx_mmw.bin 0x35510000 xwr16xx_mmw_mss.bin 0xb5510000 C:/ti/mmwave_sdk_01_00_00_05/firmware/radarss/xwr16xx_radarss_rprc.bin 0xd5510000 C:/Users/dev/workspace_v7/mmw_dss/Debug/xwr16xx_mmw_dss.bin
    Number of Input Files 3
    Number of zeros 48
    Number of zeros 8
    Number of zeros 24
    
    C:/ti/mmwave_sdk_01_00_00_05/packages/scripts/ImageCreator/xwr16xx/crc_multicore_image/crc_multicore_image.exe xwr16xx_mmw.bin xwr16xx_mmw.bin.tmp
    size of App Image is 412288 bytes
    cur_crc_read_addr 128
    cur_crc_read_addr 103040
    cur_crc_read_addr 239232
    Failed to remove CRC temp file
    
    perl.exe C:/ti/mmwave_sdk_01_00_00_05/packages/scripts/ImageCreator/xwr16xx/append_bin_crc/gen_bincrc32.pl xwr16xx_mmw.bin
    makefile:188: recipe for target 'post-build' failed
    process_begin: CreateProcess(NULL, perl.exe C:/ti/mmwave_sdk_01_00_00_05/packages/scripts/ImageCreator/xwr16xx/append_bin_crc/gen_bincrc32.pl xwr16xx_mmw.bin, ...) failed.
    make (e=2): The system cannot find the file specified.
    
    gmake[3]: [post-build] Error 2 (ignored)
    ' '
    
    **** Build Finished ****
    

  • Amol,

    The pre-build step failure is harmless and simply indicating that it couldn't delete the (previous) .bin file, this is done just for safety so that if the post-build step is unable to generate the new .bin file, as in your case, the user doesn't end up using the old .bin file.

    From the post-build step failure, it appears that CCS was not able to find perl.exe on your system. Please look at the following thread and ensure that the right version of perl is installed and is executable from the Windows Shell (i.e. it is in the Windows search path), and also that CRC.pm is downloaded in the correct directory.

    e2e.ti.com/.../615105

    -Nitin