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/IWR1443BOOST: Modify lab0004-high-accuracy-14xx (Simplified Uart output)

Part Number: IWR1443BOOST
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

Hi All,

Sorry for the very general question but... What is the easiest way to simply get the real-time range value as shown in the visualizer sent over UART or SPI or I2c?  How can I strip it down to just requesting a range value and receiving a range value over UART or other communication protocol while still maintaining the calculated range value from this lab?  I would even like to eventually just use one UART port for the request and response.  I have spent a solid day trying to decipher the whole lab0004-high-accuracy-14xx project but am just way too illiterate with C and CCS to get anywhere.  Any suggestions would be greatly appreciated !

So far running the high-accuracy lab I do see data over UART but am not seeing the Magic Word (0x0102, 0x0304, 0x0506, 0x0708) sequence.   I am using the Coolterm emulator with the config below and the output below. 

Thanks guys!

  • Hi Jason,

    The output line 0310 of the output shows the magic word. For more information, you can refer to this ticket for data structure and how to read out the distance:
    e2e.ti.com/.../2447737

    The output is formatted in function MmwDemo_transmitProcessedOutput. You can take out the info you don't need.

    Thanks and Regards,
    Michelle
  • Michelle,

    Thanks for pointing that out the magic word in the output and linking me to the correct "Magic Word" for this lab.  I am able to parse the data now and extract what I need.  Is there a simple way to change the UART data out baud rate to something slower and more common like 115200?  Do you know where I would make this change in the high-accuracy lab? 

    Thanks again!

  • Jason,

    In main.c line 1570, you can change the commandBaudRate.

    Regards,
    Michelle
  • Michelle,

    Thanks I did find that and make the change. I am having issues recompiling the mss.bin file though. In fact, if I simply import a project into CCS and then click build -- Debug I get this output which shows the build succeeds but the mss.bin file does not recompile because it is not found. This has been the case with any project I have imported. Any ideas to resolve this? Why would I not be able to recompile a project that was just imported? The file I need to flash that will change the baud rate would be the xwr14xx_high_accuracy_mss.bin file correct?

    Thanks again


    **** Build of configuration Debug for project high_accuracy_14xx_mss ****

    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O

    rm -f C:/Users/shop/Desktop/evenNewer/high_accuracy_14xx_mss/xwr14xx_high_accuracy_mss.bin
    makefile:192: recipe for target 'pre-build' failed
    process_begin: CreateProcess(NULL, rm -f C:/Users/shop/Desktop/evenNewer/high_accuracy_14xx_mss/xwr14xx_high_accuracy_mss.bin, ...) failed.
    make (e=2): The system cannot find the file specified.

    gmake[1]: [pre-build] Error 2 (ignored)

    'Building file: "../mmw_high_accu_14xx.cfg"'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_50_00_10_core/xs" --xdcpath="C:/ti/bios_6_52_00_12/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.R4F -p ti.platforms.cortexR:IWR14XX:false:200 -r release -c "C:/ti/ti-cgt-arm_16.9.1.LTS" "../mmw_high_accu_14xx.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring mmw_high_accu_14xx.xer4f from package/cfg/mmw_high_accu_14xx_per4f.cfg ...
    generating custom ti.sysbios library makefile ...
    Starting build of library sources ...
    making C:/Users/shop/Desktop/evenNewer/high_accuracy_14xx_mss/src/sysbios/sysbios.aer4f ...
    gmake[1]: Entering directory `C:/Users/shop/Desktop/evenNewer/high_accuracy_14xx_mss/src/sysbios'
    cler4f C:/ti/bios_6_52_00_12/packages/ti/sysbios/BIOS.c ...
    asmer4f C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm.asm ...
    asmer4f C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/TaskSupport_asm.asm ...
    asmer4f C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/v7r/vim/Hwi_asm.sv7R ...
    asmer4f C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/v7r/vim/Hwi_asm_switch.sv7R ...
    asmer4f C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/exc/Exception_asm.asm ...
    asmer4f C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/v7r/tms570/Core_asm.sv7R ...
    asmer4f C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a15/TimestampProvider_asm.asm ...
    arer4f BIOS.obj arm_IntrinsicsSupport_asm.obj arm_TaskSupport_asm.obj vim_Hwi_asm.obj vim_Hwi_asm_switch.obj exc_Exception_asm.obj tms570_Core_asm.obj a15_TimestampProvider_asm.obj ...
    gmake[1]: Leaving directory `C:/Users/shop/Desktop/evenNewer/high_accuracy_14xx_mss/src/sysbios'
    Build of libraries done.
    cler4f package/cfg/mmw_high_accu_14xx_per4f.c ...
    'Finished building: "../mmw_high_accu_14xx.cfg"'

    'Building file: "../config_edma_util.c"'
    'Invoking: ARM Compiler'
    "C:/ti/ti-cgt-arm_16.9.1.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/shop/Desktop/evenNewer/high_accuracy_14xx_mss" --include_path="C:/ti/mmwave_sdk_01_01_00_02/packages" --include_path="C:/ti/ti-cgt-arm_16.9.1.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED --define=MMWAVE_L3RAM_SIZE=0x40000 -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="config_edma_util.d_raw" --cmd_file="configPkg/compiler.opt" "../config_edma_util.c"
    'Finished building: "../config_edma_util.c"'

    'Building file: "../mmw_high_accu_14xx_cli.c"'
    'Invoking: ARM Compiler'
    "C:/ti/ti-cgt-arm_16.9.1.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/shop/Desktop/evenNewer/high_accuracy_14xx_mss" --include_path="C:/ti/mmwave_sdk_01_01_00_02/packages" --include_path="C:/ti/ti-cgt-arm_16.9.1.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED --define=MMWAVE_L3RAM_SIZE=0x40000 -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="mmw_high_accu_14xx_cli.d_raw" --cmd_file="configPkg/compiler.opt" "../mmw_high_accu_14xx_cli.c"
    'Finished building: "../mmw_high_accu_14xx_cli.c"'

    'Building file: "../data_path.c"'
    'Invoking: ARM Compiler'
    "C:/ti/ti-cgt-arm_16.9.1.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/shop/Desktop/evenNewer/high_accuracy_14xx_mss" --include_path="C:/ti/mmwave_sdk_01_01_00_02/packages" --include_path="C:/ti/ti-cgt-arm_16.9.1.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED --define=MMWAVE_L3RAM_SIZE=0x40000 -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="data_path.d_raw" --cmd_file="configPkg/compiler.opt" "../data_path.c"
    'Finished building: "../data_path.c"'

    'Building file: "../main.c"'
    'Invoking: ARM Compiler'
    "C:/ti/ti-cgt-arm_16.9.1.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/shop/Desktop/evenNewer/high_accuracy_14xx_mss" --include_path="C:/ti/mmwave_sdk_01_01_00_02/packages" --include_path="C:/ti/ti-cgt-arm_16.9.1.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED --define=MMWAVE_L3RAM_SIZE=0x40000 -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="main.d_raw" --cmd_file="configPkg/compiler.opt" "../main.c"
    'Finished building: "../main.c"'

    'Building file: "../sensor_mgmt.c"'
    'Invoking: ARM Compiler'
    "C:/ti/ti-cgt-arm_16.9.1.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --include_path="C:/Users/shop/Desktop/evenNewer/high_accuracy_14xx_mss" --include_path="C:/ti/mmwave_sdk_01_01_00_02/packages" --include_path="C:/ti/ti-cgt-arm_16.9.1.LTS/include" --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED --define=MMWAVE_L3RAM_SIZE=0x40000 -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="sensor_mgmt.d_raw" --cmd_file="configPkg/compiler.opt" "../sensor_mgmt.c"
    'Finished building: "../sensor_mgmt.c"'

    'Building target: "xwr14xx_high_accuracy_mss.xer4f"'
    'Invoking: ARM Linker'
    "C:/ti/ti-cgt-arm_16.9.1.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O3 --define=SOC_XWR14XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=DebugP_ASSERT_ENABLED --define=MMWAVE_L3RAM_SIZE=0x40000 -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=packed --abi=eabi -z -m"xwr14xx_high_accuracy_mss.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/ti-cgt-arm_16.9.1.LTS/lib" -i"C:/ti/mmwave_sdk_01_01_00_02/packages/ti/control/mmwave/lib" -i"C:/ti/mmwave_sdk_01_01_00_02/packages/ti/control/mmwavelink/lib" -i"C:/ti/mmwave_sdk_01_01_00_02/packages/ti/drivers/adcbuf/lib" -i"C:/ti/mmwave_sdk_01_01_00_02/packages/ti/drivers/crc/lib" -i"C:/ti/mmwave_sdk_01_01_00_02/packages/ti/drivers/dma/lib" -i"C:/ti/mmwave_sdk_01_01_00_02/packages/ti/drivers/edma/lib" -i"C:/ti/mmwave_sdk_01_01_00_02/packages/ti/drivers/esm/lib" -i"C:/ti/mmwave_sdk_01_01_00_02/packages/ti/drivers/gpio/lib" -i"C:/ti/mmwave_sdk_01_01_00_02/packages/ti/drivers/hwa/lib" -i"C:/ti/mmwave_sdk_01_01_00_02/packages/ti/drivers/mailbox/lib" -i"C:/ti/mmwave_sdk_01_01_00_02/packages/ti/drivers/osal/lib" -i"C:/ti/mmwave_sdk_01_01_00_02/packages/ti/drivers/pinmux/lib" -i"C:/ti/mmwave_sdk_01_01_00_02/packages/ti/drivers/soc/lib" -i"C:/ti/mmwave_sdk_01_01_00_02/packages/ti/drivers/uart/lib" -i"C:/ti/mmwave_sdk_01_01_00_02/packages/ti/utils/cli/lib" -i"C:/ti/ti-cgt-arm_16.9.1.LTS/include" --reread_libs --disable_auto_rts --diag_warning=225 --diag_wrap=off --display_error_number --warn_sections --xml_link_info="xwr14xx_high_accuracy_14xx_mss_linkInfo.xml" --rom_model --unused_section_elimination=on -o "xwr14xx_high_accuracy_mss.xer4f" "./config_edma_util.obj" "./data_path.obj" "./main.obj" "./mmw_high_accu_14xx_cli.obj" "./sensor_mgmt.obj" "../mss_mmw_linker.cmd" "../r4f_linker.cmd" -l"configPkg/linker.cmd" -llibosal_xwr14xx.aer4f -llibesm_xwr14xx.aer4f -llibgpio_xwr14xx.aer4f -llibsoc_xwr14xx.aer4f -llibpinmux_xwr14xx.aer4f -llibcrc_xwr14xx.aer4f -llibuart_xwr14xx.aer4f -llibmailbox_xwr14xx.aer4f -llibmmwavelink_xwr14xx.aer4f -llibmmwave_xwr14xx.aer4f -llibadcbuf_xwr14xx.aer4f -llibdma_xwr14xx.aer4f -llibedma_xwr14xx.aer4f -llibcli_xwr14xx.aer4f -llibhwa_xwr14xx.aer4f -lrtsv7R4_T_le_v3D16_eabi.lib -llibc.a
    <Linking>
    'Finished building target: "xwr14xx_high_accuracy_mss.xer4f"'

    C:/ti/mmwave_sdk_01_01_00_02/packages/scripts/ImageCreator/xwr14xx/out2rprc/out2rprc.exe xwr14xx_high_accuracy_mss.xer4f xwr14xx_high_accuracy_mss.bin 0x200000
    Parsing the input object file, xwr14xx_high_accuracy_mss.xer4f.
    Appending zeros 0
    Appending zeros 256
    Appending zeros 89104
    File conversion complete!
    C:/ti/mmwave_sdk_01_01_00_02/packages/scripts/ImageCreator/append_bin_crc/gen_bincrc32.exe xwr14xx_high_accuracy_mss.bin
    >>>> Binary CRC32 = 8f321df7 <<<<
    >>>> Total bytes in binary file 93316 <<<<



    **** Build Finished ****
  • From the printout, the build was successful. 

    There're errors related failed to delete old bin files (see below), maybe it's due to location definition, but as shown in the printout, it can be ignored.

    gmake[1]: [pre-build] Error 2 (ignored)

    Regards,

    Michelle

  • Is there any other questions? Please let me know. Thanks!

    Regards,
    Michelle
  • Hi, I'm doing the same job with you , can you tell me how to calculate distance value in the CCS project ?
  • Please follow this ticket for distance value calculation:
    e2e.ti.com/.../2447737

    Regards,
    Michelle