Problem to give a same Library Alias for different PICs .

General discussion on Package Manager Software.
Post Reply
Author
Message
subrat
Posts: 6
Joined: 07 Jun 2015 04:43

Problem to give a same Library Alias for different PICs .

#1 Post by subrat » 07 Jun 2015 08:17

Dear friends,
I want to make two different library ( .mcl file) for two different MCUs by giving a same library Alias and want to put in to a same Package (as libraries provided by MikroC).

For example I want to put two files "Lib_ADC_1.mcl" and "Lib_ADC_2.mcl" for P12f683 and P18F2550 respectively with a same library alias "ADC" under the package named " My_ custom" and want to install in to MikroC IDE with the tool Package manager for displaying same alias name "ADC" in the Library manager window under the package node "My_ custom" in MikroC IDE for the both MCUs .

But problem aeries is that the Package Manager do not allow to include both ".mcl" file in to a single library. If I will make two different library for both ".mcl" file in the same package, the Package Manager do not allow to give same alias name for both library.

If I will make two different library by giving two different alias in the same package for the different selected MCUs and install in to MikroC IDE the Library Alias chances at the package " My_ custom" sub node in the Library manager window, when I change the MCU in Project Settings window. Then how it is possible that these two libraries have the same Library Alias (ADC).

If it is not possible, how all libraries provided by MikroC with same alias for different MCUs.

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: Problem to give a same Library Alias for different PICs

#2 Post by marina.petrovic » 26 Jun 2015 09:51

Hi,

I am very sorry for the delay in answering.

You can create in Library Manager one library for more MCUs: when you create new library in "NewLib" -> Device, you should check for which MCU this library will be supported.

Like you already mentioned, you cannot have two libraries (.mcl) files with the same name.
Our libraries which can be found on LibStock Website are "generic" and can be used for example for more PIC18 MCUs.
If you take a look at for example Network WiFi Library you can see 3 different libraries:
- Net_Wireless_MCW1001_16 (for PIC16)
- Net_Wireless_MCW1001_16E (for Enhanced PIC16)
- Net_Wireless_MCW1001_18 (for PIC18)

Best regards,
Marina

Post Reply

Return to “Package Manager General”