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.

J721EXSOMXEVM: Error while building example application

Part Number: J721EXSOMXEVM


Tool/software:

Hello.

I am trying to build UART_BAremetal_TestApp, but getting the following error:

home/ti-processor-sdk-rtos-j721e-evm-10_01_00_04/pdk_jacinto_10_01_00_25/packages/ti/build/makerules/common.mk:365: *** gcc-arm compiler not found. Please refer user guide to download the same. Stop.
make: *** [makefile:328: UART_Baremetal_TestApp] Error 2

I have checked the paths for the compilers and everything seems to be correct.

I tried changing the path (elaborated by the variables) to hard coded absolute path of the compilers, still getting the same error.

Kindly help me proceed.

Thank you. 

  • Hi,

    What core are you building the application for? 

    Have you ran the setup script within the RTOS SDK directory? Can you provide the compilers you currently have downloaded?

    Thanks,

    Neehar

  • Hello Neehar.

    I am building it for the MCU R5F core (mcu0_1).

    Yes, I have ran the script from the RTOS SDK directory (./sdk_builder/scripts/setup_psdk_rtos.sh).

    Following compilers are present in /home/ti directory:

    1. gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf

    2. gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf

    3. ti-cgt-armllvm_3.2.2.LTS

    4. ti-cgt-c6000_8.3.7

    5. ti-cgt-c7000_4.1.0.LTS

    SDK Version: 10_01_00

    The error seems to be SBL related, from the lines:

    ifneq ("$(wildcard $(TOOLCHAIN_PATH_GCC_ARCH64)/bin/$(GCC_ARCH64_BIN_PREFIX)-objcopy$(EXE_EXT))","")
    SBL_OBJ_COPY?=$(TOOLCHAIN_PATH_GCC_ARCH64)/bin/$(GCC_ARCH64_BIN_PREFIX)-objcopy$(EXE_EXT)
    else
    $(error gcc-arm compiler not found. Please refer user guide to download the same)
    endif

    Thank you.

  • Hi Arun,

    Your compilers look correct from what I can see.

    Can you provide the exact command you run in the terminal?

    Additionally, did you have any issues building the PDK libraries?

    Thanks,

    Neehar

  • Hi Neehar.

    The exact command I gave is: make -s UART_Baremetal_TestApp BOARD=j721e_evm CORE=mcu1_0.

    I had no issues while building the PDK libraries using, make -s pdk_libs_allcores BOARD=j721e_evm.

    Thanks.

  • Hi Arun,

    Have you made any changes to the SDK or build files? Is this a new, clean SDK installation?

    Do you have the same issue building any other examples? Such as: 'make -s sciserver_testapp_freertos BOARD=j721e_evm'

    If so, could you try deleting all the compilers from the /home/ti directory and reinstall them? You can manually install them here.

    Thanks,

    Neehar

  • Hello Neehar.

    I was away for a while and hence couldn't reply.

    It was definitely a path issue. All i did was export TOOLS_INSTALL_PATH=/home/ti .

    Thanks for the support and responses.

    Now that it has generated the example application, there are different appimage formats, where can i find more information on which format suits where? 

    For example, if i want to load the image using remoteproc, what format should be used. Or if i want to load using SBL, or through rproc on Linux.

    Generated formats:

    <app>.appimage, <app>.hs_fs, <app>.signed, <app>.rprc, <app>.xerf5, <app>_strip.xerf5, <app>_BE.appimage

    Thank you!

  • Hi Arun,

    This is deviating from the original title. Could you please create a new E2E thread and tag me? We will be able to assist you with your issue there!

    Thanks,

    Neehar