# Errors with FX30 application

**URL:** <https://forum.sierrawireless.com/t/errors-with-fx30-application/14602>\
**Category:** FX30\
**Created:** [November 27, 2018, 2:28am UTC](https://forum.sierrawireless.com/t/errors-with-fx30-application/14602 "2018-11-27T02:28:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![psiphi99](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/psiphi99/32/4042_2.png) [@psiphi99](https://forum.sierrawireless.com/u/psiphi99)\
**Post date:** [November 27, 2018, 2:28am UTC](https://forum.sierrawireless.com/t/errors-with-fx30-application/14602/1 "2018-11-27T02:28:13Z")

</div>

I have an FX30 and I’m having lots of issues. Mainly due to the lack of clear documentation, or out-dated documentation.

1. When I use the latest dev studio (5.3.1) to compile and deploy an application for the FX30 with the latest firmware, I get the following message:  
`Legato Framework version used in application (16.10.3) and running on the device (16.10.1.m3 j5d280affleaa96ea13459ca6effa50c5_modified) are not the same. Continue the installation anyway?`

For simple programs (helloWorld) the program runs fine. For more complicated programs (modemDemo) the installation works, but the application crashes. I don’t know if this related to the

1. So I tried building my own legato framework from source, for CLI development (which I would prefer). But the documentation is very convoluted here. Does someone have some clear steps for compiling the legato framework that works for the FX30? I’ve been [here](https://forum.sierrawireless.com/t/starting-out-with-the-fx30s-and-questions-abound/14077/13) and tried these steps, but not much luck.

---

<div class="post-metadata">

**Author:** ![cchenry](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@cchenry](https://forum.sierrawireless.com/u/cchenry)\
**Post date:** [November 27, 2018, 5:01pm UTC](https://forum.sierrawireless.com/t/errors-with-fx30-application/14602/2 "2018-11-27T17:01:42Z")

</div>

hi there,  
I apologize for the confusion regarding the latest build and DevStudio.

Please see benrey’s post here:

> [@Starting out with the FX30S and questions abound](https://forum.sierrawireless.com/t/starting-out-with-the-fx30s-and-questions-abound/14077/13):
>
> Hi @mjbutsch , I had the same issues regarding the latest release R14 16.10.1.m3. I managed to integrate it to developer studio. For this, you have to follow these steps: Dowload and compile [Legato 16.10.1.m3 source code package](https://source.sierrawireless.com/~/media/support_downloads/airlink/software/fx30/r14.0.4.002/legato-16.10.1.m3.tar.ashx?la=en) Download and install the cross compilation toolchain (here it is for 64bits machine) : [Legato 16.10.1.m3 tool chain 64 bit](https://source.sierrawireless.com/resources/legato/download/linuxtoolchain64bit9x15) In developper studio, go in “Window/Preferences” then in “Developer Studio/Package Manager” and uncheck the “work only with baseline packages…

BR,  
Chris

---

<div class="post-metadata">

**Author:** ![psiphi99](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/psiphi99/32/4042_2.png) [@psiphi99](https://forum.sierrawireless.com/u/psiphi99)\
**Post date:** [November 28, 2018, 1:04am UTC](https://forum.sierrawireless.com/t/errors-with-fx30-application/14602/3 "2018-11-28T01:04:49Z")

</div>

Thanks Chris.

After the following mistakes:

- Not running Ubuntu 16.04, but 18.04
- Executing step 1, then 2 actually makes your build fail. Once it fails you need to do `make clean`. You should first install the toolchain (step 2), then compile the framework (step 1).

I was able to compile using `make wp85`.

However, once I added the folders to the Developer Studio I was unable to use the packages. The packages show like the screenshot below.  
 ![Screenshot%20from%202018-11-28%2014-00-36](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/c/c42f375730ae31ded2dfdfebb6b2ff5ac0500c6b.png)

Any ideas?

For my reference (and others). These are the CLI commands I used to build the framework for source:

```
# Install dependancies
apt update && apt dist-upgrade -y 
apt-get install -y build-essential python python-jinja2 cmake git subversion libsdl-dev diffstat texinfo gawk chrpath wget cpio vim zsh bash ninja-build screen sshpass bc python-git unzip libxml2-utils wget

# Toolchain
cd
wget http://downloads.sierrawireless.com/legato/16103/poky-swi-ext-glibc-x86_64-meta-toolchain-swi-ext-armv7a-vfp-neon-toolchain-swi-ext-1.7.3.sh
chmod u+x poky-swi-ext-glibc-x86_64-meta-toolchain-swi-ext-armv7a-vfp-neon-toolchain-swi-ext-1.7.3.sh 
./poky-swi-ext-glibc-x86_64-meta-toolchain-swi-ext-armv7a-vfp-neon-toolchain-swi-ext-1.7.3.sh 

# Application Framework
wget -O legato-16.10.1.m3.tar.bz2 https://source.sierrawireless.com/~/media/support_downloads/airlink/software/fx30/r14.0.4.002/legato-16.10.1.m3.tar.ashx?la=en
tar xjf legato-16.10.1.m3.tar.bz2 
cd legato-16.10.1.m3

WP85_TOOLCHAIN_DIR="/opt/swi/y17-ext/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi"
WP85_TOOLCHAIN_PREFIX="arm-poky-linux-gnueabi-"

make localhost
make wp85

```

UPDATE: Updated the above “script” to add WP85\_TOOLCHAIN\_DIR and WP85\_TOOLCHAIN\_PREFIX

---

<div class="post-metadata">

**Author:** ![benrey](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@benrey](https://forum.sierrawireless.com/u/benrey)\
**Post date:** [November 29, 2018, 8:20am UTC](https://forum.sierrawireless.com/t/errors-with-fx30-application/14602/4 "2018-11-29T08:20:05Z")

</div>

Hi,

did you read the README.md in the legato directory ?  
I do not see (regarding your commands) where are set the WP85\_TOOLCHAIN\_DIR and WP85\_TOOLCHAIN\_PREFIX env variables.

You can also check if the FX30 / WP85XX are set in the module selection:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/7/7d1d20ac1f2fa9c589c9cdbbfae82574018e1b1e.png)

This can be configured in window/preferences/Developper Studio/Module

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/3/39d3ff562dc9c0104abdc028caaa86194e32c6d5.png)

---

<div class="post-metadata">

**Author:** ![psiphi99](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/psiphi99/32/4042_2.png) [@psiphi99](https://forum.sierrawireless.com/u/psiphi99)\
**Post date:** [November 29, 2018, 8:10pm UTC](https://forum.sierrawireless.com/t/errors-with-fx30-application/14602/5 "2018-11-29T20:10:57Z")

</div>

Thanks Benrey. Yes, I had added the env vars, just forgot to list them.

The issue is that the Compiler and Legato AF do no appear in the “Target Platform”. Oh, well I will continue with the CLI builds.

I’ve had more success with getting Rust going and this may work better for me. Since I don’t need a lot of what the Legato framework offers.

---

<div class="post-metadata">

**Author:** ![cchenry](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@cchenry](https://forum.sierrawireless.com/u/cchenry)\
**Post date:** [November 29, 2018, 8:52pm UTC](https://forum.sierrawireless.com/t/errors-with-fx30-application/14602/6 "2018-11-29T20:52:10Z")

</div>

@dpochet, are you able to help out with this issue?  
Thanks,  
Chris

---

<div class="post-metadata">

**Author:** ![ayax1406](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@ayax1406](https://forum.sierrawireless.com/u/ayax1406)\
**Post date:** [September 23, 2019, 7:01pm UTC](https://forum.sierrawireless.com/t/errors-with-fx30-application/14602/7 "2019-09-23T19:01:54Z")

</div>

Hi @cchenry

I’m working with a FX30 with Legato, but I have some problems.

I’m using a FX30 Eth 3G and Developer Studio 5.3.1.201802071201, Legato for WP85/WP75 R17.

The firmware versión of FX30 is 13.1.2.004

The Serial Number is LL832400291310

The problem is when I install the hello world app, or any application show the message

"Legato Framework version used in application (18.06.4) and running on the device (16.10.1\_f8947ec5fd286f5b9d2c25ebb9ad81a4) are not the same. Continue the installation anyway?

If I accept, send the application and after that show the messages

“Application avcService has crashed 1 time”

“Application HelloWorld has crashed 2 times”

I tried everything you suggest up, I could not solve the problem.

---

<div class="post-metadata">

**Author:** ![cchenry](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@cchenry](https://forum.sierrawireless.com/u/cchenry)\
**Post date:** [September 24, 2019, 2:53am UTC](https://forum.sierrawireless.com/t/errors-with-fx30-application/14602/8 "2019-09-24T02:53:18Z")

</div>

Hi there,  
You need to use the Legato 16.10.1 toolchain to build your application.  
BR,  
Chris

---

<div class="post-metadata">

**Author:** ![ayax1406](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@ayax1406](https://forum.sierrawireless.com/u/ayax1406)\
**Post date:** [September 24, 2019, 8:35pm UTC](https://forum.sierrawireless.com/t/errors-with-fx30-application/14602/9 "2019-09-24T20:35:36Z")

</div>

Thanks a lot, It’s working now, I hope I have no more problems.

BR

Ayax
