Wp77 - testLoc sample App not working

Hello

I am just starting with mangOH red board and after successfully being able to run HelloWorld Sample App, I am trying to use textLoc Sample App.
I am using WP7702 module.

I am getting following log, which indicates some dynamic library is missing, but I am lacking information on where I should get this.

Jan 6 00:43:59 swi-mdm9x28-wp user.info Legato: INFO | supervisor[784]/supervisor T=main | app.c app_Start() 2926 | Starting app ‘textLoc’
Jan 6 00:43:59 swi-mdm9x28-wp user.info Legato: INFO | supervisor[784]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/legato/systems/current/apps/textLoc/read-only/lib/libComponent_textLocComponent.so’ to '/legato/systems/current/appsWriteable/textLo
Jan 6 00:43:59 swi-mdm9x28-wp user.info Legato: INFO | supervisor[784]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/legato/systems/current/apps/textLoc/read-only/bin/textloc’ to ‘/legato/systems/current/appsWriteable/textLoc/bin/textloc’: Already e
Jan 6 00:43:59 swi-mdm9x28-wp user.err Legato: =ERR= | textloc[3385] | textloc: symbol lookup error: /legato/apps/318207553153cf575408837f17bdd774/read-only/bin/…/lib/libComponent_textLocComponent.so: undefined symbol: le_ifgen_InitMutexRef
Jan 6 00:43:59 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[784]/supervisor T=main | app.c app_SigChildHandler() 3480 | Process ‘textloc’ in app ‘textLoc’ faulted: Ignored.
Jan 6 00:43:59 swi-mdm9x28-wp user.info Legato: INFO | supervisor[784]/supervisor T=main | apps.c DeactivateAppContainer() 374 | Application ‘textLoc’ has stopped.

I tried to update board Firmware as I thought the default delivered one would be obsolete with the application I am building, but still I get the same result.
For information, I am using following FW

root@swi-mdm9x28-wp:~# fwupdate query
Connecting to service …
Firmware Version: SWI9X06Y_02.16.06.00 7605a6 jenkins 2018/06/20 17:56:12
Bootloader Version: SWI9X06Y_02.16.06.00 7605a6 jenkins 2018/06/20 17:56:12
Linux Version: 3.18.44 #2 PREEMPT Fri Jul 20 21:01:16 UTC 2018

Thank you for any help
Regards

Hi @ltancerel, How are you compiling the application? Using command-line or DevStudio?

If you are using command line, please ensure that you are using the correct cross compiler version (https://source.sierrawireless.com/resources/airprime/software/wp77xx/wp77xx-firmware-latest-release-components/)

For command line, leaf is a better option to manage the different releases as it will pull the correct versions(for legato and tool chain etc) to use. A short example below:

  • Install leaf
  • $ leaf search -t wp77xx -t stable
  • $ leaf setup WP77_R9.1_Stable -p swi-wp77_1.3.5
  • $ leaf select WP77_R9.1_Stable
  • $cd leaf-data/WP77_R9.1_Stable/wp77-legato/apps/sample/textLoc/
  • $ leaf shell
  • $mkapp -t wp77xx textLoc.adef
  • $ app install textLoc.wp77xx.update 192.168.2.2
  • $ app status textLoc 192.168.2.2
    [running] textLoc

Hello,
thank you very much for your answer.

I am using commande line for the example provided.
I believe I have the appropriate toolchain, my install is recent

/opt/swi/SWI9X06Y_02.18.05.00/

Since I have installed Legato Framework recently, I don’t really understand why I would pick-up wrong release, if this is the case, the setup guidelines are not correct, and it is not very comfortable to work with a setup that is not capable of implementing basic examples.
Anyway, I previously installed leaf, so I am capable of using leaf instead, and I built the app the way you described. For completeness, I am using leaf version 1.8
Leaf profile I have is the following :

Included │ swi-wp77_1.10.0 │ SDK for WP77 (Release 9.1 + Legato 19.02.0)
wp77-legato_19.02.0-201903211904               Legato Framework built for WP77                      
wp77-toolchain_SWI9X06Y_02.18.05.00-linux64    GCC cross compiler Toolchain for WP77               
wp77-modem-image_9.1                           Modem Firmware Image for WP77                        
wp77-legato-image_19.02.0-201903211904         Legato Image for WP77 
wp77-linux-image_SWI9X06Y_02.18.05.00          Linux Image for WP77
wp77-image_1.10.0                              Device Image for WP77 (Release 9.1 + Legato 19.02.0)

The textLoc program still does not work, I get following log:

Jan  6 00:00:58 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[783]/supervisor T=main | app.c app_Start() 2926 | Starting app 'textLoc'
Jan  6 00:00:58 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link '/legato/systems/current/apps/textLoc/read-only/lib/libComponent_textLocComponent.so' to '/legato/systems/current/appsWriteable/textLo
Jan  6 00:00:58 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link '/legato/systems/current/apps/textLoc/read-only/bin/textloc' to '/legato/systems/current/appsWriteable/textLoc/bin/textloc': Already e
Jan  6 00:00:58 swi-mdm9x28-wp user.debug Legato:  DBUG | _UNKNOWN_[1594]/<invalid> T=main | _componentMain.c _textLocComponent_Init() 44 | Initializing textLocComponent component library.
Jan  6 00:00:58 swi-mdm9x28-wp user.err Legato: =ERR= | serviceDirectory[794]/serviceDirectory T=main | serviceDirectory.c DispatchToServer() 713 | Client (uid 0 'root', pid 1594) disagrees with server (uid 0 'root', pid 864) on protocol ID of service 'textloc.textLocCompone
Jan  6 00:00:58 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[783]/supervisor T=main | app.c app_SigChildHandler() 3480 | Process 'textloc' in app 'textLoc' faulted: Ignored.
Jan  6 00:00:58 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[783]/supervisor T=main | apps.c DeactivateAppContainer() 374 | Application 'textLoc' has stopped.

I will keep on analysing this as the error message is shorten for some reason, but wanted to let you know where I stand.

Thank you anyway for your help
Regards

The only difference I see is that you have Legato 19.02. If you are compiling your application with Legato 19.02, please make sure that Legato on the modem has also been updated to 19.02. (ati8 or root@swi-mdm9x28-wp:~# legato version). If the Legato versions match, you should not see the problem. Below are the outputs from my WP77

root@swi-mdm9x28-wp:~# app info textLoc
textLoc
status: running
running processes:
textloc[902] (902)
app.name: textLoc
app.md5: a004b0a6cfac8bd7f4a28dd77a2afb2d
app.version: 1.0.0
legato.version: 18.06.1

root@swi-mdm9x28-wp:~# legato version
18.06.1_7bc924287cc41a0157bd414af840e754_modified
root@swi-mdm9x28-wp:~#

Yes, that may be the problem.
I need to align this. I will check if I can update my target to upgrade to 19.02, or I will downgrade the environment.
Thank you very much, I will keep you updated.

Hello ajoseph,
I was able to solve the problem by setting a new leaf profile corresponding to the board revision.
So thank you for your kind help.