I have created an photon application, where data can be recieved. the procedure is 6 bytes of hex data is writen to serial port and immediately the serial port acts as reciever. the data recieved is show as a tabler format in this reciever GUI application. This application is working fine on x86 but the program is not working when built for ppc core ml403 board and is giving error. The program is running on ppc but when it is trying to read from serial port it is giving error and terminating
Below is the part of the reciever program and the error it is givin.
fd = open("/dev/ser1", O_RDWR | O_NOCTTY | O_NDELAY);//we are opening the serial port as above
write(fd,&value,len);// writing buffer to serial port
read(fd, sResult, n); // reading from the serial port to buffer
The error coming for ppc core board is:
Process 114705 (receive) terminated SIGS EGV code= 2fltno=11
ip= fe35833c mapaddr= 0005833c .ref=48040000…
Please help us to resolve this error.
Thanks and regards