Typical Errors

The types of errors that appear when the program is compiled are either syntax or linker errors. A syntax error might be a spelling mistake in the source code or an undeclared variable. Linker errors appear when the program files are combined to create the final program; a common one is that the include files have not been placed in the project folder and cannot be found by the linker.

Logical errors, on the other hand, appear only when the program is tested; and these are easier to correct if detected prior to downloading to hardware, by using a simulator such as MPSIM or VSM. VSM is easier to use, as the errors are more readily spotted in the animated schematic than in the numerical output of MPSIM.

Some simple examples of possible ...

Get Programming 8-bit PIC Microcontrollers in C now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.