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.

RTOS/PROCESSOR-SDK-AM57X: UART example build issue

Part Number: PROCESSOR-SDK-AM57X

Tool/software: TI-RTOS

Hi,

I'm trying to build example from .\..\pdk_am57xx_1_0_9\packages\ti\drv\uart\example\uart_intr_mode_app\src\.

I use the uartSample.cfg and uart_intr_test.c present in uart_intr_mode_app

Find the build log and CCS project attached.

Thanks in advance

**** Build of configuration Debug for project uart_read ****

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O 
gmake[1]: Entering directory 'D:/Embedded/IP_project/ccs_v7_playground/uart_read/Debug'
'Building file: ../app.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_50_03_33_core/xs" --xdcpath="C:/ti/ctoolslib_2_2_0_0/packages;C:/ti/dsplib_c66x_3_4_0_0/packages;C:/ti/edma3_lld_2_12_05_30B/packages;C:/ti/framework_components_3_40_02_07/packages;C:/ti/framework_components_3_40_02_07/examples;C:/ti/imglib_c66x_3_1_1_0/packages;C:/ti/ipc_3_47_00_00/packages;C:/ti/mathlib_c66x_3_1_1_0/packages;C:/ti/MSP430Ware_3_50_00_04/driverlib/packages;C:/ti/MSP432Ware_3_50_00_02/driverlib/packages;C:/ti/ndk_2_26_00_08/packages;C:/ti/openmp_dsp_am57xx_2_06_01_00/packages;C:/ti/bios_6_52_00_12/packages;C:/ti/uia_2_21_02_07/packages;C:/ti/opencl_rtos_am57xx_01_01_13_00/packages;C:/ti/xdais_7_24_00_04/packages;C:/ti/xdais_7_24_00_04/examples;C:/ti/pdk_am57xx_1_0_9/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evmAM572X -r debug -c "C:/ti/ti-cgt-c6000_8.2.2" --compileOptions "-g --optimize_with_debug" "../app.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring app.xe66 from package/cfg/app_pe66.cfg ...
generating custom ti.sysbios library makefile ... 
Starting build of library sources ...
making D:/Embedded/IP_project/ccs_v7_playground/uart_read/src/sysbios/sysbios.ae66 ...
gmake[1]: Entering directory `D:/Embedded/IP_project/ccs_v7_playground/uart_read/src/sysbios'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `D:/Embedded/IP_project/ccs_v7_playground/uart_read/src/sysbios'
Build of libraries done.
cle66 package/cfg/app_pe66.c ...
'Finished building: ../app.cfg'
' '
gmake[1]: Leaving directory 'D:/Embedded/IP_project/ccs_v7_playground/uart_read/Debug'
'Building file: ../main.c'
'Invoking: C6000 Compiler'
"C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6600 --include_path="D:/Embedded/IP_project/ccs_v7_playground/uart_read" --include_path="C:/ti/ti-cgt-c6000_8.2.2/include" --define=am5728 --define=core1 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="main.d_raw" --cmd_file="configPkg/compiler.opt" "../main.c"
'Finished building: ../main.c'
' '
'Building target: uart_read.out'
'Invoking: C6000 Linker'
"C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6600 --define=am5728 --define=core1 -g --diag_warning=225 --diag_wrap=off --display_error_number -z -m"uart_read.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/ti-cgt-c6000_8.2.2/lib" -i"C:/ti/ti-cgt-c6000_8.2.2/include" --reread_libs --define=CORE1=1 --diag_wrap=off --display_error_number --warn_sections --xml_link_info="uart_read_linkInfo.xml" --rom_model -o "uart_read.out" "./main.obj" -l"configPkg/linker.cmd" -llibc.a 
<Linking>

 undefined  first referenced
  symbol        in file     
 ---------  ----------------
 UART_init  ./main.obj      
 UART_open  ./main.obj      
 UART_read  ./main.obj      
 UART_write ./main.obj      

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "uart_read.out" not built

>> Compilation failure
makefile:140: recipe for target 'uart_read.out' failed
gmake[1]: *** [uart_read.out] Error 1
makefile:136: recipe for target 'all' failed
gmake: *** [all] Error 2

**** Build Finished ****
uart_read.zip

  • The RTOS team have been notified. They will respond here.
  • You are meant to generate the CCS Projects using PDK Project create script in the package. Please review the document:
    processors.wiki.ti.com/.../Rebuilding_The_PDK

    Note: You need to complete steps in Getting started guide :
    processors.wiki.ti.com/.../Processor_SDK_RTOS_Getting_Started_Guide

    Here is a video that you can follow to generate building and runninng driver example on AM57xx GP EVM:
    www.youtube.com/watch

    After reviewing if you are still having issue let us know aand we can provide further guidance.

    Regards,
    Rahul
  • I'm able to build and aware for the PDK project creation using batch script. The batch script doesn't build the project that contains example from
    " .\..\pdk_am57xx_1_0_9\packages\ti\drv\uart\example\uart_intr_mode_app\src\".

    I create a new ccs project add the files uartSample.cfg and uart_intr_test.c present in uart_intr_mode_app and try to build it. Build errors occur. Can i know what is going wrong with building of project using these files.
  • what is the intent of using this example code? My understanding is that this is legacy code example for the UART driver that is not integrated with the UART test example. If you see the test code, the UART_TEST_ID_INT corresponds to the test that is used to check non-DMA, CPU interrupt based read, write operation in blocking mode similar to the example that you are referring to.

    You can create an example using that source code as well but ensure that the correct compiler Defines for SOC and compiler options are enabled to setup the project similar to the UART_BasicExample_evmAM572x_armExampleProject or UART_BasicExample_evmAM572x_armTestproject

    Regards,
    Rahul