# Hello World application for FX30S

**URL:** https://forum.legato.io/t/hello-world-application-for-fx30s/5051
**Category:** Legato Linux distribution (Yocto project)
**Created:** [March 3, 2020, 2:31pm UTC](https://forum.legato.io/t/hello-world-application-for-fx30s/5051 "2020-03-03T14:31:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![g.ceneau](https://avatars.discourse-cdn.com/v4/letter/g/8edcca/32.png) [@g.ceneau](https://forum.legato.io/u/g.ceneau)
#### Post date: [March 3, 2020, 2:31pm UTC](https://forum.legato.io/t/hello-world-application-for-fx30s/5051/1 "2020-03-03T14:31:06Z")

</div>

Hello,  
I am getting started with the legato environment and encounter some problems.  
I started by setting up a VM on my windows computer, then installing VS and its legato plugin. My next step is to run a simple hello world projet, writing in the log file.  
I am following the [helloWorld - Legato Docs](https://docs.legato.io/latest/getStartedHW.html) guide.  
I succesfuly load my application on my FX30S, but then it crashes again and again, I just have a few seconds letting my check the apps status, (telling my my helloWorld app is there) before the device cut the connection. Until I unplug it from power, I cannot reach it for more than 5-6sec. And when it finally get stable again, “app status” tells me my app isnt there anymore.  
Anyone have an explanation for this?

I am a newbie to all of this, sorry if my explanation isnt clear, dont hesitate to ask questions.

Cheers

---

<div class="post-metadata">

### Author: ![g.ceneau](https://avatars.discourse-cdn.com/v4/letter/g/8edcca/32.png) [@g.ceneau](https://forum.legato.io/u/g.ceneau)
#### Post date: [March 3, 2020, 5:22pm UTC](https://forum.legato.io/t/hello-world-application-for-fx30s/5051/2 "2020-03-03T17:22:42Z")

</div>

Update:  
I managed to get acces to the log and I get th following error message, before my device get rebooted:  
Jan 6 00:17:07 fx30s user.info Legato: INFO | avcDaemon[2746]/avcDaemon T=main | assetData.c assetData\_CreateInstanceById() 2982 | Creating asset instance for lwm2m/9  
Jan 6 00:17:07 fx30s user.info Legato: INFO | avcDaemon[2746]/avcDaemon T=main | assetData.c assetData\_CreateInstanceById() 3079 | Finished creating instance 2 for lwm2m/9  
Jan 6 00:17:07 fx30s user.info Legato: INFO | avcDaemon[2746]/avcDaemon T=main | assetData.c assetData\_CreateInstanceById() 2982 | Creating asset instance for UART1\_2echo/0  
Jan 6 00:17:07 fx30s user.info Legato: INFO | avcDaemon[2746]/avcDaemon T=main | assetData.c assetData\_CreateInstanceById() 3079 | Finished creating instance 0 for UART1\_2echo/0  
Jan 6 00:17:07 fx30s user.info Legato: INFO | avcDaemon[2746]/avcDaemon T=main | assetData.c assetData\_CreateInstanceById() 2982 | Creating asset instance for UART1\_2echo/1  
Jan 6 00:17:07 fx30s user.info Legato: INFO | avcDaemon[2746]/avcDaemon T=main | assetData.c assetData\_CreateInstanceById() 3079 | Finished creating instance 0 for UART1\_2echo/1  
Jan 6 00:17:07 fx30s user.warn Legato: -WRN- | avcDaemon[2746]/appCfg T=main | appCfg.c appCfg\_GetProcFaultAction() 547 | Unrecognized fault action ‘’. Defaulting to fault action ‘ignore’.  
Jan 6 00:17:07 fx30s user.info Legato: INFO | avcDaemon[2746]/avcDaemon T=main | assetData.c assetData\_CreateInstanceById() 2982 | Creating asset instance for lwm2m/9  
Jan 6 00:17:07 fx30s user.info Legato: INFO | avcDaemon[2746]/avcDaemon T=main | assetData.c assetData\_CreateInstanceById() 3079 | Finished creating instance 0 for lwm2m/9  
Jan 6 00:17:07 fx30s user.info Legato: INFO | avcDaemon[2746]/avcDaemon T=main | assetData.c assetData\_CreateInstanceById() 2982 | Creating asset instance for helloWorld/0  
Jan 6 00:17:07 fx30s user.err Legato: =ERR= | avcDaemon[2746]/avcDaemon T=main | assetData.c CreateAssetDataFromModel() 1005 | Asset model for helloWorld/0 is not found  
Jan 6 00:17:07 fx30s user.emerg Legato: _EMR_ | avcDaemon[2746]/avcAppUpdate T=main | avcAppUpdate.c CreateLegatoObjectsForApp() 736 | Assert Failed: ‘assetData\_CreateInstanceById(objNameBuffer, 0, 0, &objectRef) == LE\_OK’  
Jan 6 00:17:09 fx30s user.info Legato: INFO | supervisor[586]/supervisor T=main | proc.c proc\_SigChildHandler() 1942 | Process ‘avcStart.sh’ (PID: 2746) has exited with exit code 1.  
Jan 6 00:17:09 fx30s user.emerg Legato: _EMR_ | supervisor[586]/supervisor T=main | proc.c proc\_SigChildHandler() 1984 | Process ‘avcStart.sh’ reached fault limit while system in probation. Device will be rebooted.  
Jan 6 00:17:09 fx30s user.warn Legato: -WRN- | \_appStopClient[2789]/framework T=main | LE\_FILENAME CreateSocket() 550 | Socket opened as standard i/o file descriptor 2!  
Jan 6 00:17:10 fx30s user.emerg Legato: _EMR_ | supervisor[586]/supervisor T=main | app.c app\_SigChildHandler() 3258 | Process ‘avcStart.sh’ in app ‘avcService’ faulted: Rebooting system.  
Jan 6 00:17:10 fx30s user.emerg Legato: _EMR_ | supervisor[586]/supervisor T=main | supervisor.c Reboot() 589 | Supervisor going down to trigger reboot.  
Jan 6 00:17:10 fx30s user.emerg Legato: _EMR_ | watchdog[605]/framework T=main | LE\_FILENAME ClientSocketHangUp() 852 | Session closed by server (wdog:097fbccd0328ad2605764aecdd9339bc).

---

<div class="post-metadata">

### Author: ![g.ceneau](https://avatars.discourse-cdn.com/v4/letter/g/8edcca/32.png) [@g.ceneau](https://forum.legato.io/u/g.ceneau)
#### Post date: [March 4, 2020, 11:22am UTC](https://forum.legato.io/t/hello-world-application-for-fx30s/5051/3 "2020-03-04T11:22:45Z")

</div>

Update 2  
Reading my logs again and the problem seems to be at that point:  
Jan 6 00:14:09 fx30s user.err Legato: =ERR= | avcDaemon[611]/avcDaemon T=main | assetData.c CreateAssetDataFromModel() 1005 | Asset model for DemoComponentComponent/0 is not found  
So aparently the "asset model " for my application is not found (for this example I tried DemoComponent which is just another application)? I have no idea what this is or how I can fix it. I tried to reset my device, change my leaf profile, change the application I work on… Please send help:(

---

<div class="post-metadata">

### Author: ![g.ceneau](https://avatars.discourse-cdn.com/v4/letter/g/8edcca/32.png) [@g.ceneau](https://forum.legato.io/u/g.ceneau)
#### Post date: [March 5, 2020, 1:56pm UTC](https://forum.legato.io/t/hello-world-application-for-fx30s/5051/4 "2020-03-05T13:56:30Z")

</div>

Update 3: Problem solved  
I tried to start from the beginning by following the guide from SierraWireless (probably should have done that from the start):  
[https://source.sierrawireless.com/resources/airprime/software/developer-studio-installinstructions/#sthash.HJW8BihQ.r84rno3G.dpbs](https://source.sierrawireless.com/resources/airprime/software/developer-studio-installinstructions/#sthash.HJW8BihQ.r84rno3G.dpbs)  
The steps are quite simple: install java, install virtual box, install developer studio (based on Eclipse).

When I managed to launch the app on my device I got the exact same error (device crashing, had to hard reset to make it work again). But Eclipse told me the version on my FX30S device was a bit old (version 16.10.1.m3\_f5d280aff1eaa96ea8459ca6effa50c5\_modified ). Whereas my legato framework on developer studio was on version 18.06.4 (the lastest one at the moment).

I had to delete the whole legato setup and re-install Developer studio, but my hello world application is now working. I just get an error message everytime I launch an app saying my versions are not exactly the same (Legato version is 16.10.1 ) but it is still working, hope it wont be annoying in the future.
