Replacement libraries - updated to v 1.12

General discussion on mikroBasic PRO for PIC.
Author
Message
antonadc
Posts: 277
Joined: 14 Dec 2012 10:15
Location: Pretoria South Africa

Re: Replacement libraries for PIC18 processors - package v 1

#16 Post by antonadc » 09 Mar 2016 09:45

Ill try to write down a list when I play with the glcd program again.

Anton

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

Re: Replacement libraries for PIC18 processors - package v 1

#17 Post by janni » 01 Jan 2017 18:43

New release of the replacement libs, following the release of mB PRO v7.00, is ready for download (package version 1.07).

Two procedures, ByteToStrWithZeros and ShortToStrWithZeros, were added to Conversions library to reflect changes in mE's version of this library (replacement library already contained similar functions so only calls to them were added). Another new function that appeared in mE's library, FloatToStr_FixLen, will be added to replacement lib when the original starts working correctly (hopefully it will also be modified to make more sense :wink: ).

There was a conflict between abs function from C_Stdlib that mE added some time ago and similarly named function in Math replacement library. To make possible use of the pseudo-random functions from C_Stdlib library, a replacement was added that contains these functions.

There's also new version of LibsSwitch program (0.06) that accounts for added C_Stdlib replacement. Archived libs and LibsSwitch program may be downloaded here.

As Package Manager hangs while restoring packages in mB PRO v 7.00, LibsSwitch has to be run to install replacement libs rather than upgrade them, but both are equally easy.

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Re: Replacement libraries for PIC18 processors - package v 1

#18 Post by Dany » 03 Jan 2017 16:17

Thanks! :D :D :D :D
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

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

Re: Replacement libraries for PIC18 processors - package v 1

#19 Post by janni » 15 Jan 2017 18:04

A little late for last upgrade :( , I've grouped all replacement libs' descriptions in a single help file. It's not necessary to download new version of replacement libs, though - help file may be downloaded here.

Best to place it in ...\Packages\RepLibs\help subdirectory of compiler installation directory - IDE opens this folder after double-click on RepLibs in Library Manager. (To have replacement libs help accessible from Tools in IDE one has to place an executable in 'File Name' field - ussually C:\Windows\hh.exe; path to the help file with its name, ReplacementLibs_mB.chm, should be placed in 'Parametrs' field.)

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

Re: Replacement libraries for PIC18 processors - package v 1

#20 Post by janni » 09 Jan 2018 03:06

New release of the replacement libs is ready for download (package version 1.08). Besides System and EEPROM libraries replacements for PIC18FxxK40 processors (compiler has specific versions of these libs) it contains basic libraries for enhanced family processors (Delays, System, and math libs).

As always, new replacement libraries fix problems of the official libs (like the memory switch problem present in original EEPROM libs for PIC18FxxK40), reduce code size and execution times. Only one of the 'old' replacement libs has been modified - 32-bit division in Math library has been compacted even more (but not at the cost of execution time).

Libraries for enhanced family processors remove the danger of memory overwriting (due to errors in original System and Math libraries) and fix the 'immortal' quirks of original math libraries. Unfortunately, I haven't had time to add String and Conversions libs replacements (and little motivation, I have to admit, as I only use smallest enhanced family processors - for small tasks, naturally :) . In fact, the floating-point math libraries were added mostly because of the momentum attained while rewriting the Math lib :wink: ).

There's also new version of LibsSwitch program (0.07). The whole package may be found here or at Libstock.

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

Re: Replacement libraries - updated to v 1.09

#21 Post by janni » 10 Jan 2018 18:01

Sorry guys, I've blundered with jumps in math library for enhanced family :oops: and had to correct it. If anyone already updated to package version 1.08, please update again to version 1.09 (available here or at Libstock).

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

Re: Replacement libraries - updated to v 1.11

#22 Post by janni » 05 Apr 2018 14:59

New replacement libraries package, version 1.11, contains also String, Conversions and EEPROM replacement libraries for enhanced family processors. Thus this set of libs is complete now which is also reflected in new version of LibsSwitch program where the two sets (for PIC18s and enhanced series) are similarly handled now. As usual, new package is available on dedicated website and at Libstock.
LibsSwitch.png
LibsSwitch.png (23.21 KiB) Viewed 2353 times
Mind you, I haven't had time to perform a scrupulous check of String and Conversions replacement libraries for enhanced family processors (this is not as easy as with math libs where a test code can autonomously check all combinations - or at least all critical ones - after just few weeks of running :roll: ). Any feedback about spotted problems is welcome, as always.

Anyone who upgraded to mP PRO v 7.20 will notice that library routines are now automatically ordered alphabetically in Library Manager :( . This makes grouping library routines by function impossible and moves the groups' headings to the end. I haven't removed the headings, though, for those that, like me, stayed with older, less troublesome IDE (one may use older IDE with new command line compiler).

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

Re: Replacement libraries - updated to v 1.12

#23 Post by janni » 31 Oct 2019 22:05

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.

Post Reply

Return to “mikroBasic PRO for PIC General”