Hi Chase ,
I tried reproducing the issue , but it worked fine for me.
I suspect this to be related to build issues of Legato Framework
Please follow the below steps
1.Download the source for legato 16.10.3
2.Make Sure you have toolchain for wp750x
3.run make wp750x on your legato root.
4.After build is successfull set environment using
5.Go to your application folder and build your app with mkapp tool
mkapp -t wp750x ttyTest.adef
6.Install your Application using instapp tool
instapp ttyTest.wp750x.update 192.168.2.2
- In your target root
you can check your application installed.
Also , Make sure same legato version/framework is running on the target
Secondly , there was one issue in the application
As your are trying to open /dev/ttyS0 (in my case Console on target is /dev/ttyHS0)
add that to your .adef as below
[rw] /dev/ttyHS0 /dev/ttyHS0
I made the above changes in .adef before building application .
as it was not able to open the device path (though it existed)
I can see below logs of test cases execution
5. I can see below logs
Jan 6 02:40:29 swi-mdm9x15 user.warn kernel: [ 1690.436166] msm_serial_hs: Rx break
Jan 6 02:40:29 swi-mdm9x15 user.info Legato: INFO | ttyTest/ttyTestComponent T=main | ttyTest.c ttyTestComponentCOMPONENT_INIT() 319 | ======== Tty Test Completed Successfully ========
Jan 6 02:40:29 swi-mdm9x15 user.info Legato: INFO | supervisor/supervisor T=main | proc.c proc_SigChildHandler() 1942 | Process 'ttyTest' (PID: 4077) has exited with exit code 0.
Jan 6 02:40:29 swi-mdm9x15 user.warn Legato: -WRN- | appStopClient/framework T=main | LEFILENAME CreateSocket() 550 | Socket opened as standard i/o file descriptor 2!
Jan 6 02:40:29 swi-mdm9x15 user.info Legato: INFO | supervisor/supervisor T=main | apps.c DeactivateAppContainer() 340 | Application 'ttyTest' has stopped
If build environment is proper , i think this will solve the issue.