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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

6,321 次查看
436103331
Contributor I

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.

标签 (2)
标记 (1)
0 项奖励
回复
1 回复

6,114 次查看
Yuri
NXP Employee
NXP Employee

Hello,

  It may be recommended to use SDK environment. Please refer to i.MX Porting Guide from

NXP Linux BSP documentation. Also the following may be helpful (how to build SDK):

https://community.nxp.com/docs/DOC-343273 

Regards,

Yuri.

0 项奖励
回复