TOP Contributors

  1. MIKROE (2760 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139223 times)
  2. FAT32 Library (71732 times)
  3. Network Ethernet Library (57114 times)
  4. USB Device Library (47426 times)
  5. Network WiFi Library (43051 times)
  6. FT800 Library (42401 times)
  7. GSM click (29832 times)
  8. mikroSDK (28034 times)
  9. PID Library (26881 times)
  10. microSD click (26196 times)
Libstock prefers package manager

Package Manager

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]

< Back
Example

Article: Ram corruption reasons in mP and mB

Rating:

5

Author: dany

Last Updated: 2018-08-02

Package Version: 2.0.0.0

Example: 1.0.0.0

Category: Other Codes

Downloaded: 695 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.

No Abuse Reported

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".

  • Information
  • Comments (3)
DOWNLOAD LINK RELATED COMPILER CONTAINS
Other PIC Compilers
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog

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.  

The document in .pdf format

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).

ALSO FROM THIS AUTHOR

PIC Command Line Editor

5

Capable of, like a modem, receiving, editing and executing one (command) line of input. The code in this example project shows a command line editor that can be used in servers (big word) you build, based on PICs.

[Learn More]

TempSensors Ds1820 LM35

16

The basic functions for the DS18(S/B)20 (onewire digital temperature sensor), including string output, ready to display. A routine to convert a more than 9 bits temperature read from a DS18B20 to a string (to e.g. display on an LCD) is also present. Including Parasite Power and Configuration routines. The LM35 basic functions, code efficient.

[Learn More]

Tool: Project configuration in text format

10

Tool that shows the project's configuration words content (in a readable format), the MCU type and the MCU clock frequency. This permits to add (part of) the configuration settings in a comment box in your project.<br> For <b>mP</b>, <b>mC</b> and <b>mB</b> for <b>PIC</b>, <b>dsPIC</b> and <b>PIC32</b>. IDE based version (not stand alone).

[Learn More]