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.

AWR6843AOP: 将MRR例程移植到6843

Part Number: AWR6843AOP
Other Parts Discussed in Thread: SYSBIOS

1843中mrr例程暂未保留dss工程,仅有mss工程。

此时编译是这样的 

提示未找到镜像文件 mrr_18xx_dss.bin

生成xwr18xx_mrr_demo.bin文件

编译完成

将mss工程中Properties相关参数中的18xx更改为68xx

程序中出现18的IO或者chirp、frame中断等参数修改68后编译

出现如下情况

**** Clean-only build of configuration Debug for project mrr_68xx_mss ****

"C:\\ti\\ccs1220\\ccs\\utils\\bin\\gmake" -k -j 8 clean -O 
 
DEL /F  "configPkg\linker.cmd" "configPkg\compiler.opt"  "mrr_68xx_mss.xer4f" 
DEL /F "mss_main.obj" "mss_mrr_cli.obj" "common\cfg.obj" 
DEL /F "mss_main.d" "mss_mrr_cli.d" "common\cfg.d" 
RMDIR /S/Q  "configPkg\" 
找不到 F:\workspace_v19_1843\mrr_68xx_mss\Debug\mrr_68xx_mss.xer4f
Finished clean
 

**** Build Finished ****

**** Build of configuration Debug for project mrr_68xx_mss ****

"C:\\ti\\ccs1220\\ccs\\utils\\bin\\gmake" -k -j 8 all -O 
 
rm -f F:/workspace_v19_1843/mrr_68xx_mss/mrr_68xx_mss.bin
 
Building file: "../mss_mrr.cfg"
Invoking: XDCtools
"C:/ti/xdctools_3_50_08_24_core/xs" --xdcpath="C:/ti/bios_6_73_01_01/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.R4Ft -p ti.platforms.cortexR:IWR68XX:false:200 -r release -c "C:/ti/ti-cgt-arm_16.9.6.LTS" --compileOptions "--enum_type=int " "../mss_mrr.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_mrr.xer4ft from package/cfg/mss_mrr_per4ft.cfg ...
generating custom ti.sysbios library makefile ... 
Starting build of library sources ...
making F:/workspace_v19_1843/mrr_68xx_mss/src/sysbios/sysbios.aer4ft ...
gmake[1]: Entering directory `F:/workspace_v19_1843/mrr_68xx_mss/src/sysbios'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `F:/workspace_v19_1843/mrr_68xx_mss/src/sysbios'
Build of libraries done.
cler4ft package/cfg/mss_mrr_per4ft.c ...
Finished building: "../mss_mrr.cfg"
 
Building file: "../common/cfg.c"
Invoking: Arm Compiler
"C:/ti/ti-cgt-arm_16.9.6.LTS/bin/armcl" -mv7R4 --code_state=16 --float_support=VFPv3D16 -me -O3 --include_path="F:/workspace_v19_1843/mrr_68xx_mss" --include_path="C:/ti/mmwave_sdk_03_05_00_04" --include_path="C:/ti/mmwave_sdk_03_05_00_04/packages" --include_path="C:/ti/ti-cgt-arm_16.9.6.LTS/include" --define=_LITTLE_ENDIAN --define=MMWAVE_L3RAM_NUM_BANK=8 --define=MMWAVE_SHMEM_TCMA_NUM_BANK=0 --define=MMWAVE_SHMEM_TCMB_NUM_BANK=0 --define=MMWAVE_SHMEM_BANK_SIZE=0x20000 --define=SOC_XWR68XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=SHMEM_ALLOC=0x00000008 --define=DebugP_ASSERT_ENABLED -g --c99 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=int --abi=eabi --preproc_with_compile --preproc_dependency="common/cfg.d_raw" --obj_directory="common" --cmd_file="configPkg/compiler.opt"  "../common/cfg.c"
Finished building: "../common/cfg.c"
 
Building file: "../mss_mrr_cli.c"
Invoking: Arm Compiler
"C:/ti/ti-cgt-arm_16.9.6.LTS/bin/armcl" -mv7R4 --code_state=16 --float_support=VFPv3D16 -me -O3 --include_path="F:/workspace_v19_1843/mrr_68xx_mss" --include_path="C:/ti/mmwave_sdk_03_05_00_04" --include_path="C:/ti/mmwave_sdk_03_05_00_04/packages" --include_path="C:/ti/ti-cgt-arm_16.9.6.LTS/include" --define=_LITTLE_ENDIAN --define=MMWAVE_L3RAM_NUM_BANK=8 --define=MMWAVE_SHMEM_TCMA_NUM_BANK=0 --define=MMWAVE_SHMEM_TCMB_NUM_BANK=0 --define=MMWAVE_SHMEM_BANK_SIZE=0x20000 --define=SOC_XWR68XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=SHMEM_ALLOC=0x00000008 --define=DebugP_ASSERT_ENABLED -g --c99 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=int --abi=eabi --preproc_with_compile --preproc_dependency="mss_mrr_cli.d_raw" --cmd_file="configPkg/compiler.opt"  "../mss_mrr_cli.c"
Finished building: "../mss_mrr_cli.c"
 
Building file: "../mss_main.c"
Invoking: Arm Compiler
"C:/ti/ti-cgt-arm_16.9.6.LTS/bin/armcl" -mv7R4 --code_state=16 --float_support=VFPv3D16 -me -O3 --include_path="F:/workspace_v19_1843/mrr_68xx_mss" --include_path="C:/ti/mmwave_sdk_03_05_00_04" --include_path="C:/ti/mmwave_sdk_03_05_00_04/packages" --include_path="C:/ti/ti-cgt-arm_16.9.6.LTS/include" --define=_LITTLE_ENDIAN --define=MMWAVE_L3RAM_NUM_BANK=8 --define=MMWAVE_SHMEM_TCMA_NUM_BANK=0 --define=MMWAVE_SHMEM_TCMB_NUM_BANK=0 --define=MMWAVE_SHMEM_BANK_SIZE=0x20000 --define=SOC_XWR68XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=SHMEM_ALLOC=0x00000008 --define=DebugP_ASSERT_ENABLED -g --c99 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=int --abi=eabi --preproc_with_compile --preproc_dependency="mss_main.d_raw" --cmd_file="configPkg/compiler.opt"  "../mss_main.c"
"../mss_main.c", line 515: warning #169-D: argument of type "uint8_t *" is incompatible with parameter of type "char *"
Finished building: "../mss_main.c"
 
Building target: "mrr_68xx_mss.xer4f"
Invoking: Arm Linker
"C:/ti/ti-cgt-arm_16.9.6.LTS/bin/armcl" -mv7R4 --code_state=16 --float_support=VFPv3D16 -me -O3 --define=_LITTLE_ENDIAN --define=MMWAVE_L3RAM_NUM_BANK=8 --define=MMWAVE_SHMEM_TCMA_NUM_BANK=0 --define=MMWAVE_SHMEM_TCMB_NUM_BANK=0 --define=MMWAVE_SHMEM_BANK_SIZE=0x20000 --define=SOC_XWR68XX --define=SUBSYS_MSS --define=DOWNLOAD_FROM_CCS --define=SHMEM_ALLOC=0x00000008 --define=DebugP_ASSERT_ENABLED -g --c99 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --enum_type=int --abi=eabi -z -m"mrr_68xx_mss.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/ti-cgt-arm_16.9.6.LTS/lib" -i"C:/ti/mmwave_sdk_03_05_00_04/packages/ti/control/mmwave/lib" -i"C:/ti/mmwave_sdk_03_05_00_04/packages/ti/control/mmwavelink/lib" -i"C:/ti/mmwave_sdk_03_05_00_04/packages/ti/drivers/crc/lib" -i"C:/ti/mmwave_sdk_03_05_00_04/packages/ti/drivers/esm/lib" -i"C:/ti/mmwave_sdk_03_05_00_04/packages/ti/drivers/gpio/lib" -i"C:/ti/mmwave_sdk_03_05_00_04/packages/ti/drivers/osal/lib" -i"C:/ti/mmwave_sdk_03_05_00_04/packages/ti/drivers/pinmux/lib" -i"C:/ti/mmwave_sdk_03_05_00_04/packages/ti/drivers/mailbox/lib" -i"C:/ti/mmwave_sdk_03_05_00_04/packages/ti/drivers/dma/lib" -i"C:/ti/mmwave_sdk_03_05_00_04/packages/ti/drivers/soc/lib" -i"C:/ti/mmwave_sdk_03_05_00_04/packages/ti/drivers/uart/lib" -i"C:/ti/mmwave_sdk_03_05_00_04/packages/ti/drivers/canfd/lib" -i"C:/ti/mmwave_sdk_03_05_00_04/packages/ti/utils/cli/lib" -i"C:/ti/ti-cgt-arm_16.9.6.LTS/include" --reread_libs --disable_auto_rts --define=MMWAVE_L3RAM_SIZE=0x100000 --diag_warning=225 --diag_wrap=off --display_error_number --warn_sections --xml_link_info="mrr_68xx_mss.xml" --rom_model --unused_section_elimination=on -o "mrr_68xx_mss.xer4f" "./mss_main.obj" "./mss_mrr_cli.obj" "./common/cfg.obj" "../mss_mrr_linker.cmd" "../r4f_linker.cmd" -l"configPkg/linker.cmd"  -llibosal_xwr68xx.aer4f -llibesm_xwr68xx.aer4f -llibgpio_xwr68xx.aer4f -llibsoc_xwr68xx.aer4f -llibmailbox_xwr68xx.aer4f -llibpinmux_xwr68xx.aer4f -llibcrc_xwr68xx.aer4f -llibDMA_xwr68xx.aer4f -llibuart_xwr68xx.aer4f -llibcanfd_xwr68xx.aer4f -llibmmwavelink_xwr68xx.aer4f -llibmmwave_xwr68xx.aer4f -llibcli_xwr68xx.aer4f -lrtsv7R4_T_le_v3D16_eabi.lib -llibc.a 
<Linking>
Finished building target: "mrr_68xx_mss.xer4f"
 
C:/ti/mmwave_sdk_03_05_00_04/packages/scripts/ImageCreator/out2rprc/out2rprc.exe mrr_68xx_mss.xer4f mrr_68xx_mss.bin
Parsing the input object file, mrr_68xx_mss.xer4f.
Appending zeros 0
Appending zeros 256
Appending zeros 66600
File conversion complete!
C:/ti/mmwave_sdk_03_05_00_04/packages/scripts/ImageCreator/multicore_image_generator/MulticoreImageGen.exe LE 37 0x00000008 xwr68xx_mrr_demo.bin 0x35510000 F:/workspace_v19_1843/mrr_68xx_mss/Debug/mrr_68xx_mss.bin 0xb5510000 C:/ti/mmwave_sdk_03_05_00_04/firmware/radarss/xwr68xx_radarss_rprc.bin 0xd5510000 F:/workspace_v19_1843/mrr_68xx_dss/Debug/mrr_68xx_dss.bin

编译到这里就不在继续了,在工程文件夹下xwr68xx_mrr_demo.bin的大小一直在增长,只要不强制结束就不会停下来

在Properties/build/steps中队post-build steps做了检查 文件链接正确。

想知道问题出在哪里,能与上述1843时一样,

能够提示未找到镜像文件 mrr_68xx_dss.bin

生成固定大小的xwr68xx_mrr_demo.bin文件

  • 1843中mrr例程暂未保留dss工程,仅有mss工程。

    MRR例程是先编译dss工程,再编译mss工程,因为最后mss工程里用MulticoreImageGen.exe合并生成一个bin文件的时候,会用到dss工程编译生成的mrr_18xx_dss.bin。

    在移植到6843时,先移植dss工程,再移植mss工程。

  • 问题找到了,大概是这样的

    原1843MRR例程中Properties/build/steps中队post-build steps中/firmware/radarss/xwr18xx_radarss_rprc.bin文件

    改为6843之后将此处/firmware/radarss/xwr18xx_radarss_rprc.bin 一直卡在这里 其实这个文件不存在

    查找后发现该bin文件是/firmware/radarss/xwr6xxx_radarss_rprc.bin  编译才可以通过 剩下就是根据6843的参数做修改

  • 非常感谢分享解决办法!