# Demos gpsPublish no LE\_INFO wp85 mangoh red

**URL:** <https://mangoh.discourse.group/t/demos-gpspublish-no-le-info-wp85-mangoh-red/5815>\
**Category:** mangOH Red\
**Created:** [December 10, 2020, 8:46am UTC](https://mangoh.discourse.group/t/demos-gpspublish-no-le-info-wp85-mangoh-red/5815 "2020-12-10T08:46:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierrecloury](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@pierrecloury](https://mangoh.discourse.group/u/pierrecloury)\
**Post date:** [December 10, 2020, 8:46am UTC](https://mangoh.discourse.group/t/demos-gpspublish-no-le-info-wp85-mangoh-red/5815/1 "2020-12-10T08:46:40Z")

</div>

Hi,  
I’m new to mangoh and i’m trying to test the gpsPublish demo app (in the /mangOH/samples/Demos/GpsPublish git repository). I have no problem to compile the app and to transfert it on my mangoh Red (wp85). On the mangoh, the app is running, no problem, but i don’t have any print i should receive with logread, and at the same time no errors (but a lot of informations i don’t understand i must admit). I just add a simple LE\_INFO at the beginning of the component init and i can’t see it…I suspect that I don’t understand something elementary, but i can’t see what.

Here is the logread when i stop and start the app :  
(app stop gpsPublish, app start gpsPublish, logread | grep gpsPublish

 ![image](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/2X/d/d6e5771373eed51315715f45a7b9e32d3c5e3d6e.png)

Also, if i want to comment some code in the component init to see what part is source of error, i can’t build the app anymore : i have an error that explain that some of my importations are not used, so quite complex to debug.

If anyone has any idea…

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [December 10, 2020, 8:55am UTC](https://mangoh.discourse.group/t/demos-gpspublish-no-le-info-wp85-mangoh-red/5815/2 "2020-12-10T08:55:28Z")

</div>

how about doing this?

logread -f &  
app stop gpsPublish  
app start gpsPublish

" i have an error that explain that some of my importations are not used" --\> can you post the error in build console?

---

<div class="post-metadata">

**Author:** ![pierrecloury](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@pierrecloury](https://mangoh.discourse.group/u/pierrecloury)\
**Post date:** [December 10, 2020, 2:08pm UTC](https://mangoh.discourse.group/t/demos-gpspublish-no-le-info-wp85-mangoh-red/5815/3 "2020-12-10T14:08:31Z")

</div>

"how about doing this?

logread -f &  
app stop gpsPublish  
app start gpsPublish"

I have the same results. When i don’t add “grep gpsPublish”, i also always have :  
Dec 10 15:04:35 swi-mdm9x15 user.debug kernel: [1440.956233] NMEA read driver miss interrupt, abandon current buff  
However it is not specific to this application. I also must say that it not the only app where I met this problem (not any LE\_INFO but no errors).

For the error in the build console: i replace all the component init with a single LE\_INFO and here is the result when i try to mkapp :

 ![image](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/2X/3/3435de1397cf1433ff9f78fa46a37e0e9933667a.png)

I guess it is a normal behaviour, when you define a c fonction above you have to use it in the component\_init…

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [December 10, 2020, 2:12pm UTC](https://mangoh.discourse.group/t/demos-gpspublish-no-le-info-wp85-mangoh-red/5815/4 "2020-12-10T14:12:31Z")

</div>

Suggest you trying with the simple helloworld command.

For the compilation error, you have to add  
-Wno-error=unused-function

Otherwise the warning will be treated as error

---

<div class="post-metadata">

**Author:** ![pierrecloury](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@pierrecloury](https://mangoh.discourse.group/u/pierrecloury)\
**Post date:** [December 10, 2020, 2:19pm UTC](https://mangoh.discourse.group/t/demos-gpspublish-no-le-info-wp85-mangoh-red/5815/5 "2020-12-10T14:19:34Z")

</div>

Thanks for your quick answers.

What do you mean by “helloworld command” ? if you mean the helloworld exemple app, i already tried it and it works just fine.

“For the compilation error, you have to add  
-Wno-error=unused-function”

 ![image](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/2X/8/873e03a2cfe03a6387da7a1b44b450c5e6ae8eb4.png)

How do you write it ?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [December 10, 2020, 2:42pm UTC](https://mangoh.discourse.group/t/demos-gpspublish-no-le-info-wp85-mangoh-red/5815/6 "2020-12-10T14:42:34Z")

</div>

then why helloworld application is working fine but not for your application?  
Maybe you can port those code to helloworld so that you can know where is the place that makes your application cannot print log.

Here is how I write it (-C -Wno-error=unused-function) in Developer studio:

```
22:40:55 ****Incremental Build of configuration Target_Legato_Debug for project hello7****
make -C Target_Legato_Debug all 
make: Entering directory `/home/owner/legato/workspace/hello7/Target_Legato_Debug'
cd ..;mkapp -t wp76xx -o Target_Legato_Debug -w Target_Legato_Debug -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/atServices" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/airVantage/legacy" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/watchdog" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/portService" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/supervisor" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/logDaemon" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/positioning" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/secureStorage" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/wifi" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/modemServices" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/airVantage" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/dataConnectionService/platformAdaptor/default" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/test/watchdogChain" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/apps/platformServices/airVantageConnector" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/airVantage" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/modules/WiFi/apps/tools/wifi" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/positioning" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/secStore" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/uartMode/platformAdaptor/default" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/portService" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/modemServices/platformAdaptor/default" -s "." -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/audio/platformAdaptor/default" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/apps/tools" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/3rdParty" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/fwupdate/platformAdaptor/default" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/dataConnectionService" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/modules/WiFi/service" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/airVantage/platformAdaptor/default" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/fwupdate" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/positioning/platformAdaptor/default" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/devMode" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/secStore/platformAdaptor/default" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/apps/platformServices/mqttClient" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/atServices" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/modemServices" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/uartMode" -C -g -X -g -L -g -C -Wno-error=unused-function hello7.adef
[1/10] Compiling C source
[2/10] Compiling C source
[3/10] Compiling C source
[4/10] Compiling C source
[5/10] Linking C library
[6/10] Linking C executable
[7/10] Bundling file
[8/10] Bundling file
[9/10] Creating info.properties
[10/10] Packaging app
make: Leaving directory `/home/owner/legato/workspace/hello7/Target_Legato_Debug'

22:40:56 Build Finished (took 1s.200ms)
```

---

<div class="post-metadata">

**Author:** ![pierrecloury](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@pierrecloury](https://mangoh.discourse.group/u/pierrecloury)\
**Post date:** [December 11, 2020, 10:19am UTC](https://mangoh.discourse.group/t/demos-gpspublish-no-le-info-wp85-mangoh-red/5815/7 "2020-12-11T10:19:41Z")

</div>

This morning I tested with differents others app such as wiredSensor and i have exactly the same problem, so i went to the legato tutorial and i did the Extended helloworld app (within a single process) : i also don’t have any LE\_INFO. So it works for the most simple hello app application, but not for the extended one with two components. It should at least simplify the problem : it is not related to the gpsPublish app. Furthermore, i have at my disposition a mangoh yellow and a mongoh red, and I have exactly the same behaviour with the two cards.

Do you have any idea with these new elements ?

Here is the logread for the extended hello world app ([https://docs.legato.io/19\_01/getStartedIPC.html](https://docs.legato.io/19_01/getStartedIPC.html)) :

 ![image](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/2X/b/be4ff5188678419a99b331d1caab482d4bc0ee13.png)

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [December 11, 2020, 10:49am UTC](https://mangoh.discourse.group/t/demos-gpspublish-no-le-info-wp85-mangoh-red/5815/8 "2020-12-11T10:49:46Z")

</div>

You can port the extended hello app to the working helloworld, then you will know which line makes the problem
