# Custom legato application doesnt start from boot

**URL:** <https://forum.legato.io/t/custom-legato-application-doesnt-start-from-boot/4536>\
**Category:** Legato Application Framework\
**Created:** [July 5, 2019, 10:47am UTC](https://forum.legato.io/t/custom-legato-application-doesnt-start-from-boot/4536 "2019-07-05T10:47:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![akshaysk](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/akshaysk/32/1212_2.png) [@akshaysk](https://forum.legato.io/u/akshaysk)\
**Post date:** [July 5, 2019, 10:47am UTC](https://forum.legato.io/t/custom-legato-application-doesnt-start-from-boot/4536/1 "2019-07-05T10:47:51Z")

</div>

Hi There ,  
I am trying to add a custom legato application whose binary file is called in the adef file and both the binary and .adef file are copied in **legato-18.09.0/apps/platformServices** in order to add the application to my custom system/framework I have added following line in default.sdef file  
**$LEGATO\_ROOT/apps/platformServices/APP\_NAME**  
But with the above additions i just have the application copied into the framework but the application doesn’t start from boot even though i have mentioned **start:auto** in the .adef file . {with manual input “app start APP\_NAME” the application works well}  
Can someone help me in overcoming this issue ??  
Legato version used : 18.09.0

---

<div class="post-metadata">

**Author:** ![mehdiALL1](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mehdiALL1](https://forum.legato.io/u/mehdiALL1)\
**Post date:** [July 29, 2019, 9:05am UTC](https://forum.legato.io/t/custom-legato-application-doesnt-start-from-boot/4536/2 "2019-07-29T09:05:38Z")

</div>

@akshaysk,

- What does your custom app? maybe because it depends for another service.
- Why you didn’t add you custom app under **$LEGATO\_ROOT/apps/sample**?
- Are you tried to add you app separately? what happens if you do that?

Regards

---

<div class="post-metadata">

**Author:** ![akshaysk](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/akshaysk/32/1212_2.png) [@akshaysk](https://forum.legato.io/u/akshaysk)\
**Post date:** [July 29, 2019, 10:24am UTC](https://forum.legato.io/t/custom-legato-application-doesnt-start-from-boot/4536/3 "2019-07-29T10:24:18Z")

</div>

Hi @mehdiALL1,  
Thanks for responding to my query . below are my answers for the question you asked  
**What does your custom app? maybe because it depends for another service.**  
 → My custom application just gets data from UART

**Why you didn’t add you custom app under $LEGATO\_ROOT/apps/sample ?**  
 → I was pretty new to legato framework so i just followed the default.sdef so that is the reason why i have my app in **$LEGATO\_ROOT/apps/platformServices/APP\_NAME** , Hope there is nothing wrong in it

**Are you tried to add you app separately? what happens if you do that?**  
 → If i add the application manually the auto:start option works perfectly . Issue arises when i try the sdef method .

Thanks & Regards

- Akshay

---

<div class="post-metadata">

**Author:** ![mehdiALL1](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mehdiALL1](https://forum.legato.io/u/mehdiALL1)\
**Post date:** [July 29, 2019, 12:44pm UTC](https://forum.legato.io/t/custom-legato-application-doesnt-start-from-boot/4536/4 "2019-07-29T12:44:59Z")

</div>

@akshaysk,

How you build the Legato system (command)? and you flash your target with which legato image?

---

<div class="post-metadata">

**Author:** ![akshaysk](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/akshaysk/32/1212_2.png) [@akshaysk](https://forum.legato.io/u/akshaysk)\
**Post date:** [July 30, 2019, 4:50am UTC](https://forum.legato.io/t/custom-legato-application-doesnt-start-from-boot/4536/5 "2019-07-30T04:50:14Z")

</div>

@mehdiALL1  
I have an update the issue got resolved the application had a bug due to which it was getting stopped and now the things are fine .  
below are the answers for your previous questions .  
I am using **make wp76xx** { As i am using wp7608 module } and i flash the cwe file using **swiflash** tool  
say for example =\> **swiflash -m wp76xx -i legato.cwe**  
Thanks for responding to my queries

Regards

- Akshay
