# Adding newest version Legato Framework into Developer Studio

**URL:** <https://forum.legato.io/t/adding-newest-version-legato-framework-into-developer-studio/2654>\
**Category:** Legato Application Framework\
**Created:** [September 5, 2017, 9:43am UTC](https://forum.legato.io/t/adding-newest-version-legato-framework-into-developer-studio/2654 "2017-09-05T09:43:05Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![lichen](https://avatars.discourse-cdn.com/v4/letter/l/a4c791/32.png) [@lichen](https://forum.legato.io/u/lichen)\
**Post date:** [September 5, 2017, 9:43am UTC](https://forum.legato.io/t/adding-newest-version-legato-framework-into-developer-studio/2654/1 "2017-09-05T09:43:06Z")

</div>

Hi!

I am wondering how to add Legato frameworks newer than 16.10.3 into the DS. I am using 17.07.1 now but I do not find anywhere that I can import this into DS. Nothing newer than 16.10.3 can be found in the Package Perspective either.

Does the DS not support newer framework? Or I did wrong?

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/daav/32/64_2.png) [@daav](https://forum.legato.io/u/daav)\
**Post date:** [September 6, 2017, 6:49am UTC](https://forum.legato.io/t/adding-newest-version-legato-framework-into-developer-studio/2654/2 "2017-09-06T06:49:58Z")

</div>

Hi @lichen

First of all, to explain why the latest Legato version available in DS for WP85/WP75 is still 16.10.3, please have a look at the release information for the Legato Framework:  
[http://legato.io/legato-docs/latest/aboutReleaseInfo.html#releaseInfo\_LegatoAFReleases](http://legato.io/legato-docs/latest/aboutReleaseInfo.html#releaseInfo_LegatoAFReleases)

To summarize: DS proposes by default only the packages matching with products official releases, for each supported module. The last release for WP85/75 is still Release 14, embedding Legato 16.10.3  
In the meantime, the Legato framework project continues to evolve, and releases new versions months after months.

These new releases needs to be considered as preliminary versions until they are integrated in an official product package. For example, this means that you can use it for development by rebuilding it yourself, but you can’t buy pieces with this version pre-installed inside.

That said, it is possible to import a Legato Framework you’ve built by your own in DS, so that you can use DS to build apps based on this Framrwork. Here are the steps to be followed.

**Prerequisites:**

_ **check your DS version** _  
Following steps are described for DS 5.2

_ **check your installed packages** _  
Make sure you have the latest product release package installed in DS (e.g. WP85 Release 14).  
You’ll need the toolchain from it.

_ **build your own framework** _  
Above all, you need to build your own framework, by following the instructions at [GitHub - legatoproject/legato-af: Legato Application Framework](https://github.com/legatoproject/legato-af)  
To do so, please use the same toolchain than the latest product official release. E.g. on WP85/75, use the Release 14 toolchain.  
_ **Note:** _ This means that this procedure only works on Linux hosts, or in Linux VMs, and **not on native Windows hosts**

**Step 1: switch off “baseline mode”**

 ![preferences](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/e18515ce8d74015017c713b2f6446f6cad2fea38.png)  
Go to **Window \> Preferences \> Developer Studio \> Package Manager** box, and uncheck **Work only with baseline packages**.

**Step 2: import your Framework in DS as a package**

- Go to **Packages** perspective
- In the **Available Packages** view, click on the **Add new repository** action  
 ![addrepo](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/5094ffae230f9c5f370f5dcd23df0ce704c29de3.png)
- Check the **Folder** option, and browse to the location where you have cloned and built your own Framework  
 ![folderRepo](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/2176db64c0514e7488bed0c10e8feaee8eb0c1c9.png)
- Click **OK**. You should have an available package now.  
 ![avialablePackage](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/0561141243821c398237e0f53d680428861501ac.png)
- “Install” the package. Actually this is just referencing your build location as a known package, without copying files.  
You should now have you package displayed in the **Installed Packages** view.  
 ![installedPack](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/b831b7a3f9e79bc1fb0733a27108604d29e1557a.png)

**Step 3: Create a custom Target Platform**

- Go to **Window \> Preferences \> Developer Studio \> Target Platform** box
- Pick the built-in one in the combo box for Release 14 (or the latest Release you want to “upgrade” with the latest Legato)  
 ![rel14](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/06692c2da5eb94f8ca18a6de5679d00a7fa34835.png)
- Click **Duplicate…** button, and give a name to your Target Platform  
 ![dupName](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/23d80e99fe332cee0c7d6ee163d0c7e683c572da.png)
- In the **Application Framework** tab, select your custom Legato Framework (imported above), instead of the official 16.10.3 one  
 ![tpEdit](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/4cc92aabeca2ed9158349c8ad74010e74739dba1.png)
- Click **OK** to validate the Target Platform creation

**Step 4: you’re done**

And that’s it.  
Now you can create projects that are using your new custom target platform.  
You just need to pick your custom target platform in the new project wizard.

 ![newAppCustom](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/aa8e64007fcd4e70fef24bcd528d64b37b2bd202.png)

---

<div class="post-metadata">

**Author:** ![raf](https://avatars.discourse-cdn.com/v4/letter/r/848f3c/32.png) [@raf](https://forum.legato.io/u/raf)\
**Post date:** [September 6, 2017, 7:37am UTC](https://forum.legato.io/t/adding-newest-version-legato-framework-into-developer-studio/2654/3 "2017-09-06T07:37:23Z")

</div>

Thank you @daav for the excellent explanation!

I too have needed this for a while and took a different approach - your method is much better.

The delayed vendor releases are somewhat frustrating when the bulk of your development is done in DS. I understand this is beyond your control.

Having the instructions to import a later Legato framework version in to DS is very useful.

Raf

---

<div class="post-metadata">

**Author:** ![lichen](https://avatars.discourse-cdn.com/v4/letter/l/a4c791/32.png) [@lichen](https://forum.legato.io/u/lichen)\
**Post date:** [September 6, 2017, 8:01am UTC](https://forum.legato.io/t/adding-newest-version-legato-framework-into-developer-studio/2654/4 "2017-09-06T08:01:34Z")

</div>

Thank you @daav for your support. It is really helpful and useful.

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/daav/32/64_2.png) [@daav](https://forum.legato.io/u/daav)\
**Post date:** [September 6, 2017, 8:26am UTC](https://forum.legato.io/t/adding-newest-version-legato-framework-into-developer-studio/2654/5 "2017-09-06T08:26:50Z")

</div>

You’re welcome, guys, I’m glad this is helpful.  
By the way we’re working on some improvements in DS 5.3 to build the framework from DS itself.  
Target for release is October – stay tuned 😉

---

<div class="post-metadata">

**Author:** ![annaertd](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@annaertd](https://forum.legato.io/u/annaertd)\
**Post date:** [June 5, 2018, 9:21am UTC](https://forum.legato.io/t/adding-newest-version-legato-framework-into-developer-studio/2654/6 "2018-06-05T09:21:39Z")

</div>

Can we build the framework from within DS 5.3 now?

---

<div class="post-metadata">

**Author:** ![muralinagraj](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@muralinagraj](https://forum.legato.io/u/muralinagraj)\
**Post date:** [July 19, 2018, 12:40pm UTC](https://forum.legato.io/t/adding-newest-version-legato-framework-into-developer-studio/2654/7 "2018-07-19T12:40:54Z")

</div>

@annaertd,

As already told by @daav, They are working on it and it is targeted for October release.

Regards,  
Muralidhara N.

---

<div class="post-metadata">

**Author:** ![dfandrade94](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@dfandrade94](https://forum.legato.io/u/dfandrade94)\
**Post date:** [September 26, 2018, 1:19am UTC](https://forum.legato.io/t/adding-newest-version-legato-framework-into-developer-studio/2654/8 "2018-09-26T01:19:11Z")

</div>

Hi.

I am a new user of the Legato framework and DS platform.

I have the latest DS version (5.3.1) installed in my development environment and I am trying to debug (via cross-compilation) a simple application (helloWorld) with the Legato Framework 18.07.0 in a mangOH Red board.

I followed the procedure above to include this newest package. The compilation goes fine as well the execution of the application in the board in normal mode.

But when I trigger the debug mode, I get the following error message:

![Debugger%20Error%20-%20HelloWorld](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/1fbb38897404a07797e891ba2772b4e44d056cf7.png)

The log tab shows the message: “_… proc.c proc\_Start() 1366 | Could not exec ‘bin/gdbserver’. Permission denied._”

I did many investigations, searches and tests, mainly related to permission issues, but without success.

If I use the Legato package 16.10.4, I have no problem to execute the same helloWorld application in debug mode.

Do you know any hint to fix this problem?

Or is it a limitation or known issue of the current solution, and I have to wait for the next release?

Thanks in advance,

Daniel Andrade.

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/daav/32/64_2.png) [@daav](https://forum.legato.io/u/daav)\
**Post date:** [September 26, 2018, 6:02am UTC](https://forum.legato.io/t/adding-newest-version-legato-framework-into-developer-studio/2654/9 "2018-09-26T06:02:40Z")

</div>

Hi @dfandrade94

see [DS 5.3.1 Debug session fails due to bad task 'Configure gdb' - #6 by daav](https://forum.legato.io/t/ds-5-3-1-debug-session-fails-due-to-bad-task-configure-gdb/3605/6)  
In short, we have a limitation when trying to launch debug sessions with Legato versions \> 18.03  
While waiting for a patch, as a workaround, you can try the debug attach mode which is still working.

---

<div class="post-metadata">

**Author:** ![FrancisDuhaut](https://avatars.discourse-cdn.com/v4/letter/f/f0a364/32.png) [@FrancisDuhaut](https://forum.legato.io/u/FrancisDuhaut)\
**Post date:** [September 26, 2018, 6:40am UTC](https://forum.legato.io/t/adding-newest-version-legato-framework-into-developer-studio/2654/10 "2018-09-26T06:40:29Z")

</div>

@daav when do you think the patch will be done ?

I have moved all my project to legato 18.05.1 and now 18.08.0 but not tested debug mode…

---

<div class="post-metadata">

**Author:** ![dfandrade94](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@dfandrade94](https://forum.legato.io/u/dfandrade94)\
**Post date:** [September 27, 2018, 3:08am UTC](https://forum.legato.io/t/adding-newest-version-legato-framework-into-developer-studio/2654/11 "2018-09-27T03:08:44Z")

</div>

Hi @daav

Thank you for your information and for your hint.

Great! With the debug attach mode it is working fine.

Now I am able to debug applications with the Legato version 18.07.0.

Best regards,

Daniel Andrade.
