2 Replies Latest reply on Nov 5, 2019 5:12 AM by user_1669321

    Forcing a library version with Library Manager

    user_1669321

      Hi,

       

      I'm wondering if the version select feature of the Library Manager is translated to a project parameter. My main question is that we have automatic builds for building the project in Unix using Docker. Does the "make getlibs" command get the libraries defined by the library manager, or only the latest versions from the Github repositories?

       

      Also, how do library updates work in Modus if we force a library version? Do we get notifications like we did with PSoC Creator when a new PDL version was available?

       

      Thanks,

      Fred

        • 1. Re: Forcing a library version with Library Manager
          DheerajK_81

          1. Does the "make getlibs" command get the libraries defined by the library manager, or only the latest versions from the Github repositories?

          There are two types of versions for every BSP and Library of the format "Latest X.Y release" and "X.Y.Z Release". Here's the difference between them:

           

          Every ModusToolbox 2.0 application has a libs folder which lists the BSPs/Libraries with the extension ".lib".

          mtb2.0.PNG

          mtb2.01.PNG

           

          "make getlibs" command basically fetches the libraries based on the Github repo version of the library it points to. Right click on this lib file and open it in an editor. Here you will notice the particular Github repo it points to. By default it will be of the format X.Y. For example:

          https://github.com/cypresssemiconductorco/retarget-io/#latest-v1.X

           

          You can change this to point to a particular release manually by modifying the link. Every BSP/Library will have a release tag associated with it which you can use. For example for the retarget-io library the release tags are mentioned here.

           

          Another method is to open Library Manager and then point to your application folder. You can then choose the particular version by clicking on the dropdown and "make getlibs" is done automatically in the background.

           

          2. Also, how do library updates work in Modus if we force a library version? Do we get notifications like we did with PSoC Creator when a new PDL version was available?

          All latest releases will be automatically populated everytime you open Library Manager if a newer release exists. But there is no notification as such. You can select the "Latest X.Y release" to always have the latest version.

           

          Regards,

          Dheeraj

          • 2. Re: Forcing a library version with Library Manager
            user_1669321

            Thank you, that is really helpful.

             

            It would be nice to get notifications even if I'm pointing to a specific version. I guess I'll have to periodically check the Github repos.