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/AM5749: Diagnostics build issue

Part Number: AM5749

Tool/software: Code Composer Studio

Hello,

I'm working with the EVM AM5749 board and I would like to test some bare metal firmware runing into the DSP core.

For this I folowed the instructions http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_board.html#building-the-examples

When I launch the gmake command, it results to the following error:

C:\ti\pdk_am57xx_1_0_14\packages\ti\board\diag>gmake idkAM574x
gmake buildtarget bboard=idkAM574x btests=idkAM574x_DIAG
gmake[1]: Entering directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag'
gmake -C dcan BOARD=idkAM574x TARGET=armv7 BOOTMODE=
gmake[2]: Entering directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan'
gmake -f ./build/idkAM574x/armv7/makefile
gmake[3]: Entering directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan'
linking C:ti/pdk_am57xx_1_0_14/packages/ti/board/obj/idkAM574x/armv7/dcan_loopback_app_main.o C:ti/pdk_am57xx_1_0_14/packages/ti/board/obj/idkAM574x/armv7/diag_entry.ao into C:ti/pdk_am57xx_1_0_14/packages/ti/board/bin/idkAM574x/armv7/dcan_diagExample_idkAM574x_armv7.out ...
C:ti/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc: not found
gmake[3]: *** [build/idkAM574x/armv7/makefile:103: C:\ti/pdk_am57xx_1_0_14/packages/ti/board/bin/idkAM574x/armv7/dcan_diagExample_idkAM574x_armv7.out] Error 127
gmake[3]: Leaving directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan'
gmake[2]: *** [makefile:119: build_example] Error 2
gmake[2]: Leaving directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan'
gmake[1]: *** [makefile:134: dcan_build] Error 2
gmake[1]: Leaving directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag'
gmake: *** [makefile:118: idkAM574x] Error 2

It seems that "arm-none-eabi-gcc.exe" is not found but the file exist.

please could you tell me where I'm wrong?

Regards,

Sylvain.

  • Hi,

    You need to setup the environment first:

    c:\ti>cd processor_sdk_rtos_am57xx_5_03_00_07

    c:\ti\processor_sdk_rtos_am57xx_5_03_00_07>setupenv.bat
    ***************************************************
    Environment Configuration:
    ***************************************************
    SDK_INSTALL_PATH : C:/ti
    GMAKE_INSTALL_PATH : C:/ti/xdctools_3_51_01_18_core
    RULES_MAKE : C:/ti/pdk_am57xx_1_0_14/packages/Rules.make
    ***************************************************
    IPC_PLATFORM: DRA7XX
    IPC_ALT_PLATFORM: AM572X AM571X
    PROC_SDK_INSTALL_PATH : C:/ti/processor_sdk_rtos_am57xx_5_03_00_07
    **************************************************************************
    Changing to short name to support directory names containing spaces
    current directory: C:/ti/processor_sdk_rtos_am57xx_5_03_00_07
    PROCESSOR SDK BUILD ENVIRONMENT CONFIGURED
    **************************************************************************

    c:\ti\processor_sdk_rtos_am57xx_5_03_00_07>cd ..\pdk_am57xx_1_0_14\packages\ti\board\diag

    c:\ti\pdk_am57xx_1_0_14\packages\ti\board\diag>gmake idkAM574x
    gmake buildtarget bboard=idkAM574x btests=idkAM574x_DIAG
    gmake[1]: Entering directory 'c:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag'
    gmake -C dcan BOARD=idkAM574x TARGET=armv7 BOOTMODE=
    gmake[2]: Entering directory 'c:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan'
    gmake -f ./build/idkAM574x/armv7/makefile
    gmake[3]: Entering directory 'c:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan'
    compiling C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan/src/dcan_loopback_app_main.c ...
    C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan/src/dcan_loopback_app_main.c: In function 'main':
    C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan/src/dcan_loopback_app_main.c:588:23: warning: unused variable 'siliconRev' [-Wunused-variable]
    uint32_t siliconRev;
    ^~~~~~~~~~
    compiling C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/common/AM574x/diag_entry.S ...
    C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/common/AM574x/diag_entry.S: Assembler messages:
    C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/common/AM574x/diag_entry.S:262: Warning: register range not in ascending order
    C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/common/AM574x/diag_entry.S:262: Warning: writeback of base register when in register list is UNPREDICTABLE
    linking C:/ti/pdk_am57xx_1_0_14/packages/ti/board/obj/idkAM574x/armv7/dcan_loopback_app_main.o C:/ti/pdk_am57xx_1_0_14/packages/ti/board/obj/idkAM574x/armv7/diag_entry.ao into C:/ti/pdk_am57xx_1_0_14/packages/ti/board/bin/idkAM574x/armv7/dcan_diagExample_idkAM574x_armv7.out ...
    gmake[3]: Leaving directory 'c:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan'
    gmake[2]: Leaving directory 'c:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan'
    gmake -C eeprom BOARD=idkAM574x TARGET=armv7 BOOTMODE=
    gmake[2]: Entering directory 'c:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/eeprom'
    gmake -f ./build/idkAM574x/armv7/makefile
    gmake[3]: Entering directory 'c:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/eeprom'
    compiling C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/eeprom/src/eeprom_test.c ...
    linking C:/ti/pdk_am57xx_1_0_14/packages/ti/board/obj/idkAM574x/armv7/eeprom_test.o C:/ti/pdk_am57xx_1_0_14/packages/ti/board/obj/idkAM574x/armv7/diag_entry.ao into C:/ti/pdk_am57xx_1_0_14/packages/ti/board/bin/idkAM574x/armv7/eeprom_diagExample_idkAM574x_armv7.out ...
    gmake[3]: Leaving directory 'c:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/eeprom'
    gmake[2]: Leaving directory 'c:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/eeprom'
    gmake -C emmc BOARD=idkAM574x TARGET=armv7 BOOTMODE=
    gmake[2]: Entering directory 'c:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/emmc'
    gmake -f ./build/idkAM574x/armv7/makefile
    gmake[3]: Entering directory 'c:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/emmc'
    compiling C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/emmc/src/emmc_main.c ...
    linking C:/ti/pdk_am57xx_1_0_14/packages/ti/board/obj/idkAM574x/armv7/emmc_main.o C:/ti/pdk_am57xx_1_0_14/packages/ti/board/obj/idkAM574x/armv7/diag_entry.ao into C:/ti/pdk_am57xx_1_0_14/packages/ti/board/bin/idkAM574x/armv7/emmc_diagExample_idkAM574x_armv7.out ...
    gmake[3]: Leaving directory 'c:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/emmc'
    gmake[2]: Leaving directory 'c:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/emmc'

    Regards, Eric

  • Hi Eric,

    I followed your recommandations but i still have the same issue:

    C:\ti\processor_sdk_rtos_am57xx_5_03_00_07>setupenv.bat
    ***************************************************
    Environment Configuration:
    ***************************************************
        SDK_INSTALL_PATH        : C:\ti
        GMAKE_INSTALL_PATH      : C:/ti/xdctools_3_51_01_18_core
        RULES_MAKE              : C:\ti/pdk_am57xx_1_0_14/packages/Rules.make
    ***************************************************
        IPC_PLATFORM: DRA7XX
        IPC_ALT_PLATFORM: AM572X AM571X
        PROC_SDK_INSTALL_PATH     : C:/ti/processor_sdk_rtos_am57xx_5_03_00_07
    **************************************************************************
    Changing to short name to support directory names containing spaces
    current directory: C:/ti/processor_sdk_rtos_am57xx_5_03_00_07
    PROCESSOR SDK BUILD ENVIRONMENT CONFIGURED
    **************************************************************************

    C:\ti\processor_sdk_rtos_am57xx_5_03_00_07>cd C:\ti\pdk_am57xx_1_0_14\packages\ti\board\diag

    C:\ti\pdk_am57xx_1_0_14\packages\ti\board\diag>gmake idkAM574x
    gmake buildtarget bboard=idkAM574x btests=idkAM574x_DIAG
    gmake[1]: Entering directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag'
    gmake -C dcan BOARD=idkAM574x TARGET=armv7 BOOTMODE=
    gmake[2]: Entering directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan'
    gmake -f ./build/idkAM574x/armv7/makefile
    gmake[3]: Entering directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan'
    linking C:ti/pdk_am57xx_1_0_14/packages/ti/board/obj/idkAM574x/armv7/dcan_loopback_app_main.o C:ti/pdk_am57xx_1_0_14/packages/ti/board/obj/idkAM574x/armv7/diag_entry.ao into C:ti/pdk_am57xx_1_0_14/packages/ti/board/bin/idkAM574x/armv7/dcan_diagExample_idkAM574x_armv7.out ...
    C:ti/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc: not found
    gmake[3]: *** [build/idkAM574x/armv7/makefile:103: C:\ti/pdk_am57xx_1_0_14/packages/ti/board/bin/idkAM574x/armv7/dcan_diagExample_idkAM574x_armv7.out] Error 127
    gmake[3]: Leaving directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan'
    gmake[2]: *** [makefile:119: build_example] Error 2
    gmake[2]: Leaving directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan'
    gmake[1]: *** [makefile:134: dcan_build] Error 2
    gmake[1]: Leaving directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag'
    gmake: *** [makefile:118: idkAM574x] Error 2

    Regards,

    Sylvain.

  • Hi,

    From your log, there is no source code compilation, it just went directly to linking 

    linking C:ti/pdk_am57xx_1_0_14/packages/ti/board/obj/idkAM574x/armv7/dcan_loopback_app_main.o C:ti/pdk_am57xx_1_0_14/packages/ti/board/obj/idkAM574x/armv7/diag_entry.ao into C:ti/pdk_am57xx_1_0_14/packages/ti/board/bin/idkAM574x/armv7/dcan_diagExample_idkAM574x_armv7.out ...
    C:ti/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc: not found

    That means you must compiled the code before? How do you compile it without issue finding the same GCC compiler? What is your host PC? Why there is no slash ("/") in "C:/ti/..."?

    Regards, Eric

  • Hi Eric,

    I have no idea why there is no slash in C:ti... I also noticed but I cant explain. I checked the makefiles but i didn't find anything.

    I just followed the instructions of the starter guide by installing the pdk first. the "gmake" procedure worked well for this purpose.

    I'm just surprised that "gmake" fails for the diag...

    Regards,

    Sylvain.

  • Hi,

    Then, how do you compile the source code without error? Can you do a clean first and then attach the full build log?

    • make <BOARD>_clean - clean and remove all application for one specific BOARD
    • make <BOARD>_sd - compile all diagnostic applications for one specific BOARD and create the SD card loadable files with those compiled applications

    Regards, Eric

  • Hi Eric,

    The clean works well but the compilation does not:

    C:\ti\pdk_am57xx_1_0_14\packages\ti\board\diag>gmake idkAM574x_sd
    gmake sdtarget sboard=idkAM574x bboot=SD
    gmake[1]: Entering directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag'
    gmake buildtarget bboard=idkAM574x btests=idkAM574x_DIAG
    gmake[2]: Entering directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag'
    gmake -C dcan BOARD=idkAM574x TARGET=armv7 BOOTMODE=SD
    gmake[3]: Entering directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan'
    gmake -f ./build/idkAM574x/armv7/makefile
    gmake[4]: Entering directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan'
    compiling C:ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan/src/dcan_loopback_app_main.c ...
    C:\ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan/src/dcan_loopback_app_main.c: In function 'main':
    C:\ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan/src/dcan_loopback_app_main.c:588:23: warning: unused variable 'siliconRev' [-Wunused-variable]
         uint32_t          siliconRev;
                           ^~~~~~~~~~
    compiling C:ti/pdk_am57xx_1_0_14/packages/ti/board/diag/common/AM574x/diag_entry.S ...
    C:\ti/pdk_am57xx_1_0_14/packages/ti/board/diag/common/AM574x/diag_entry.S: Assembler messages:
    C:\ti/pdk_am57xx_1_0_14/packages/ti/board/diag/common/AM574x/diag_entry.S:262: Warning: register range not in ascending order
    C:\ti/pdk_am57xx_1_0_14/packages/ti/board/diag/common/AM574x/diag_entry.S:262: Warning: writeback of base register when in register list is UNPREDICTABLE
    linking C:ti/pdk_am57xx_1_0_14/packages/ti/board/obj/idkAM574x/armv7/dcan_loopback_app_main.o C:ti/pdk_am57xx_1_0_14/packages/ti/board/obj/idkAM574x/armv7/diag_entry.ao into C:ti/pdk_am57xx_1_0_14/packages/ti/board/bin/idkAM574x/armv7/dcan_diagExample_idkAM574x_armv7.out ...
    C:ti/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc: not found
    gmake[4]: *** [build/idkAM574x/armv7/makefile:103: C:\ti/pdk_am57xx_1_0_14/packages/ti/board/bin/idkAM574x/armv7/dcan_diagExample_idkAM574x_armv7.out] Error 127
    gmake[4]: Leaving directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan'
    gmake[3]: *** [makefile:119: build_example] Error 2
    gmake[3]: Leaving directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag/dcan'
    gmake[2]: *** [makefile:134: dcan_build] Error 2
    gmake[2]: Leaving directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag'
    gmake[1]: *** [makefile:118: idkAM574x] Error 2
    gmake[1]: Leaving directory 'C:/ti/pdk_am57xx_1_0_14/packages/ti/board/diag'
    gmake: *** [makefile:138: idkAM574x_sd] Error 2

    That's strange...

  • Hi,

    I don't know what happened in your Windows PC. Are you able to re-install the Processor SDK RTOS 5.3? Or try a different PC? We don't have such problem reported before.

    Also, you may try to add some print inside the makefile to see how this is missed? https://stackoverflow.com/questions/16467718/how-to-print-out-a-variable-in-makefile 

    $(info $$var is [${var}])

    Regards, Eric