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.
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.