Forcing a library version with Library Manager

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
user_1669321
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

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

0 Likes
1 Solution
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

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:

pastedImage_3.png

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.

pastedImage_8.png

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

View solution in original post

0 Likes
2 Replies
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

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:

pastedImage_3.png

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.

pastedImage_8.png

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

0 Likes

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.