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.

Compiler/PROCESSOR-SDK-AM65X: Project setup issue

Part Number: PROCESSOR-SDK-AM65X

Tool/software: TI C/C++ Compiler

Hi all,

I am attempting to create and setup the CAN-ETH gateway example project in CCS. To do this I simply create a project for the R5 core, import the source and build configuration files from "C:\ti\processor_sdk_rtos_am65xx_5_03_00_07\demos\gateway-demos\can-eth-gateway\build" and try to setup up the correct paths and directories from there. I am using the following version:

- CCS v9.1.0.00010

- Processor SDK RTOS for AM65xx v5.03.00.07

- Compiler: TI v18.1.5.LTS

- XDC Tools: v 3.55.2.22

 - The archive file of my project can be found here to reproduce my error: gatewayapp_project.zip

I obviously expect a lot of errors during during this process, but would greatly apprecaite some assistance. This project requires Posix support for the socketndk.h file to work correctly, however when I try to build my project, I get the following error from the socketndk.h file:

 - cannot open source file "sys/time.h"

I find this strange, as the include directory for this file is specified via the ${xdc_find:ti/posix/ccs:${ProjName}} path:

It seems to be detected correctly at the includes files as well:

It is thus expected that the TI Posix "time.h" file should be linked to the project successfully. I managed to fix this error by defning my own Path Variable to the directory "C:\ti\bios_6_75_02_00\packages\ti\posix\ccs\sys", and edited the code in the socketndk.h file to "#include <time.h>" instead of "#include <sys/time.h>. Is there a beter solution to this that does not require me to edit the NDK header file? I refer to the following thread as well: https://e2e.ti.com/support/tools/ccs/f/81/t/740620

Please let me know if any other information is required.

I look forward to hearing from you.

Regards,

Johnny

  • Hi all,

    Nevermind I managed to fix this issue without having to change the header files.

    Had to include "${BIOS_CG_ROOT}/packages/ti/posix/ccs" under XDCtools Package Repositories. Once again I do not know why this does not happen automatically when creating projects.

  • Johnny,

    Thanks for sharing the solution with the E2E community. I will try to check with the system test team why this didn`t show up in their tests and let you know.

    Regards,

    Rahul

  • Hi Rahul,

    Thanks for your repply.

    As far as I know, this example project can only be created from the command line and the makefiles at the moment. Thus I am attempting to import and build it from CCS myself. Do you know if this can be done yet without me having to import the source files and manually add all the paths and directories? Is the project already created somewhere by chance in CCS which I can just import?

    Otherwise I am not too sure if the team would have came across this issue... However if they did, I look forward to their assistance!

    Regards,

    Johnny