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