Ref: http://www.libstock.com/projects/view/1 ... -mp-and-mb Ram Corruption sources.
2014-12-06: added a nasty one: passing e.g. a byte as var parameter where a word parameter was expected and assigning a value to it inside the procedure.
PIC related website
Re: PIC related website
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)
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)
Re: PIC related website
Very useful !
Thanks Dany !
Thanks Dany !
Re: PIC related website
Ref: http://www.libstock.com/projects/view/1 ... -mp-and-mb Ram Corruption sources.
2015-06-04: found again a nasty one (thanks to Jim Keuneman): possible Ram corruption when using '+' for string concatination (not quite the same as already mentioned in the article above): see http://www.mikroe.com/forum/viewtopic.p ... 58&start=6.
Also valid for mP for PIC, dsPIC/PIC24 and PIC32.
2015-06-04: found again a nasty one (thanks to Jim Keuneman): possible Ram corruption when using '+' for string concatination (not quite the same as already mentioned in the article above): see http://www.mikroe.com/forum/viewtopic.p ... 58&start=6.
Also valid for mP for PIC, dsPIC/PIC24 and PIC32.
Last edited by Dany on 06 Jun 2015 19:32, edited 1 time in total.
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)
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)
Re: PIC related website
Thank you Dany !
Re: PIC related website
The document http://www.libstock.com/projects/view/1 ... -mp-and-mb Ram Corruption sources has been updated.
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)
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)
Re: PIC related website
2015-06-09: Updated the document http://www.libstock.com/projects/view/1 ... -mp-and-mb again: added the "StrnCpy" issue and the concat (with +) issue for a var string + a const string.
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)
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)
Re: PIC related website
The following tools have been updated: RomSize (v5.0), see Libstock https://libstock.mikroe.com/projects/vi ... l-romsizes. The "address" column has been added.
Have fun!
Have fun!
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)
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)
Re: PIC related website
The version has become v5.1: an error is corrected regarding constant sizecalculation for PIC23-dsPIC30/33.Dany wrote:The following tools have been updated: RomSize (v5.0), see Libstock https://libstock.mikroe.com/projects/vi ... l-romsizes. The "address" column has been added.
Have fun!
Sorry for any inconvenience.
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)
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)
Re: PIC related website
RomSizes tool:
Decided to go back to version 5.0: this version shows the actual rom size in bytes used by constants (= 1.5 times bigger than the number of bytes declarared in mP/mB) for PIC24 and P30/33..
For these types of CPU constants use only 2 bytes per 2 addresses, where 3 bytes per 2 addresses are available.
Sorry for the confusion.
Decided to go back to version 5.0: this version shows the actual rom size in bytes used by constants (= 1.5 times bigger than the number of bytes declarared in mP/mB) for PIC24 and P30/33..
For these types of CPU constants use only 2 bytes per 2 addresses, where 3 bytes per 2 addresses are available.
Sorry for the confusion.
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)
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)
Re: PIC related website
Unfortunately I had to give up my website.
All code and examples should also be available in Libstock (I will check this to be true). Hasta la vista.
All code and examples should also be available in Libstock (I will check this to be true). Hasta la vista.
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)
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)
Re: PIC related website
Hi Dany,
Many thanks for your extensive and valuable contributions over the years!!
Many thanks for your extensive and valuable contributions over the years!!