Part Number: BEAGLEBK
Tool/software: Linux
unable to compile linux header files based header files compile in ccs , but able to compile in beagle bone root directory which include am335x sdk (5.0.02).
for example :
#include <fcntl.h>
#include <termios.h>
#include <unistd.h>
#include <stdio.h>
int fd; /* port file descriptor */
char port[20] = "/dev/ttyS1"; /* port to connect to */
speed_t baud = B9600; /* baud rate */
int i = 0;
int main(){
printf("opening port ");
fd = open(port, O_RDWR); /* connect to port */
......}
the above code unable to compile in ccs .
/opt/ti/ccs900/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major/arm-none-eabi/include/termios.h:4:10: fatal error: sys/termios.h: No such file or directory.
but able to compile in directory of beagle bone which has am335x sdk version and linux version-- linux-4.1.18+.
compl steps : gcc main.c -o main.o ---> ./main.o