ElectricRock Blog

How To

Building Microchip’s C30 Compiler v3.20 on Ubuntu 9.10

by matt on Jan.03, 2010, under How To

This an update to my previous tutorial for building Microchip’s C Compiler for PIC24 MCUs and dsPIC DSCs (herein referred to as C30). This update covers building v3.20 of the compiler (as opposed to v3.12) under Ubuntu 9.10.  Again, this is mostly gleaned from  http://embeddedfreak.wordpress.com/2008/10/10/compiling-mplab-c30-v311b-under-linux, but adapted for the latest version of C30.

These instructions also work for v3.22 and are reported to work with v3.23.

(continue reading…)

6 Comments :, , , , more...

Using a Xilinx DLC5 Parallel Cable to program an AT89S52

by matt on Sep.16, 2009, under How To

While working on my control 16 project I realised I would need to replace the firware of the onboard microcontroller, an AT89C52.  Unfortunately, the AT89C52 is a mission to program (as it is parallel programmable only) so I have replaced it with an AT89S52, which supports in-circuit serial programming.  What I still lacked was an ISP programmer; however, instead of building one I made use of an old Xilinx DLC5 parallel port JTAG cable (schematic).  This was fairly straight forward under Ubuntu 9.04, using UISP AVR and AT89S programming software.  The following instructions assume the target is self powered and has an oscillator/crystal connected if required. NB these instructions are written from memory, so if you find a mistake please post a comment.

(continue reading…)

Leave a Comment :, , , more...

Using C30 with Piklab

by matt on Aug.31, 2009, under How To

This post follows on from my previous post on building Microchip’s C compiler for PIC24 and dsPIC (C30) onUbuntuPiklab is a great IDE for PIC development, and IMHO much nicer to use than MPLAB.  Piklab has support for the dsPIC30 series of PICs using the C30 toolchain.  However, I found the default settings need a little bit of tweaking to make the the toolchain that I built work. The following post details how I setup Piklab to make use of this toolchain.

(continue reading…)

24 Comments :, , , , more...

Installing Microchip’s C Compiler for PIC24 MCUs and dsPIC DSCs (C30) on Ubuntu 9.04

by matt on Aug.16, 2009, under How To

Microchip’s C Compiler for PIC24 MCUs and dsPIC DSCs (herein referred to as C30) is a GCC derivative and therefore the sources are freely available to build it on any platform.  However, the documentation for getting a working setup seems to be sparse.  This blog entry details the steps I followed to install it under Ubuntu 9.04, mostly gleaned from  http://embeddedfreak.wordpress.com/2008/10/10/compiling-mplab-c30-v311b-under-linux. There are some small changes from the embeddedfreak version, I am using v3.12 of the compiler (the most recent version at the time of writing) and I will provide details of how to setup the non-free part.

EDIT: An updated version of the compilation instructions, for C30 v3.20 can be found here: http://www.electricrock.co.nz/blog/2010/01/building-c30-v32/.

(continue reading…)

5 Comments :, , , more...

Pages