We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: dany
Last Updated: 2018-08-02
Package Version: 2.0.0.0
Example: 1.0.0.0
Category: Other Codes
Downloaded: 698 times
Not followed.
License: MIT license
Purpose: Make people aware about the ways of working that can introduce ram corruption
(and of course how to avoid it). In this document the many ways where it goes right are not mentioned, only the danger areas are highlighted.
Do you want to subscribe in order to receive notifications regarding "Article: Ram corruption reasons in mP and mB" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Article: Ram corruption reasons in mP and mB" changes.
Do you want to report abuse regarding "Article: Ram corruption reasons in mP and mB".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
1436552809_article__ram_cor_other_pic.zip [720.34KB] | Other PIC Compilers |
|
Purpose of this article: Make people aware about the ways of working that can introduce ram corruption (and of course how to avoid it). In this document the many ways where it goes right are not mentioned, only the danger areas are highlighted.
Please forward your suggestions or additions via the "comments" tab. The article is most possible not complete. All suggestions are wellcome!
2014-08-12: Added a few items: - no terminating zero in a string - "SizeOf" usage with "external" items.
2014-08-21: Added the mikroBasic examples...
2014-08-26: small addition into the "non terminating a string with zero" part...
2014-12-07 (v2.0): 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.
2015-06-06: added again a nasty one: using '+' to concatenate a string passed to a function as parameter, see http://www.mikroe.com/forum/viewtopic.php?f=106&t=64658.Thanks Jim Keuneman!
2015-06-09: Updated the document again: added the "StrnCpy" issue and the concat (with +) issue for a var string + a const string.
2015-07-10: Added some "tips" (thanks Acko).