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/AM5728: LED blink project question

Part Number: AM5728
Other Parts Discussed in Thread: CCSTUDIO, SYSBIOS

Tool/software: Code Composer Studio

Hi there,

I'm trying to work through the steps in "http://processors.wiki.ti.com/index.php/Linux_IPC_on_AM57xx#Adding_IPC_to_an_existing_TI_RTOS_application_on_the_DSP" 

However, there doesn't appear to be a configuration for building out GPIO_LedBlink_evmAM572x_c66xExampleProject using " ./pdkProjectCreate.sh AM572x evmAM572x little gpio all dsp"

The only boards I can see are listed below - no file for AM572x SoC...

./ti/drv/gpio/test/led_blink/k2e/c66/bios/gpio_test.cfg
./ti/drv/gpio/test/led_blink/am571x/c66/bios/gpio_test_idkAM571x.cfg
./ti/drv/gpio/test/led_blink/c6678/c66/bios/gpio_test.cfg
./ti/drv/gpio/test/led_blink/am574x/c66/bios/gpio_test_idkAM574x.cfg
./ti/drv/gpio/test/led_blink/k2l/c66/bios/gpio_test.cfg
./ti/drv/gpio/test/led_blink/k2h/c66/bios/gpio_test.cfg
./ti/drv/gpio/test/led_blink/c6657/c66/bios/gpio_test.cfg
./ti/drv/gpio/test/led_blink/k2g/c66/bios/gpio_test_ice.cfg
./ti/drv/gpio/test/led_blink/k2g/c66/bios/gpio_test.cfg

If I use the propject included on the webpage (http://processors.wiki.ti.com/images/c/c9/GPIO_LedBlink_evmAM572x_c66xExampleProject_with_ipc.zip


make: *** target pattern contains no '%'. Stop. subdir_rules.mk /GPIO_LedBlink_evmAM572x_c66xExampleProject_with_ipc/Debug line 6 C/C++ Problem

The subdir_rules.mk error looks to be because the zipped project was built out on a Windows build host:

GPIO_evmAM572x_board.obj: /C:/ti/pdk_am57xx_1_0_4/packages/ti/drv/gpio/example/led_blink/src/am572x/GPIO_evmAM572x_board.c $(GEN_OPTS) | $(GEN_HDRS)
@echo 'Building file: "$<"'
@echo 'Invoking: C6000 Compiler'
"/home/dmurphy/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6600 --include_path="C:/ti/pdk_am57xx_1_0_4/packages/ti/drv/gpio" --include_path="/home/dmurphy/ti/ti-cgt-c6000_8.2.2/include" -g --define=SOC_AM572x --define=EVM_AM572X --define=USE_BIOS --define=C66X --define=NSS_GEN2 --display_error_number --diag_wrap=off --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_warning=225 --diag_warning=994 --diag_warning=262 --preproc_with_compile --preproc_dependency="GPIO_evmAM572x_board.d_raw" $(GEN_OPTS__FLAG) "$(shell echo $<)"
@echo 'Finished building: "$<"'
@echo ' '

So I'd prefer to be able to build out the project on my Linux build host rather than trying to troubleshoot the project zip file from the web page.

Is there a ./ti/drv/gpio/test/led_blink/am571x/c66/bios/gpio_test_idkAM571x.cfg equivalent file for AM572x SoC & evmAM572x board?

Any suggestions welcome.

Thanks,

Dermot

  • The RTOS team have been notified. They will respond here.
  • Hi,

    It looks that you are looking for a GPIO test example on AM572x GP EVM, C66x core. I am not sure what Processor SDK RTOS release you worked with, here is mine, the latest 5.0 release:


    c:\ti\pdk_am57xx_1_0_11\packages>pdkProjectCreate.bat AM572x evmAM572x little gpio all dsp
    =========================================================================
    Configuration:
    SOC : AM572x
    BOARD : evmAM572x
    ENDIAN : little
    MODULE : gpio
    PROJECT_TYPE : all
    PROCESSOR : dsp
    PDK_SHORT_NAME : c:\ti\PDK_AM~1\packages\
    =========================================================================
    Checking Configuration...
    Complete
    =========================================================================
    PDK_PARTNO : AM572X
    PDK_ECLIPSE_ID : com.ti.pdk.am57xx
    RTSC_PLATFORM_NAME : ti.platforms.evmAM572X
    RTSC_TARGET : ti.targets.elf.C66
    CCS_DEVICE : "com.ti.ccstudio.deviceModel.C6000.GenericC64xPlusDevice"
    *****************************************************************************
    Detecting all projects in PDK and importing them in the workspace c:\ti\PDK_AM~1\packages\\MyExampleProjects
    Detected Test Project: GPIO_LedBlink_evmAM572x_c66xTestProject

    --------------------------------------------------------------------------------
    Creating project 'GPIO_LedBlink_evmAM572x_c66xTestProject'...


    Done!
    Copying macros.ini
    1 file(s) copied.
    No projects detected
    Project generation complete
    *****************************************************************************

    c:\ti\pdk_am57xx_1_0_11\packages>

    In the test project, the .cfg is pdk_am57xx_1_0_11\packages\ti\drv\gpio\test\led_blink\am572x\c66\bios\gpio_test_evmAM572x.cfg.

    I have no issue to build it:

    **** Build of configuration Debug for project GPIO_LedBlink_evmAM572x_c66xTestProject ****

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

    Building file: "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio/test/led_blink/am572x/c66/bios/gpio_test_evmAM572x.cfg"
    Invoking: XDCtools
    "C:/ti/xdctools_3_50_03_33_core/xs" --xdcpath="C:/ti/bios_6_52_00_12/packages;C:/ti/pdk_am57xx_1_0_11/packages;C:/ti/edma3_lld_2_12_05_30C/packages;C:/ti/ipc_3_47_02_00/packages;C:/ti/ndk_2_26_00_08/packages;C:/ti/uia_2_21_02_07/packages;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evmAM572X -r debug -c "C:/ti/ccs_8_0_0/ccsv8/tools/compiler/ti-cgt-c6000_8.2.2" "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio/test/led_blink/am572x/c66/bios/gpio_test_evmAM572x.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring gpio_test_evmAM572x.xe66 from package/cfg/gpio_test_evmAM572x_pe66.cfg ...
    generating custom ti.sysbios library makefile ...
    Linking with library ti.board:./lib/evmAM572x/c66/release/ti.board.ae66
    Linking with library ti.drv.spi:./lib/c66/release/ti.drv.spi.ae66
    Linking with library ti.drv.i2c:./lib/am572x/c66/release/ti.drv.i2c.ae66
    Linking with library ti.drv.uart:./lib/c66/release/ti.drv.uart.ae66
    Linking with library ti.drv.gpio:./lib/c66/release/ti.drv.gpio.profiling.ae66
    Linking with library ti.utils.profiling:./lib/c66/release/ti.utils.profiling.ae66
    Linking with library ti.csl:./lib/am572x/c66/release/ti.csl.ae66
    Linking with library ti.osal:./lib/tirtos/c66/release/ti.osal.ae66
    Starting build of library sources ...
    making C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio/test/led_blink/am572x/c66/bios/src/sysbios/sysbios.ae66 ...
    gmake[1]: Entering directory `C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio/test/led_blink/am572x/c66/bios/src/sysbios'
    cle66 C:/ti/bios_6_52_00_12/packages/ti/sysbios/BIOS.c ...
    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
    subsequent release. The behavior is enabled by default.
    asme66 C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Exception_asm.s64P ...
    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
    subsequent release. The behavior is enabled by default.
    asme66 C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi_asm.s62 ...
    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
    subsequent release. The behavior is enabled by default.
    asme66 C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi_asm_switch.s62 ...
    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
    subsequent release. The behavior is enabled by default.
    asme66 C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi_disp_always.s64P ...
    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
    subsequent release. The behavior is enabled by default.
    asme66 C:/ti/bios_6_52_00_12/packages/ti/sysbios/rts/ti/tls_get_tp.asm ...
    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
    subsequent release. The behavior is enabled by default.
    asme66 C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c62/TaskSupport_asm.s62 ...
    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
    subsequent release. The behavior is enabled by default.
    asme66 C:/ti/bios_6_52_00_12/packages/ti/sysbios/timers/dmtimer/Timer_asm.s64P ...
    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
    subsequent release. The behavior is enabled by default.
    are66 BIOS.obj c64p_Exception_asm.obj c64p_Hwi_asm.obj c64p_Hwi_asm_switch.obj c64p_Hwi_disp_always.obj ti_tls_get_tp.obj c62_TaskSupport_asm.obj dmtimer_Timer_asm.obj ...
    gmake[1]: Leaving directory `C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio/test/led_blink/am572x/c66/bios/src/sysbios'
    Build of libraries done.
    cle66 package/cfg/gpio_test_evmAM572x_pe66.c ...
    Finished building: "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio/test/led_blink/am572x/c66/bios/gpio_test_evmAM572x.cfg"

    Building file: "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio/test/led_blink/src/GPIO_log.c"
    Invoking: C6000 Compiler
    "C:/ti/ccs_8_0_0/ccsv8/tools/compiler/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6600 --include_path="C:/Users/a0271557/workspace_v8_template/GPIO_LedBlink_evmAM572x_c66xTestProject" --include_path="C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio" --include_path="C:/ti/ccs_8_0_0/ccsv8/tools/compiler/ti-cgt-c6000_8.2.2/include" --define=SOC_AM572x --define=evmAM572x --define=USE_BIOS --define=C66X --define=NSS_GEN2 -g --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_warning=225 --diag_warning=994 --diag_warning=262 --diag_wrap=off --display_error_number --entry_hook=ti_utils_entry --exit_hook=ti_utils_exit --entry_parm=address --exit_parm=address --preproc_with_compile --preproc_dependency="GPIO_log.d_raw" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio/test/led_blink/src/GPIO_log.c"
    Finished building: "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio/test/led_blink/src/GPIO_log.c"

    Building file: "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/uart/soc/am571x/UART_soc.c"
    Invoking: C6000 Compiler
    "C:/ti/ccs_8_0_0/ccsv8/tools/compiler/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6600 --include_path="C:/Users/a0271557/workspace_v8_template/GPIO_LedBlink_evmAM572x_c66xTestProject" --include_path="C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio" --include_path="C:/ti/ccs_8_0_0/ccsv8/tools/compiler/ti-cgt-c6000_8.2.2/include" --define=SOC_AM572x --define=evmAM572x --define=USE_BIOS --define=C66X --define=NSS_GEN2 -g --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_warning=225 --diag_warning=994 --diag_warning=262 --diag_wrap=off --display_error_number --entry_hook=ti_utils_entry --exit_hook=ti_utils_exit --entry_parm=address --exit_parm=address --preproc_with_compile --preproc_dependency="UART_soc.d_raw" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/uart/soc/am571x/UART_soc.c"
    Finished building: "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/uart/soc/am571x/UART_soc.c"

    Building file: "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio/test/led_blink/src/main_led_blink.c"
    Invoking: C6000 Compiler
    "C:/ti/ccs_8_0_0/ccsv8/tools/compiler/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6600 --include_path="C:/Users/a0271557/workspace_v8_template/GPIO_LedBlink_evmAM572x_c66xTestProject" --include_path="C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio" --include_path="C:/ti/ccs_8_0_0/ccsv8/tools/compiler/ti-cgt-c6000_8.2.2/include" --define=SOC_AM572x --define=evmAM572x --define=USE_BIOS --define=C66X --define=NSS_GEN2 -g --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_warning=225 --diag_warning=994 --diag_warning=262 --diag_wrap=off --display_error_number --entry_hook=ti_utils_entry --exit_hook=ti_utils_exit --entry_parm=address --exit_parm=address --preproc_with_compile --preproc_dependency="main_led_blink.d_raw" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio/test/led_blink/src/main_led_blink.c"
    "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio/test/led_blink/src/main_led_blink.c", line 214: warning #112-D: statement is unreachable
    Finished building: "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio/test/led_blink/src/main_led_blink.c"

    Building file: "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio/test/led_blink/src/am572x/GPIO_evmAM572x_board.c"
    Invoking: C6000 Compiler
    "C:/ti/ccs_8_0_0/ccsv8/tools/compiler/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6600 --include_path="C:/Users/a0271557/workspace_v8_template/GPIO_LedBlink_evmAM572x_c66xTestProject" --include_path="C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio" --include_path="C:/ti/ccs_8_0_0/ccsv8/tools/compiler/ti-cgt-c6000_8.2.2/include" --define=SOC_AM572x --define=evmAM572x --define=USE_BIOS --define=C66X --define=NSS_GEN2 -g --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_warning=225 --diag_warning=994 --diag_warning=262 --diag_wrap=off --display_error_number --entry_hook=ti_utils_entry --exit_hook=ti_utils_exit --entry_parm=address --exit_parm=address --preproc_with_compile --preproc_dependency="GPIO_evmAM572x_board.d_raw" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio/test/led_blink/src/am572x/GPIO_evmAM572x_board.c"
    Finished building: "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio/test/led_blink/src/am572x/GPIO_evmAM572x_board.c"

    Building file: "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio/soc/am572x/GPIO_soc.c"
    Invoking: C6000 Compiler
    "C:/ti/ccs_8_0_0/ccsv8/tools/compiler/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6600 --include_path="C:/Users/a0271557/workspace_v8_template/GPIO_LedBlink_evmAM572x_c66xTestProject" --include_path="C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio" --include_path="C:/ti/ccs_8_0_0/ccsv8/tools/compiler/ti-cgt-c6000_8.2.2/include" --define=SOC_AM572x --define=evmAM572x --define=USE_BIOS --define=C66X --define=NSS_GEN2 -g --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_warning=225 --diag_warning=994 --diag_warning=262 --diag_wrap=off --display_error_number --entry_hook=ti_utils_entry --exit_hook=ti_utils_exit --entry_parm=address --exit_parm=address --preproc_with_compile --preproc_dependency="GPIO_soc.d_raw" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio/soc/am572x/GPIO_soc.c"
    Finished building: "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/gpio/soc/am572x/GPIO_soc.c"

    Building target: "GPIO_LedBlink_evmAM572x_c66xTestProject.out"
    Invoking: C6000 Linker
    "C:/ti/ccs_8_0_0/ccsv8/tools/compiler/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6600 --define=SOC_AM572x --define=evmAM572x --define=USE_BIOS --define=C66X --define=NSS_GEN2 -g --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_warning=225 --diag_warning=994 --diag_warning=262 --diag_wrap=off --display_error_number --entry_hook=ti_utils_entry --exit_hook=ti_utils_exit --entry_parm=address --exit_parm=address -z -m"GPIO_LedBlink_evmAM572x_c66xTestProject.map" -i"C:/ti/ccs_8_0_0/ccsv8/tools/compiler/ti-cgt-c6000_8.2.2/lib" -i"C:/ti/ccs_8_0_0/ccsv8/tools/compiler/ti-cgt-c6000_8.2.2/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="GPIO_LedBlink_evmAM572x_c66xTestProject_linkInfo.xml" --rom_model -o "GPIO_LedBlink_evmAM572x_c66xTestProject.out" "./GPIO_evmAM572x_board.obj" "./GPIO_log.obj" "./GPIO_soc.obj" "./UART_soc.obj" "./main_led_blink.obj" -l"configPkg/linker.cmd" -llibc.a
    <Linking>
    Finished building target: "GPIO_LedBlink_evmAM572x_c66xTestProject.out"

    C:/ti/pdk_am57xx_1_0_11/packages/pdkAppImageCreate.bat C:/ti/pdk_am57xx_1_0_11/packages C:/ti/ccs_8_0_0/ccsv8/tools/compiler/ti-cgt-c6000_8.2.2 C:/Users/a0271557/workspace_v8_template/GPIO_LedBlink_evmAM572x_c66xTestProject/Debug GPIO_LedBlink_evmAM572x_c66xTestProject AM572x dsp
    Parsing the input object file, C:/Users/a0271557/workspace_v8_template/GPIO_LedBlink_evmAM572x_c66xTestProject/Debug/GPIO_LedBlink_evmAM572x_c66xTestProject.out.
    File conversion complete!
    Number of Input Files 1


    Regards, Eric
  • Thanks for your reply, Eric.

    I have been using the Processor SDK Linux/RTOS 4.3 which has no GPIO_LedBlink project for DSP at all. I've been trying to work through the document linked here:
    processors.wiki.ti.com/.../Linux_IPC_on_AM57xx
    ...which makes reference to running the GPIO_LedBlink_evmAM572x_c66xExampleProject on a DSP core. Like you, I also tried the Processor SDK 5.0 which does have the GPIO_LedBlink_evmAM572x_c66xTestProject if not the GPIO_LedBlink_evmAM572x_c66xExampleProject code.

    Do you know if there are significant differences between Example and Test projects or could they be used interchangeably?

    I'm also able to build out GPIO_LedBlink_evmAM572x_c66xTestProject successfully under the 5.0 SDK although when it comes to loading it onto DSP core I do get that data verification error but that's another issue which I may look at troubleshooting further if I get time. I know it's generally related to memory mismatches between the linker, debugger and device under test.

    Reference: processors.wiki.ti.com/.../Troubleshooting_CCS_-_Data_Verification_Errors

    Regards,
    Dermot
  • Hi,

    The RTOS example are intended to be run in no-boot load, using CCS/JTAG. It may not work if you use Linux to load and run, you may need to resolve resource conflict.

    The difference between test and example projects: example project is simple. The test project has more coverage, e.g, it may test more API and configurations.

    Regards, Eric
  • Thanks for following up, Eric.

    I think it would be nice if there were some one or two projects in the PDK which were capable of running under a default Arafgo Linux build without the risk of a resource conflict. Or even better, an example designed to be used with the document: processors.wiki.ti.com/.../Linux_IPC_on_AM57xx

    This could be a very valuable document to anybody trying to learn IPC if the code references and steps were fully validated.

    Thanks again,
    Dermot