Microchip pic32cx SGxx port

Hi,

Just been asked to start a new project with with a microchip Arm m4 (PIC32CX SGxx) family.
Unfortunately it “requires” their own XC32 compiler making the normal thumb m4 ports that I use for most other m4 processors useless as the assembly is different between XC32 and GCC.

Does anyone know anywhere one may find an embryo to a port.c/.h or can highlight my stupidity so that I can get this processor going?

kind regards

Is there no option to use GCC?

Did you try to see if Harmony can generate one ? I’d also suggest reaching out to Microchip.

Hi,
Thanks for your quick answer!

I have it up and running now with “normal” gcc , I managed to find all the defines etc needed to get it all going in the hidden install folder for the ide, so I just don’t use the xc.
From reading a bit more, it seems XC doesn’t really bring anything of value to the table, so I’ll use gcc instead.

regards
Hjalmar

Thank you for sharing your solution!