PIC18 libraries replacements - package updated to v 1.12

General discussion on mikroPascal PRO for PIC.
Author
Message
janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

Re: PIC18 libraries replacements - package updated to v 1.12

#76 Post by janni » 31 Oct 2019 21:48

New release of the replacement libs is ready for download (package version 1.12). They have been upgraded to work with v 7.60 of the compiler. New routines have been added to String library (routines added by mE that mostly mimic routines already present in the replacement). Hex2dWord has been added to Conversions library along with new mE routines (functional equivalents of routines already present in the replacement lib) - except the ones that contradict computer science in the form proposed by mE (and don't work), i.e. HexToShort, HexToInt, and HexToLongInt.

As always, besides reducing code size and execution times the replacement libraries fix problems of the official libs (like messed-up lately EEPROM functions).

The whole package may be found here or at Libstock.

chimimic
Posts: 178
Joined: 29 Sep 2007 14:35
Location: France
Contact:

Re: PIC18 libraries replacements - package updated to v 1.12

#77 Post by chimimic » 05 Nov 2019 05:13

Thanks Janni ! :D

janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

Re: PIC18 libraries replacements - package updated to v 1.12

#78 Post by janni » 06 Nov 2019 17:18

I've uploaded new mP PRO help (v. 7.60) 'merged' with replacement libs help (only indexes are merged, naturally). This 'merge' allows to reach sought replacement libraries' topics with F1 key from Code Editor or with double-click from Library Manager. Both files are accessible in a single archive here.

Naturally, to make use of the above one has to replace the original mP PRO help file (mikroPascal_PRO_PIC.chm) in compiler installation directory with the new one and add the replacement libs help file (ReplacementLibs.chm) there.

As before, I've polished few chapters in mP PRO help, including description of vectored interrupts handling where an important keyword, ilevel, was omitted in the original description. (BTW, the help file works fine also without the replacement libs help).

stevedrink
Posts: 4
Joined: 08 Feb 2013 12:31

Re: PIC18 libraries replacements - package updated to v 1.12

#79 Post by stevedrink » 18 Nov 2019 10:59

Hi Janni

Is the libswitch program compatible with Win 10, I get an error when I run it even if I change compatibility to Win 7/8 ?

Great libraries and wouldn't be without them.

janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

Re: PIC18 libraries replacements - package updated to v 1.12

#80 Post by janni » 18 Nov 2019 18:04

stevedrink wrote:Is the libswitch program compatible with Win 10, I get an error when I run it even if I change compatibility to Win 7/8 ?
Just tested it under Win 10 Pro 64-bit and there were no problems with starting it.

EDIT: Tried also under Home edition (64-bit) - again, no problem.

Malcolm_M
Posts: 184
Joined: 12 May 2007 13:01
Location: Bristol, UK

Re: PIC18 libraries replacements - package updated to v 1.12

#81 Post by Malcolm_M » 22 Apr 2020 19:33

Hi janni,

Your help please with your LibsSwitch program.

mP PRO V7,1,0 on a Win7 PC

Your website does say the current Replacement libraries version is for mP PRO V7,60. I noticed this after trying it with V7,1,0 :oops: and getting the understandable "__Lib_EEPROM_256_K42.mcl not found!" and "__Lib_EEPROM_1024_K42.mcl not found!" messages as per the attached .png.

In your description: "Clicking on "Replacement Libs" button will initiate installation which consists of saving the original mE libs and copying replacement libs,
their documentation, examples, and the LibSwitch program to a new RepLibs subdirectory in Packages directory." Documentation, examples and mELibs copied but the RepLibs folder is empty.

I would prefer not to upgrade to mP PRO V7,60 if there is another solution which doesn't make extra work for you?
Attachments
Replacement Libs.png
Replacement Libs.png (505.69 KiB) Viewed 3644 times

Malcolm_M
Posts: 184
Joined: 12 May 2007 13:01
Location: Bristol, UK

Re: PIC18 libraries replacements - package updated to v 1.12

#82 Post by Malcolm_M » 22 Apr 2020 21:21

Hi janni,

Problem solution after some relaxing time: copied __Lib_EEPROM_256_K42.mcl and __Lib_EEPROM_1024_K42.mcl from the Replacement library to the mP PRO Uses/P18 folder so that the LibSwitch program would find all the files it was expecting and it worked as described in the documentation :D

janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

Re: PIC18 libraries replacements - package updated to v 1.12

#83 Post by janni » 22 Apr 2020 23:35

Malcolm_M wrote:
22 Apr 2020 21:21
Problem solution after some relaxing time: copied __Lib_EEPROM_256_K42.mcl and __Lib_EEPROM_1024_K42.mcl from the Replacement library to the mP PRO Uses/P18 folder so that the LibSwitch program would find all the files it was expecting and it worked as described in the documentation :D
Clever :) though one could also modify LibsSwitch configuration text file, RepLibs_mP.cfg, by removing extraneous libs from the list inside. And probably best solution would be to use older replacement libs (Libstock keeps previous versions) - version 1.09 should be appropriate for mP version 7.1.

Malcolm_M
Posts: 184
Joined: 12 May 2007 13:01
Location: Bristol, UK

Re: PIC18 libraries replacements - package updated to v 1.12

#84 Post by Malcolm_M » 23 Apr 2020 17:13

Hi janni,

Many thanks, I changed to version 1.09 as you recommended and it is working as advertised :D

I need to generate an accurate variable delay and VDelay_us & VDelay_ms are the perfect routines. As per your website I have enabled all of your replacement libraries.

Post Reply

Return to “mikroPascal PRO for PIC General”