Can't open /dev/ttyRPMSG0 :(
I'm trying execution code:
#define DEVICE "/dev/ttyRPMSG0"
int main(void)
{
int fd;
struct termios tty;
char buf[100];
int len;
printf("Opening device...\n");
fd = open( DEVICE, O_RDWR | O_NOCTTY | O_NDELAY ); // read/write, no console, no delay
if ( fd < 0 )
{
printf("Error, cannot open device\n");
return 1;
}
}But, always get: Error, cannot open device. :(
I think, that in my Linux system there is no driver for this device: /dev/ttyRPMSG0.
What am I doing wrong?
How to create and manage a device /dev/ttyRPMSG0 from a program correctly?
Board: STM32MP157C-DK2
Many thanks.



