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.

IWRL6432: Segmentation fault when building project with Linux CCS

Part Number: IWRL6432
Other Parts Discussed in Thread: MMWAVE-L-SDK, SYSCONFIG

Hi Team,

I got segmentation fault when building project with Linux CCS. Could you advise how to debug this issue?

Building target: "motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang.out"
Invoking: Arm Linker
"/home/vivint/ti/ti-cgt-armllvm_2.1.3.LTS/bin/tiarmclang" -mcpu=cortex-m4 -mfloat-abi=hard -mlittle-endian -mthumb -DSOC_XWRL64XX -DGTRACK_3D=1 -DTRACKER_MAX_NUM_TR=10 -D_DEBUG_=1 -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -mno-unaligned-access -Wl,-m"motion_and_presence_detection_demo.Debug.map" -Wl,-i"/builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden" -Wl,-i"/builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/source/alg/gtrack/lib" -Wl,-i"/builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/source/alg/featExtract/spectrumBased/lib" -Wl,-i"/builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/source/alg/classifier/targetClassifier/lib" -Wl,-i"/builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/source/kernel/freertos/lib" -Wl,-i"/builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/source/drivers/lib" -Wl,-i"/builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/source/datapath/lib" -Wl,-i"/builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/source/board/lib" -Wl,-i"/builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/source/control/lib" -Wl,-i"/builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/source/utils/lib" -Wl,-i"/builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/firmware/mmwave_dfp/mmwavelink/lib/xWRLx432" -Wl,-i"/builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/firmware/mmwave_dfp/fecsslib/lib/xWRLx432" -Wl,-i"/home/vivint/ti/ti-cgt-armllvm_2.1.3.LTS/lib" -Wl,--reread_libs -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang_linkInfo.xml" -Wl,--ram_model -o "motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang.out" "./common_full.o" "./syscfg/ti_dpl_config.o" "./syscfg/ti_drivers_config.o" "./syscfg/ti_drivers_open_close.o" "./syscfg/ti_pinmux_config.o" "./syscfg/ti_power_clock_config.o" "./syscfg/ti_board_config.o" "./syscfg/ti_board_open_close.o" "./main.o" "./mmw_cli.o" "./mmw_flash.o" "./motion_detect.o" "./tracker_utils.o" "/builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/examples/mmw_demo/motion_and_presence_detection/xwrL64xx-evm/m4fss0-0_freertos/ti-arm-clang/linker.cmd"  -Wl,-lalg_gtrack3d.xwrL64xx.m4f.ti-arm-clang.debug.lib -Wl,-lalg_featExtract.xwrL64xx.m4f.ti-arm-clang.debug.lib -Wl,-lalg_classifier.xwrL64xx.m4f.ti-arm-clang.debug.lib -Wl,-lfreertos.xwrL64xx.m4f.ti-arm-clang.debug.lib -Wl,-ldatapath_tracker3d.xwrL64xx.m4f.ti-arm-clang.debug.lib -Wl,-ldrivers.xwrL64xx.m4f.ti-arm-clang.debug.lib -Wl,-lboard.xwrL64xx.m4f.ti-arm-clang.debug.lib -Wl,-lcontrol.xwrL64xx.m4f.ti-arm-clang.debug.lib -Wl,-lutils.xwrL64xx.m4f.ti-arm-clang.debug.lib -Wl,-lmmwavelink_m4.lib -Wl,-lfecss_rom_m4.lib -Wl,-llibc.a 
Finished building target: "motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang.out"
 
/home/vivint/ti/ccs1250/ccs/utils/bin/gmake -C /builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang -f makefile_ccs_bootimage_gen OUTNAME=motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang PROFILE=Debug MCU_PLUS_SDK_PATH=/builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden CG_TOOL_ROOT=/home/vivint/ti/ti-cgt-armllvm_2.1.3.LTS CCS_INSTALL_DIR=/home/vivint/ti/ccs1250/ccs CCS_IDE_MODE=desktop
Boot image: xwrL64xx:m4fss0-0:freertos:ti-arm-clang ...
mono /builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/tools/boot/out2rprc/out2rprc Debug/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang.out motion_and_presence_detection_demo.Debug_rprc.bin >> Debug/temp_stdout_Debug.txt
/builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/tools/boot/multicoreImageGen/MulticoreImageGen LE 0 0x400000 0 /builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang/Debug/motion_and_presence_detection_demo.Debug.appimage 0x35510000 motion_and_presence_detection_demo.Debug_rprc.bin 0xb5510000 /builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/firmware/mmwave_dfp/rfsfirmware/xWRL6432/mmwave_rfs_rprc.bin >> Debug/temp_stdout_Debug.txt
/builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/tools/boot/crcMulticoreImageGen/crcMulticoreimage /builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang/Debug/motion_and_presence_detection_demo.Debug.appimage motion_and_presence_detection_demo.Debug_temp.appimage >> Debug/temp_stdout_Debug.txt
makefile_ccs_bootimage_gen:55: recipe for target 'all' failed
Segmentation fault (core dumped)
gmake[3]: *** [all] Error 139
gmake[2]: [post-build] Error 2 (ignored)
makefile:173: recipe for target 'post-build' failed
 

**** Build Finished ****
  • Hello, 

    I have some questions to help me better understand the issue. 

    1. What version of the mmWave L SDK is used? 

    2. Are you simply trying to rebuild the example project as is? Or have you made some custom modifications to the example project?

    Best Regards,

    Josh

  • Hi Josh,

    I am using MMWAVE_L_SDK_05_03_03_00 with ccs1250.

    I can rebuild the example project without issue. My own project was based on "motion_and_presence_detection" and add modification. And per logs, compliing is passed but fail at boot image phase.

    Let me know.

    Thanks

    Brad

  • Thanks Brad, 

    Can you let me know a bit about the extent of your modifications? For example, are all the modifications confined to within the application code? Have you modified the file makefile_ccs_bootimage_gen for changing the shared memory setting, etc..? 

    Best Regards,

    Josh

  • Hi Josh,

    Yes, I have modified makefile_ccs_bootimage_gen. Please find diff screen below. Left side is SDK original, right side is my modification. You think it affect the result?

  • Hi Josh,

    I have modified the makefile_ccs_bootimage_gen, disable AUTH part. Please check.

    #
    # Auto generated makefile
    #

    # Below variables need to be defined outside this file or via command line
    # - MCU_PLUS_SDK_PATH
    # - PROFILE
    # - CG_TOOL_ROOT
    # - OUTNAME
    # - CCS_INSTALL_DIR
    # - CCS_IDE_MODE

    CCS_PATH=$(CCS_INSTALL_DIR)
    include $(MCU_PLUS_SDK_PATH)/imports.mak

    STRIP=$(CG_TOOL_ROOT)/bin/tiarmstrip
    OBJCOPY=$(CG_TOOL_ROOT)/bin/tiarmobjcopy

    OUTFILE=$(PROFILE)/$(OUTNAME).out
    BOOTIMAGE_PATH=$(abspath ${PROFILE})
    BOOTIMAGE_BIN_NAME:=$(BOOTIMAGE_PATH)/motion_and_presence_detection_demo.$(PROFILE).appimage
    BOOTIMAGE_BIN_TEMP:=motion_and_presence_detection_demo.$(PROFILE)_temp.appimage
    BOOTIMAGE_RPRC_NAME_TMP:=motion_and_presence_detection_demo.$(PROFILE)_rprc.bin
    BSS_RPRC_BIN:=$(MMW_DFP_PATH)/rfsfirmware/xWRL6432/mmwave_rfs_rprc.bin

    #
    # Generation of boot image which can be loaded by ROM Boot Loader (RBL)
    #
    ifeq ($(OS),Windows_NT)
    EXE_EXT=.exe
    endif
    ifeq ($(OS),Windows_NT)
    BOOTIMAGE_CERT_GEN_CMD=powershell -executionpolicy unrestricted -command $(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.ps1
    else
    BOOTIMAGE_CERT_GEN_CMD=$(MCU_PLUS_SDK_PATH)/tools/boot/signing/x509CertificateGen.sh
    endif
    BOOTIMAGE_TEMP_OUT_FILE=$(PROFILE)/temp_stdout_$(PROFILE).txt

    OUTRPRC_PATH=$(MCU_PLUS_SDK_PATH)/tools/boot/out2rprc/out2rprc$(EXE_EXT)
    MULTI_CORE_IMAGE_GEN=$(MCU_PLUS_SDK_PATH)/tools/boot/multicoreImageGen/MulticoreImageGen$(EXE_EXT)
    CRC_MULTI_CORE_IMAGE_GEN=$(MCU_PLUS_SDK_PATH)/tools/boot/crcMulticoreImageGen/crcMulticoreimage$(EXE_EXT)
    APPEND_CRC=$(MCU_PLUS_SDK_PATH)/tools/boot/appendBinCrc/appendBinCrc$(EXE_EXT)


    BOOT_MODE=0
    BOOT_VECTOR_ADDRESS=0x400000
    SH_MEM_CONFIG=0
    APPS_FLAGS=0x35510000
    RFS_FLAGS=0xb5510000

    all:
    ifeq ($(CCS_IDE_MODE),cloud)
    # No post build steps
    else
    @echo Boot image: xwrL64xx:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) ...
    $(OUTRPRC_PATH) $(OUTFILE) $(BOOTIMAGE_RPRC_NAME_TMP) >> $(BOOTIMAGE_TEMP_OUT_FILE)
    $(MULTI_CORE_IMAGE_GEN) LE $(BOOT_MODE) $(BOOT_VECTOR_ADDRESS) $(SH_MEM_CONFIG) $(BOOTIMAGE_BIN_NAME) $(APPS_FLAGS) $(BOOTIMAGE_RPRC_NAME_TMP) $(RFS_FLAGS) $(BSS_RPRC_BIN) >> $(BOOTIMAGE_TEMP_OUT_FILE)
    $(CRC_MULTI_CORE_IMAGE_GEN) $(BOOTIMAGE_BIN_NAME) $(BOOTIMAGE_BIN_TEMP) >> $(BOOTIMAGE_TEMP_OUT_FILE)
    $(APPEND_CRC) $(BOOTIMAGE_BIN_NAME) >> $(BOOTIMAGE_TEMP_OUT_FILE)
    $(RM) $(BOOTIMAGE_TEMP_OUT_FILE)
    $(RM) $(BOOTIMAGE_BIN_TEMP)
    $(RM) $(BOOTIMAGE_RPRC_NAME_TMP)
    @echo Boot image: xwrL64xx:m4fss0-0:freertos:ti-arm-clang $(BOOTIMAGE_NAME) Done !!!
    @echo .
    endif

  • Hi Brad, 

    Thank you. Those changes should be okay. Can you confirm if you have installed Mono Runtime? This is a required step for creating application binaries in a linux environment. 

    These instructions can be found in the SDK documentation at {SDK_INSTALL_DIR/docs/api_guide_xwrL64xx/SDK_DOWNLOAD_PAGE.html

    Best Regards,

    Josh

  • Hi Josh,

    Yes, I confirm mono was installed. I can build original example project without issue. But I don't know why does it build fail with my modification. My ccs project files was generated on Windows. Does it affect the result?

    Thanks

    Brad

  • Hi Brad, 

    Thanks for the confirmation. Have you been able to check if the same project which fails to build in Linux CCS is successful on Windows OS? 

    Best Regards,

    Josh

  • Hi Josh,

    The project build pass with Windows CCS but fail with Linux CCS.

    Thanks

    Brad

  • Hi Brad, 

    Thank you. I have not seen this issue before with any mmWave radar projects. I need to reach out to some other groups at TI and see if they have seen this issue before with Windows vs Linux CCS. Please give me a few days to get back to you. Thank you for your patience. 

    Best Regards,

    Josh

  • Hi Josh,

    How is things going? Could you kindly let me know?

    Thanks

    Brad

  • Hi Brad, 

    My apologies for the delay. Unfortunately I do not have any update for you at the moment but I am still looking into this issue. 

    Can you also let me know what linux distribution you are running? These are the official versions supported by CCS 12.5:

    Can you also let me know more about the impact of this issuue on your project? Is it practical for you to perform the build on Windows?  Is your project at production stop due to this issue?

    Thanks and Regards,

    Josh

  • Hi Josh,

    Sorry for the late response due to holidays in Taiwan. My Linux distribution is Ubuntu18.04 64bit

    The reason I build with linux was due to, my customer and my team both need to use Linux for alignment. So I cannot use Windows.

    The issue blocks my CI/CD pipeline on Gitlab.

    The project is not at production yet.

    Thanks

    Brad

  • Hi Brad, 

    Thank you. I understand the importance of this issue for you. There should have been a temporary text file generated during the build named "temp_stdout_Debug.txt" can you please share this file?

    Best Regards,

    Josh

  • Hi Josh,

    I cannot find the file you need. Could you advise the path that I can find it?

    Thanks

    Brad

  • Hi Brad, 

    the log file should be present in the build directory. Since you are using CCS it should be found within the project in your CCS workspace. Based on the console message you provided earlier I believe it should be located at the directory /builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang/Debug. 

    Regards,

    Josh

  • Hi Josh,

    Sorry late reply. I have been trying to get the file content from docker. Here is file dump by xxd command.

    00000000: 5061 7273 696e 6720 7468 6520 696e 7075  Parsing the inpu
    00000010: 7420 6f62 6a65 6374 2066 696c 652c 2044  t object file, D
    00000020: 6562 7567 2f6d 6f74 696f 6e5f 616e 645f  ebug/motion_and_
    00000030: 7072 6573 656e 6365 5f64 6574 6563 7469  presence_detecti
    00000040: 6f6e 5f64 656d 6f5f 7877 724c 3634 7878  on_demo_xwrL64xx
    00000050: 2d65 766d 5f6d 3466 7373 302d 305f 6672  -evm_m4fss0-0_fr
    00000060: 6565 7274 6f73 5f74 692d 6172 6d2d 636c  eertos_ti-arm-cl
    00000070: 616e 672e 6f75 742e 0a41 7070 656e 6469  ang.out..Appendi
    00000080: 6e67 207a 6572 6f73 2034 3730 3130 3136  ng zeros 4701016
    00000090: 0a46 696c 6520 636f 6e76 6572 7369 6f6e  .File conversion
    000000a0: 2063 6f6d 706c 6574 6521 0a4e 756d 6265   complete!.Numbe
    000000b0: 7220 6f66 2049 6e70 7574 2046 696c 6573  r of Input Files
    000000c0: 2032 0a45 7272 6f72 206f 7065 6e69 6e67   2.Error opening
    000000d0: 2069 6e70 7574 2069 6d61 6765 2066 696c   input image fil
    000000e0: 6521 202f 6275 696c 6473 2f72 6164 6172  e! /builds/radar
    000000f0: 5f72 7330 312f 6862 2f63 6f70 792d 6f66  _rs01/hb/copy-of
    00000100: 2d68 756d 6d69 6e67 6269 7264 2d72 6164  -hummingbird-rad
    00000110: 6172 2d6f 6e2d 776e 632f 7072 6f6a 6563  ar-on-wnc/projec
    00000120: 742f 7469 5f36 3433 325f 6170 705f 676f  t/ti_6432_app_go
    00000130: 6c64 656e 2f66 6972 6d77 6172 652f 6d6d  lden/firmware/mm
    00000140: 7761 7665 5f64 6670 2f72 6673 6669 726d  wave_dfp/rfsfirm
    00000150: 7761 7265 2f78 5752 4c36 3433 322f 6d6d  ware/xWRL6432/mm
    00000160: 7761 7665 5f72 6673 5f72 7072 632e 6269  wave_rfs_rprc.bi
    00000170: 6e0a 4e75 6d62 6572 206f 6620 7a65 726f  n.Number of zero
    00000180: 7320 3536 0a0a                           s 56..
  • Thanks Brad, 

    This seems to confirm that the failure is happening during the MulticoreImageGen process. I am contacting our SDK team regarding this issue and will try to get back to you in 1-2 days with an update. 

    Best Regards,

    Josh

  • Brad, 

    Can you also please confirm that the file "mmwave_rfs_rprc.bin" is present at the specified directory? In your case it seems it should be located at "/builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/firmware/mmwave_dfp/rfsfirmware/xWRL6432/"

    Best Regards,

    Josh

  • Hi Josh,

    Yes, the file is present when building project fail.

    ls -la ./project/ti_6432_app_golden/firmware/mmwave_dfp/rfsfirmware/xWRL6432

    drwxrwxrwx 2 vivint vivint    67 Apr 18 20:51 .
    drwxrwxrwx 3 vivint vivint    22 Apr 17 21:05 ..
    -rw-rw-rw- 1 vivint vivint 16384 Apr 18 20:51 mmwave_rfs_patch.bin
    -rw-rw-rw- 1 vivint vivint  2496 Apr 18 20:51 mmwave_rfs_patch_rprc.bin

    Thanks
    Brad
  • Hi Josh,

    Could you let me know if you get information from SDK team?

    Thanks

    Brad

  • Hi Josh,

    I am waiting for update from you. Kindly let me if any news. This issue is critical for me.

    Thanks

    Brad

  • Hi Josh,

    Could you please update current progress?

    Thanks

    Brad

  • Hi Brad, 

    My sincere apologies for the delay here. I have been out of office and it seems your post was not appropriately handled during my absence. From my understanding we have still not been able to reproduce your issue or identify the root cause of it. To take a step back, I wanted to ask if you have tried uninstalling and re installing the SDK itself? Furthermore, can you verily the required build tools are present at the following paths and the files have execute permissions? 

    • appendBinCrc - {SDK_INSTALL}/tools/boot/appendBinCrc
    • multicoreImageGen - {SDK_INSTALL}/tools/boot/multicoreImageGen
    • crcMulticoreImage - {SDK_INSTALL}/tools/boot/crcMulticoreImageGen

    Best Regards,

    Josh

  • Hi Josh,

    Thank you updating the thread. I wish I could share how to reproduce the issue with you. But this issue is kind of random. And yes I tried uninstalling and installing SDK. And I am able to reprouce the issue on different PC. For files under paths that you share, I do give execute permission, otherwise CCS will complain about permission error.

    Thanks

    Brad

  • Hi Brad, 

    We are still looking into this issue. Thank you for your patience. 

    Can you please confirm that you have installed the linux version of the SDK? Also can you let me know if you have experienced the same issue with a previous version of the sdk or if you have only noticed the issue with SDK 5.4?

    Regards,

    Josh

  • Hi Josh,

    I encountered the issue with Windows SDK 5.3.3.0.

    I will try if SDK5.4 have the same issue or not.

    Thanks

    Brad

  • Hi Josh,

    I tried Linux SDK5.4.0.1. Not like before. It does not fail at MulticoreImageGen, now it fail at appendBinCrc. Please check logs below.

    /home/vivint/ti/ccs1250/ccs/utils/bin/gmake -C /builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/_project/ti_6432_app_golden/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang -f makefile_ccs_bootimage_gen OUTNAME=motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang PROFILE=Release MCU_PLUS_SDK_PATH=/builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/_project/ti_6432_app_golden CG_TOOL_ROOT=/home/vivint/ti/ti-cgt-armllvm_2.1.3.LTS CCS_INSTALL_DIR=/home/vivint/ti/ccs1250/ccs CCS_IDE_MODE=desktop
    Boot image: xwrL64xx:m4fss0-0:freertos:ti-arm-clang ...
    mono /builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/_project/ti_6432_app_golden/tools/boot/out2rprc/out2rprc.exe Release/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang.out motion_and_presence_detection_demo.Release_rprc.bin >> Release/temp_stdout_Release.txt
    /builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/_project/ti_6432_app_golden/tools/boot/multicoreImageGen/MulticoreImageGen LE 0 0x400000 0 /builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/_project/ti_6432_app_golden/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang/Release/motion_and_presence_detection_demo.Release.appimage 0x35510000 motion_and_presence_detection_demo.Release_rprc.bin 0xb5510000 /builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/_project/ti_6432_app_golden/firmware/mmwave_dfp/rfsfirmware/xWRL6432/mmwave_rfs_patch_rprc.bin >> Release/temp_stdout_Release.txt
    /builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/_project/ti_6432_app_golden/tools/boot/crcMulticoreImageGen/crcMulticoreimage /builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/_project/ti_6432_app_golden/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang/Release/motion_and_presence_detection_demo.Release.appimage motion_and_presence_detection_demo.Release_temp.appimage >> Release/temp_stdout_Release.txt
    bfore
    /builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/_project/ti_6432_app_golden/tools/boot/appendBinCrc/appendBinCrc /builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/_project/ti_6432_app_golden/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang/Release/motion_and_presence_detection_demo.Release.appimage >> Release/temp_stdout_Release.txt
    makefile_ccs_bootimage_gen:72: recipe for target 'all' failed
    gmake[3]: *** [all] Error 1
    gmake[2]: [post-build] Error 2 (ignored)
    makefile:182: recipe for target 'post-build' failed
  • Brad, 

    Thank you for the update. Can you again let me know the content of temp_stdout_Release.txt when the error happens? Can you also please make sure that the files under {SDK_INSTALL}/tools/boot have execute permissions after you re installed the SDK? Also have you tried rebuilding the demo code directly from makefiles (make) instead of using CCS? The process for doing this can be found on this page (xWRL6432 MMWAVE-L-SDK: Using SDK with Makefiles (ti.com))

    Best Regards,

    Josh

  • Hi Josh,

    I confirmed files under tools/boot have execute permission.

    The reason I use CCS is because my customer is using CCS but not makefile. To avoid un-sync issue, so I have to follow with CCS. Makefile method works fine but that is not my goal.

    Attached content of temp_stdout_Release.txt for your reference. It looks like tools cannot open appimage? 

    /********************************** contain of temp_stdout_Release.txt ***********************************************************************/

    Parsing the input object file, Release/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang.out.

    649Appending zeros 4587520
    650Appending zeros 4626928
    651File conversion complete!
    652Number of Input Files 2
    653Number of zeros 40
    654Number of zeros 24
    655size of App Image is 220800 bytes
    656cur_crc_read_addr 128
    657cur_crc_read_addr 217728
    658Error opening file /builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/_project/ti_6432_app_golden/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang/Release/motion_and_presence_detection_demo.Release.appimage!!!
    /***************************************************************************************************************************************************/
    Thanks
    Brad
  • Hi Josh,

    I checked further. When it fail, it does not contain appimage in target dir. So it look like appimage was not generated in previous step?

    /**********************************************************************************************************************************************************/

    ls -la /builds/radar_rs01/hb/copy-of-hummingbird-radar-on-wnc/_project/ti_6432_app_golden/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang/Release/

    total 4308
    drwxr-xr-x 3 vivint vivint    4096 Jun  7 00:07 .
    drwxrwxrwx 6 vivint vivint     327 Jun  7 00:07 ..
    -rw-r--r-- 1 vivint vivint   36271 Jun  7 00:07 ADC_testbuf.d
    -rw-r--r-- 1 vivint vivint   19544 Jun  7 00:07 ADC_testbuf.o
    -rw-r--r-- 1 vivint vivint    1207 Jun  7 00:07 ccsObjs.opt
    -rw-r--r-- 1 vivint vivint   38159 Jun  7 00:07 dpc.d
    -rw-r--r-- 1 vivint vivint   95284 Jun  7 00:07 dpc.o
    -rw-r--r-- 1 vivint vivint   36604 Jun  7 00:07 factory_cal.d
    -rw-r--r-- 1 vivint vivint   12860 Jun  7 00:07 factory_cal.o
    -rw-r--r-- 1 vivint vivint   36861 Jun  7 00:07 interrupts.d
    -rw-r--r-- 1 vivint vivint   34112 Jun  7 00:07 interrupts.o
    -rw-r--r-- 1 vivint vivint   21382 Jun  7 00:07 main.d
    -rw-r--r-- 1 vivint vivint    5396 Jun  7 00:07 main.o
    -rw-r--r-- 1 vivint vivint    8181 Jun  7 00:07 makefile
    -rw-r--r-- 1 vivint vivint   37611 Jun  7 00:07 mmw_cli.d
    -rw-r--r-- 1 vivint vivint  161256 Jun  7 00:07 mmw_cli.o
    -rw-r--r-- 1 vivint vivint   35744 Jun  7 00:07 mmw_demo_utils.d
    -rw-r--r-- 1 vivint vivint    5372 Jun  7 00:07 mmw_demo_utils.o
    -rw-r--r-- 1 vivint vivint   19393 Jun  7 00:07 mmw_flash_cal.d
    -rw-r--r-- 1 vivint vivint    7356 Jun  7 00:07 mmw_flash_cal.o
    -rw-r--r-- 1 vivint vivint   33757 Jun  7 00:07 mmwave_control_config.d
    -rw-r--r-- 1 vivint vivint   21408 Jun  7 00:07 mmwave_control_config.o
    -rw-r--r-- 1 vivint vivint   36084 Jun  7 00:07 monitors.d
    -rw-r--r-- 1 vivint vivint    4292 Jun  7 00:07 monitors.o
    -rw-r--r-- 1 vivint vivint  299276 Jun  7 00:07 motion_and_presence_detection_demo.Release.map
    -rw-r--r-- 1 vivint vivint 1930336 Jun  7 00:07 motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang.out
    -rw-r--r-- 1 vivint vivint 1040975 Jun  7 00:07 motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang_linkInfo.xml
    -rw-r--r-- 1 vivint vivint   40832 Jun  7 00:07 motion_detect.d
    -rw-r--r-- 1 vivint vivint   82428 Jun  7 00:07 motion_detect.o
    -rw-r--r-- 1 vivint vivint     812 Jun  7 00:07 objects.mk
    -rw-r--r-- 1 vivint vivint   38695 Jun  7 00:07 power_management.d
    -rw-r--r-- 1 vivint vivint   21508 Jun  7 00:07 power_management.o
    -rw-r--r-- 1 vivint vivint   35753 Jun  7 00:07 range_phase_bias_measurement.d
    -rw-r--r-- 1 vivint vivint   10068 Jun  7 00:07 range_phase_bias_measurement.o
    -rw-r--r-- 1 vivint vivint    2205 Jun  7 00:07 sources.mk
    -rw-r--r-- 1 vivint vivint   42565 Jun  7 00:07 subdir_rules.mk
    -rw-r--r-- 1 vivint vivint    9120 Jun  7 00:07 subdir_vars.mk
    drwxr-xr-x 2 vivint vivint    4096 Jun  7 00:07 syscfg
    -rw-r--r-- 1 vivint vivint     586 Jun  7 00:07 temp_stdout_Release.txt
    -rw-r--r-- 1 vivint vivint   33820 Jun  7 00:07 tracker_utils.d
    -rw-r--r-- 1 vivint vivint   20168 Jun  7 00:07 tracker_utils.o
  • Brad, 

    Are you still facing this issue? Here are the full steps which are working for me in a fresh ubuntu 22.04 setup. 

    Download CCS 12.7.1 from ti.com. 

    Download MMWAVE-L-SDK 5.04.00.01 from ti.com.

    Download Sysconfig_1.17 from ti.com.

    Download ARM-CGT-CLANG 2.1.3.LTS from ti.com

    sudo apt-get update

    sudo apt-get upgrade

    sudo apt-get install libpython2.7
    sudo apt-get install libtinfo5

    sudo apt-get install libusb-0.1
    sudo apt-get install libgconf-2-4

    sudo apt-get install libc6-i386

    sudo dpkg --add-architecture i386

    tar -xf CCS12.7.1.00001_linux-x64.tar.gz

    ./ccs_setup_12.7.1.00001.run (select mmwave sensors component during install process) (install at ~/ti)

    chmod +x MMWAVE_L_SDK_05_04_00_01-Linux-x86-Install.bin
    ./MMWAVE_L_SDK_05_04_00_01-LTS-Linux-x86-Install.bin (install at ~/ti)

    chmod +x sysconfig-1.17.0_3128-setup.run

    ./sysconfig-1.17.0_3128-setup.run (install at ~/ti)

    cp ~/ti/MMWAVE_L_SDK_05_04_00_01/tools/syscfg_deviceData/devices.json ~/ti/sysconfig_1.17.0/dist/deviceData/

    cp -r ~/ti/MMWAVE_L_SDK_05_04_00_01/tools/syscfg_deviceData/XWRL14XX/ ~/ti/sysconfig_1.17.0/dist/deviceData/

    cp -r ~/ti/MMWAVE_L_SDK_05_04_00_01/tools/syscfg_deviceData/XWRL64XX/ ~/ti/sysconfig_1.17.0/dist/deviceData/

    chmod +x ti_cgt_armllvm_2.1.3.LTS_linux-x64_installer.bin

    ./ti_cgt_armllvm_2.1.3.LTS_linux-x64_installer.bin (install at ~/ti)

    sudo apt-get install mono-runtime

    Then rename the file ~/ti/MMWAVE_L_SDK_05_04_00_01/tools/boot/out2rprc/out2rprc.exe -> out2rprc (remove the .exe extension)

    chmod +x MMWAVE_L_SDK_05_04_00_01/tools/boot/out2rprc/out2rprc

    Then import the motion and presence detection example from the SDK to CCS.

    Then replace the makefile_ccs_bootimage_gen with the modified version you provided.

    Then build and the boot image is successfully created.

    Are you able to give the above steps a try with a fresh setup?

    Best Regards,

    Josh

  • Hi Josh,

    I still see error after performing your steps. Please check the logs. Thank you.

    /******************************************************************************************************************/

    /build/gitlab-runner/ti/ccs1271/ccs/utils/bin/gmake -C /build/gitlab-runner/HB3/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang -f makefile_ccs_bootimage_gen OUTNAME=motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang PROFILE=Release MCU_PLUS_SDK_PATH=/build/gitlab-runner/ti/MMWAVE_L_SDK_05_04_00_01 CG_TOOL_ROOT=/build/gitlab-runner/ti/ti-cgt-armllvm_2.1.3.LTS CCS_INSTALL_DIR=/build/gitlab-runner/ti/ccs1271/ccs CCS_IDE_MODE=desktop
    Boot image: xwrL64xx:m4fss0-0:freertos:ti-arm-clang ...
    mono /build/gitlab-runner/ti/MMWAVE_L_SDK_05_04_00_01/tools/boot/out2rprc/out2rprc.exe Release/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang.out motion_and_presence_detection_demo.Release_rprc.bin >> Release/temp_stdout_Release.txt
    /build/gitlab-runner/ti/MMWAVE_L_SDK_05_04_00_01/tools/boot/multicoreImageGen/MulticoreImageGen LE 0 0x400000 0 /build/gitlab-runner/HB3/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang/Release/motion_and_presence_detection_demo.Release.appimage 0x35510000 motion_and_presence_detection_demo.Release_rprc.bin 0xb5510000 /build/gitlab-runner/ti/MMWAVE_L_SDK_05_04_00_01/firmware/mmwave_dfp/rfsfirmware/xWRL6432/mmwave_rfs_patch_rprc.bin >> Release/temp_stdout_Release.txt
    /build/gitlab-runner/ti/MMWAVE_L_SDK_05_04_00_01/tools/boot/crcMulticoreImageGen/crcMulticoreimage /build/gitlab-runner/HB3/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang/Release/motion_and_presence_detection_demo.Release.appimage motion_and_presence_detection_demo.Release_temp.appimage >> Release/temp_stdout_Release.txt
    /build/gitlab-runner/ti/MMWAVE_L_SDK_05_04_00_01/tools/boot/appendBinCrc/appendBinCrc /build/gitlab-runner/HB3/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang/Release/motion_and_presence_detection_demo.Release.appimage >> Release/temp_stdout_Release.txt
    makefile_ccs_bootimage_gen:72: recipe for target 'all' failed
    gmake[3]: *** [all] Error 1
    gmake[2]: [post-build] Error 2 (ignored)
    makefile:182: recipe for target 'post-build' failed

    /*******************************************************************************************************************/

    $ cat ./project/ti_6432_app_golden/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang/Release/temp_stdout_Release.txt
    Parsing the input object file, Release/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang.out.
    Appending zeros 4587520
    Appending zeros 4611320
    File conversion complete!
    Number of Input Files 2
    Number of zeros 24

    size of App Image is 224704 bytes
    cur_crc_read_addr 128
    cur_crc_read_addr 221632

    Error opening file /build/gitlab-runner/HB3/copy-of-hummingbird-radar-on-wnc/project/ti_6432_app_golden/motion_and_presence_detection_demo_xwrL64xx-evm_m4fss0-0_freertos_ti-arm-clang/Release/motion_and_presence_detection_demo.Release.appimage!!!

  • Hi Brad, 

    Was this on a clean ubuntu setup? Can you also confirm that all of the steps were successful with no errors and still the appimage creation is failing?

    Regards,

    Josh

  • Hi Josh,

    Yes, this was a clean ubuntu setup. And I saw no errors during setup. The only difference is that my server is Ubunt18.04 and I cannot change it.

    I think maybe you can provide a debug version of files under tools? (appendBinCrc/crcMulticoreimage/MulticoreImageGen) So I can recreate issue with more debug information. 

    Thanks

    Brad

  • Hi Brad, 

    I've just followed up on email. Please check your inbox. 

    Best Regards,

    Josh