AnsweredAssumed Answered

"sys/termios.h: No such file or directory" error when I run RPMSG application

Question asked by mmmtq oper on Apr 5, 2020
Latest reply on Apr 6, 2020 by Yuri Muhin

Hi, I was trying to use Eclipse with GNU ARM add-on to compile this code that uses /dev/ttyRPMSG to sends data from Linux to the Cortex-M4 processor (I'm using i.mx 6SX SABRE SDB). but the compiler gives me this error:

 


/home/user/opt/xPacks/@xpack-dev-tools/arm-none-eabi-gcc/9.2.1-1.1.1/.content/arm-none-eabi/include/termios.h:4:10: fatal error: sys/termios.h: No such file or directory
4 | #include <sys/termios.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
src/subdir.mk:21: recipe for target 'src/common.o' failed
make: *** [src/common.o] Error 1

 


I believe that sys/termios doesn't exist in the compiler files so nothing is missing in my files, so I think I should use a debugger to run the code on the board, but Unfortunately I don't have a one. Is there any solution that doesn't require using debuggers? I want to write a Linux C code that sends data to the Cortex-M4 processor.

Outcomes