Does a GCC compiler exist for the PIC32MZ series?

115 Views Asked by At

There is a GCC compiler for the PIC32MX series: http://ww1.microchip.com/downloads/en/DeviceDoc/README_c32_2_02.html

However, I can't find one for the PIC32MZ series. Does it exist?

2

There are 2 best solutions below

4
blsmit5728 On

The XC32 compiler series works for both MX and MZ parts. We use it.

0
André van Schoubroeck On

As the PIC32 is a MIPS m4k architecture, I suppose a generic gcc MIPS cross compiler should work. Something like mipsel-elf-gcc.

One has to provide linker files, startup files, a C library (I suppose there is a newlib port), and some headers/drivers for the peripherals, a generic MIPS cross compiler should be able to generate code that can run on a PIC32.

Note this is my theoretical knowledge about the platform. I never build any code targetting PIC32 or any other MIPS based chip.