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.

IWR6843AOP: Build SBL in CCS

Part Number: IWR6843AOP
Other Parts Discussed in Thread: SYSBIOS, UNIFLASH

Hi All, i want to build a project related to SBL on IWR6843AOP chip.

I used can_sbl_18xx_mss for example "C:\ti\radar_toolbox_1_20_00_11\source\ti\examples\can_sbl\src\1843". And I edited some parts based on the path: C:\ti\mmwave_sdk_03_06_00_00-LTS\packages\ti\utils\sbl      to match the IWR6843AOP chip.

sbl_linker.cmd

/* Linker Settings                                                            */
--retain="*(.intvecs)"

/* Section Configuration                                                      */
SECTIONS
{
    tcmalibs: > PROG_RAM ALIGN(8)
    {
		main.obj
        -lboot.aer4ft(.text)
    }
    systemHeap : {}  > DATA_RAM
    _appVecs    : > VECTORS LOAD_START(_appVecs)
}

xwr_r4f.cmd

/* Linker Settings                                                            */
--retain="*(.intvecs)"

/*----------------------------------------------------------------------------*/
/* Memory Map                                                                 */
MEMORY{
    VECTORS  (X)  : origin=0x00000000 length=0x00000100
    PROG_RAM (RWX) : origin=0x00000100 length=0x0003FF00
    DATA_RAM (RWX) : origin=0x08000000 length=0x00030000
}

/*----------------------------------------------------------------------------*/
/* Section Configuration                                                      */
SECTIONS{
    .intvecs : {} > VECTORS
    .text    : {} > PROG_RAM ALIGN(8)  run = DATA_RAM, LOAD_START(_libLoadStart), LOAD_END(_libLoadEnd), RUN_START(_libRunAddr)
    .const   : {} > PROG_RAM ALIGN(8)  run = DATA_RAM, LOAD_START(_constLoadStart), LOAD_END(_constLoadEnd), RUN_START(_constRunAddr)
    .cinit   : {} > PROG_RAM ALIGN(8)
    .pinit   : {} > PROG_RAM ALIGN(8)
    .bss     : {} > DATA_RAM ALIGN(8)
    .data    : {} > DATA_RAM
    .stack   : {} > DATA_RAM ALIGN(32)
}

This is the log when I build the project:

**** Build of configuration Debug for project can_sbl18xx_mss ****

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

Building file: "../sbl.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.R4F -p ti.platforms.cortexR:IWR68XX:false:200 -r release -c "C:/ti/ti-cgt-arm_16.9.6.LTS" --compileOptions "--enum_type=int " "../sbl.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring sbl.xer4f from package/cfg/sbl_per4f.cfg ...
generating custom ti.sysbios library makefile ...
Starting build of library sources ...
making C:/Users/Admin/workspace_v12/can_sbl18xx_mss/src/sysbios/sysbios.aer4f ...
gmake[1]: Entering directory `C:/Users/Admin/workspace_v12/can_sbl18xx_mss/src/sysbios'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `C:/Users/Admin/workspace_v12/can_sbl18xx_mss/src/sysbios'
Build of libraries done.
cler4f package/cfg/sbl_per4f.c ...
Finished building: "../sbl.cfg"

Building file: "../crc16.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="C:/Users/Admin/workspace_v12/can_sbl18xx_mss" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS/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="crc16.d_raw" --cmd_file="configPkg/compiler.opt" "../crc16.c"
Finished building: "../crc16.c"

Building file: "../buffer_mgmt.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="C:/Users/Admin/workspace_v12/can_sbl18xx_mss" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS/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="buffer_mgmt.d_raw" --cmd_file="configPkg/compiler.opt" "../buffer_mgmt.c"
Finished building: "../buffer_mgmt.c"

Building file: "../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="C:/Users/Admin/workspace_v12/can_sbl18xx_mss" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS/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="main.d_raw" --cmd_file="configPkg/compiler.opt" "../main.c"
Finished building: "../main.c"

Building file: "../image_parser.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="C:/Users/Admin/workspace_v12/can_sbl18xx_mss" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS/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="image_parser.d_raw" --cmd_file="configPkg/compiler.opt" "../image_parser.c"
Finished building: "../image_parser.c"

Building file: "../image_validity.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="C:/Users/Admin/workspace_v12/can_sbl18xx_mss" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS/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="image_validity.d_raw" --cmd_file="configPkg/compiler.opt" "../image_validity.c"
Finished building: "../image_validity.c"

Building file: "../metaheader_parser.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="C:/Users/Admin/workspace_v12/can_sbl18xx_mss" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS/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="metaheader_parser.d_raw" --cmd_file="configPkg/compiler.opt" "../metaheader_parser.c"
Finished building: "../metaheader_parser.c"

Building file: "../multicoreimage_parser.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="C:/Users/Admin/workspace_v12/can_sbl18xx_mss" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS/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="multicoreimage_parser.d_raw" --cmd_file="configPkg/compiler.opt" "../multicoreimage_parser.c"
Finished building: "../multicoreimage_parser.c"

Building file: "../sbl_xwr68xx.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="C:/Users/Admin/workspace_v12/can_sbl18xx_mss" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS/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="sbl_xwr68xx.d_raw" --cmd_file="configPkg/compiler.opt" "../sbl_xwr68xx.c"
Finished building: "../sbl_xwr68xx.c"

Building file: "../transport.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="C:/Users/Admin/workspace_v12/can_sbl18xx_mss" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS/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="transport.d_raw" --cmd_file="configPkg/compiler.opt" "../transport.c"
Finished building: "../transport.c"

Building file: "../sbl.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="C:/Users/Admin/workspace_v12/can_sbl18xx_mss" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS" --include_path="C:/ti/mmwave_sdk_03_06_00_00-LTS/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="sbl.d_raw" --cmd_file="configPkg/compiler.opt" "../sbl.c"
Finished building: "../sbl.c"

Building target: "can_sbl18xx_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"can_sbl18xx_mss.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/ti-cgt-arm_16.9.6.LTS/lib" -i"C:/ti/bios_6_73_01_01/packages/ti/targets/arm/rtsarm/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/crc/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/esm/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/pinmux/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/dma/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/soc/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/uart/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/canfd/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/utils/cli/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/qspi/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/qspiflash/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/utils/testlogger/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/osal/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="can_sbl18xx_mss.xml" --rom_model --unused_section_elimination=on -o "can_sbl18xx_mss.xer4f" "./buffer_mgmt.obj" "./crc16.obj" "./image_parser.obj" "./image_validity.obj" "./main.obj" "./metaheader_parser.obj" "./multicoreimage_parser.obj" "./sbl.obj" "./sbl_xwr68xx.obj" "./transport.obj" "../sbl_linker.cmd" "../xwr_r4f.cmd" -l"configPkg/linker.cmd" -lrtsv7R4_T_le_v3D16_eabi.lib -llibesm_xwr68xx.aer4f -llibosal_xwr68xx.aer4f -llibsoc_xwr68xx.aer4f -llibpinmux_xwr68xx.aer4f -llibcrc_xwr68xx.aer4f -llibdma_xwr68xx.aer4f -llibuart_xwr68xx.aer4f -llibcanfd_xwr68xx.aer4f -llibcli_xwr68xx.aer4f -llibqspiflash_xwr68xx.aer4f -llibqspi_xwr68xx.aer4f -llibtestlogger_xwr68xx.aer4f -lboot.aer4ft -llibc.a
<Linking>
warning #10278-D: LOAD placement specified for section ".text:decompress:none:rtsv7R4_T_le_v3D16_eabi.lib<copy_decompress_none.obj>". This section contains decompression routines required for linker generated copy tables and C/C++ auto-initialization. Must ensure that this section is copied to run address before the C/C++ boot code is executed or is placed with single allocation specifier (ex. "> MEMORY").
warning #10278-D: LOAD placement specified for section ".text:rtsv7R4_T_le_v3D16_eabi.lib<memcpy_t2.obj>". This section contains decompression routines required for linker generated copy tables and C/C++ auto-initialization. Must ensure that this section is copied to run address before the C/C++ boot code is executed or is placed with single allocation specifier (ex. "> MEMORY").
warning #10278-D: LOAD placement specified for section ".text:decompress:ZI:rtsv7R4_T_le_v3D16_eabi.lib<copy_zero_init.obj>". This section contains decompression routines required for linker generated copy tables and C/C++ auto-initialization. Must ensure that this section is copied to run address before the C/C++ boot code is executed or is placed with single allocation specifier (ex. "> MEMORY").
warning #10278-D: LOAD placement specified for section ".text:rtsv7R4_T_le_v3D16_eabi.lib<memset_t2.obj>". This section contains decompression routines required for linker generated copy tables and C/C++ auto-initialization. Must ensure that this section is copied to run address before the C/C++ boot code is executed or is placed with single allocation specifier (ex. "> MEMORY").
warning #10278-D: LOAD placement specified for section ".text:decompress:lzss:rtsv7R4_T_le_v3D16_eabi.lib<copy_decompress_lzss.obj>". This section contains decompression routines required for linker generated copy tables and C/C++ auto-initialization. Must ensure that this section is copied to run address before the C/C++ boot code is executed or is placed with single allocation specifier (ex. "> MEMORY").
Finished building target: "can_sbl18xx_mss.xer4f"

C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/scripts/ImageCreator/out2rprc/out2rprc.exe C:/Users/Admin/workspace_v12/can_sbl18xx_mss/Debug/can_sbl18xx_mss.xer4f C:/Users/Admin/workspace_v12/can_sbl18xx_mss/Debug/can_sbl18xx_mss.tmp
Parsing the input object file, C:/Users/Admin/workspace_v12/can_sbl18xx_mss/Debug/can_sbl18xx_mss.xer4f.
Appending zeros 0
Appending zeros 256
Appending zeros 61448
File conversion complete!
C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/scripts/ImageCreator/multicore_image_generator/MulticoreImageGen.exe LE 37 0x00000008 xwr18xx_sbl_demo.bin 0x35510000 C:/Users/Admin/workspace_v12/can_sbl18xx_mss/Debug/can_sbl18xx_mss.tmp
Number of Input Files 1
Number of zeros 24

C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/scripts/ImageCreator/crc_multicore_image/crc_multicore_image.exe xwr18xx_sbl_demo.bin xwr18xx_sbl_demo.tmp
size of App Image is 72000 bytes
cur_crc_read_addr 64
Failed to remove CRC temp file

C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/scripts/ImageCreator/append_bin_crc/gen_bincrc32.exe xwr18xx_sbl_demo.bin
>>>> Binary CRC32 = 2c7df3d3 <<<<
>>>> Total bytes in binary file 72004 <<<<

**** Build Finished ****

===> I have successfully built the project and my project works great using DEBUG mode on CCS (ICBOOST + IWR6843AOP)

But I had a big problem when, using UNIFLASH to load the program into the chip. That is, after successfully loading the program, I opened teraterm to log, but there were no log lines showing up at tera term. 

How I should proceed in building it in CCS ?

I look forward to receiving your help regarding the problem I have encountered

Thanks and Regards,

  • I guess the post_build part is configured incorrectly, can you check for me if the make file is correct?
    Below is the source make file

    ################################################################################
    # Automatically-generated file. Do not edit!
    ################################################################################
    
    SHELL = cmd.exe
    
    CG_TOOL_ROOT := C:/ti/ti-cgt-arm_16.9.6.LTS
    
    GEN_OPTS__FLAG := --cmd_file="configPkg/compiler.opt" 
    GEN_CMDS__FLAG := -l"configPkg/linker.cmd" 
    
    ORDERED_OBJS += \
    "./buffer_mgmt.obj" \
    "./crc16.obj" \
    "./image_parser.obj" \
    "./image_validity.obj" \
    "./main.obj" \
    "./metaheader_parser.obj" \
    "./multicoreimage_parser.obj" \
    "./sbl.obj" \
    "./sbl_xwr68xx.obj" \
    "./transport.obj" \
    "../sbl_linker.cmd" \
    "../xwr_r4f.cmd" \
    $(GEN_CMDS__FLAG) \
    -lrtsv7R4_T_le_v3D16_eabi.lib \
    -llibesm_xwr68xx.aer4f \
    -llibosal_xwr68xx.aer4f \
    -llibsoc_xwr68xx.aer4f \
    -llibpinmux_xwr68xx.aer4f \
    -llibcrc_xwr68xx.aer4f \
    -llibdma_xwr68xx.aer4f \
    -llibuart_xwr68xx.aer4f \
    -llibcanfd_xwr68xx.aer4f \
    -llibcli_xwr68xx.aer4f \
    -llibqspiflash_xwr68xx.aer4f \
    -llibqspi_xwr68xx.aer4f \
    -llibtestlogger_xwr68xx.aer4f \
    -lboot.aer4ft \
    -llibc.a \
    
    -include ../makefile.init
    
    RM := DEL /F
    RMDIR := RMDIR /S/Q
    
    # All of the sources participating in the build are defined here
    -include sources.mk
    -include subdir_vars.mk
    -include subdir_rules.mk
    -include objects.mk
    
    ifneq ($(MAKECMDGOALS),clean)
    ifneq ($(strip $(C55_DEPS)),)
    -include $(C55_DEPS)
    endif
    ifneq ($(strip $(C_UPPER_DEPS)),)
    -include $(C_UPPER_DEPS)
    endif
    ifneq ($(strip $(S67_DEPS)),)
    -include $(S67_DEPS)
    endif
    ifneq ($(strip $(S62_DEPS)),)
    -include $(S62_DEPS)
    endif
    ifneq ($(strip $(S_DEPS)),)
    -include $(S_DEPS)
    endif
    ifneq ($(strip $(OPT_DEPS)),)
    -include $(OPT_DEPS)
    endif
    ifneq ($(strip $(C??_DEPS)),)
    -include $(C??_DEPS)
    endif
    ifneq ($(strip $(ASM_UPPER_DEPS)),)
    -include $(ASM_UPPER_DEPS)
    endif
    ifneq ($(strip $(S??_DEPS)),)
    -include $(S??_DEPS)
    endif
    ifneq ($(strip $(C64_DEPS)),)
    -include $(C64_DEPS)
    endif
    ifneq ($(strip $(CXX_DEPS)),)
    -include $(CXX_DEPS)
    endif
    ifneq ($(strip $(S64_DEPS)),)
    -include $(S64_DEPS)
    endif
    ifneq ($(strip $(INO_DEPS)),)
    -include $(INO_DEPS)
    endif
    ifneq ($(strip $(CLA_DEPS)),)
    -include $(CLA_DEPS)
    endif
    ifneq ($(strip $(S55_DEPS)),)
    -include $(S55_DEPS)
    endif
    ifneq ($(strip $(SV7A_DEPS)),)
    -include $(SV7A_DEPS)
    endif
    ifneq ($(strip $(C62_DEPS)),)
    -include $(C62_DEPS)
    endif
    ifneq ($(strip $(C67_DEPS)),)
    -include $(C67_DEPS)
    endif
    ifneq ($(strip $(PDE_DEPS)),)
    -include $(PDE_DEPS)
    endif
    ifneq ($(strip $(K_DEPS)),)
    -include $(K_DEPS)
    endif
    ifneq ($(strip $(C_DEPS)),)
    -include $(C_DEPS)
    endif
    ifneq ($(strip $(CC_DEPS)),)
    -include $(CC_DEPS)
    endif
    ifneq ($(strip $(C++_DEPS)),)
    -include $(C++_DEPS)
    endif
    ifneq ($(strip $(C43_DEPS)),)
    -include $(C43_DEPS)
    endif
    ifneq ($(strip $(S43_DEPS)),)
    -include $(S43_DEPS)
    endif
    ifneq ($(strip $(ASM_DEPS)),)
    -include $(ASM_DEPS)
    endif
    ifneq ($(strip $(S_UPPER_DEPS)),)
    -include $(S_UPPER_DEPS)
    endif
    ifneq ($(strip $(CPP_DEPS)),)
    -include $(CPP_DEPS)
    endif
    ifneq ($(strip $(SA_DEPS)),)
    -include $(SA_DEPS)
    endif
    endif
    
    -include ../makefile.defs
    
    # Add inputs and outputs from these tool invocations to the build variables 
    EXE_OUTPUTS += \
    can_sbl18xx_mss.xer4f \
    
    EXE_OUTPUTS__QUOTED += \
    "can_sbl18xx_mss.xer4f" \
    
    
    # All Target
    all: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)
    	@$(MAKE) --no-print-directory -Onone "can_sbl18xx_mss.xer4f"
    
    # Tool invocations
    can_sbl18xx_mss.xer4f: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)
    	@echo 'Building target: "$@"'
    	@echo '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"can_sbl18xx_mss.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/ti-cgt-arm_16.9.6.LTS/lib" -i"C:/ti/bios_6_73_01_01/packages/ti/targets/arm/rtsarm/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/crc/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/esm/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/pinmux/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/dma/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/soc/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/uart/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/canfd/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/utils/cli/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/qspi/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/qspiflash/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/utils/testlogger/lib" -i"C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/osal/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="can_sbl18xx_mss.xml" --rom_model --unused_section_elimination=on -o "can_sbl18xx_mss.xer4f" $(ORDERED_OBJS)
    	@echo 'Finished building target: "$@"'
    	@echo ' '
    	@$(MAKE) --no-print-directory post-build
    
    # Other Targets
    clean:
    	-$(RM) $(GEN_FILES__QUOTED)$(EXE_OUTPUTS__QUOTED)
    	-$(RM) "buffer_mgmt.obj" "crc16.obj" "image_parser.obj" "image_validity.obj" "main.obj" "metaheader_parser.obj" "multicoreimage_parser.obj" "sbl.obj" "sbl_xwr68xx.obj" "transport.obj" 
    	-$(RM) "buffer_mgmt.d" "crc16.d" "image_parser.d" "image_validity.d" "main.d" "metaheader_parser.d" "multicoreimage_parser.d" "sbl.d" "sbl_xwr68xx.d" "transport.d" 
    	-$(RMDIR) $(GEN_MISC_DIRS__QUOTED)
    	-@echo 'Finished clean'
    	-@echo ' '
    
    post-build:
    	-C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/scripts/ImageCreator/out2rprc/out2rprc.exe C:/Users/Admin/workspace_v12/can_sbl18xx_mss/Debug/can_sbl18xx_mss.xer4f C:/Users/Admin/workspace_v12/can_sbl18xx_mss/Debug/can_sbl18xx_mss.tmp
    	-C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/scripts/ImageCreator/multicore_image_generator/MulticoreImageGen.exe LE 37 0x00000008 xwr18xx_sbl_demo.bin 0x35510000 C:/Users/Admin/workspace_v12/can_sbl18xx_mss/Debug/can_sbl18xx_mss.tmp
    	-C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/scripts/ImageCreator/crc_multicore_image/crc_multicore_image.exe xwr18xx_sbl_demo.bin xwr18xx_sbl_demo.tmp
    	-C:/ti/mmwave_sdk_03_06_00_00-LTS/packages/scripts/ImageCreator/append_bin_crc/gen_bincrc32.exe xwr18xx_sbl_demo.bin
    	-@echo ' '
    
    .PHONY: all clean dependents
    .SECONDARY:
    
    -include ../makefile.targets
    
    

  • Hello,

    Can you clarify? Are you saying that your .xer4f file generated is fine and the CAN SBL works when done in CCS Debug mode, but when the .bin is flashed and ran in Functional Mode, the demo does not work and nothing shows up in CLI interface?

    Best Regards,

    Pedrhom

  • Thanks for the feedback,
    That's what I want to ask, can you check for me if the above configuration is missing any part?

    Thanks and Regards,

  • Hello,

    Just to confirm, do you need the CAN portion of this demo? There is a UART SBL demo that runs on 6843 located at C:\ti\mmwave_sdk_03_06_00_00-LTS\packages\ti\utils\sbl

    Best Regards,

    Pedrhom

  • Thanks for the feedback
    My application does not use CAN and it only uses UART to write to QSPI_FLASH, I built it based on C:\ti\mmwave_sdk_03_06_00_00-LTS\packages\ti\utils\sbl. All works fine when in Debug mode (ICBOOST + IWR6843AOP), but I encountered problems as mentioned above in the post.

    I'm sure my project configuration is having problems. please help me come up with ideas to solve this problem Slight smile

    Thanks and Regards,

  • Hello,

    There is nothing that immediately sticks out to me as an issue although you are right it is likely related to project. Does the "xwr68xx_sbl.bin" file in C:\ti\mmwave_sdk_03_06_00_00-LTS\packages\ti\utils\sbl properly function for you?

    You could attempt to use 6843 build settings as the CAN_SDL project is old while the out of box demo in SDK3.6 is new. So you could try using the postBuild steps used in out_of_box_6843_aop.projectspec found in the Radar Toolbox.

    Best Regards,

    Pedrhom