Manual programming


 * Bootloader: Version 4
 * Board: Pinguino 26J50

A toolchain is the set of programming tools that are used to create a product (typically another computer program or system of programs). The tools may be used in a chain, so that the output of each tool becomes the input for the next, but the term is used widely to refer to any set of linked development tools.

Pinguino IDE, when targeting the Pinguino 26J50, comprises sdcc —a C compiler— and sdcpp —a preprocessor— from the SDCC suite, gpasm and gplink from the GPUTILS suite.

Windows Batch File Example
You need to keep only p8 and source directories.

Your program must be in source/user.c.

Simple blinking LED should look like:

SDCC binaries are available from SDCC web page.

Using SDCC under Linux
ToDo

Using SDCC under OS X
If you have installed the OS X version of the Pinguino IDE, then you need to keep only the macosx, p8 and source directories and their contents.

Note: Before revision 762 of the Pinguino X.4 IDE, the gpasm and gplink binaries in  need to be upgraded from v0.13.4 beta to v0.13.7 beta (later versions may work, not tested) to be able to compile and link programs for the Pinguino 26J50 board. You can download gputils-0.13.7 from http://sourceforge.net/projects/gputils/files/gputils/0.13.7/ and compile (compiles cleanly under OS X 10.6.8), then copy to the  directory.

Program Skeleton
Your program defines should be in source/define.h and your program code should be in source/user.c.

The define.h file for a simple blinking LED program for the Pinguino 26J50 board should look like:

... and the user.c code file should look like:

Programming
You can now program the Pinguino 26J50 board using a | Microchip PICkit2 or other hardware PIC programmer. Simply import the main.hex file and program the board using the ICSP pins!