brunoleppe / PIC32-Project-Template

A PIC32 project template working outside MPLAB X
MIT License
15 stars 1 forks source link

Collaboration: get this to compile with a free XC32 compiler that you compile #1

Open ElectricRCAircraftGuy opened 10 months ago

ElectricRCAircraftGuy commented 10 months ago

Would you like to compile the XC32 compiler from source and then use that custom xc32 compiler to compile your project? I've compiled the XC32 compiler from source in both Windows 11 and Ubuntu 22.04, license-free, legally since it's GPL, but need some help with many other areas, like makefiles and MPLABX stuff.

brunoleppe commented 10 months ago

Hi Gabriel,

Sure, I'm in. I briefly checked your project, I will need to try it.

By the way, did you know there is a simple patch to enable compiler optimizations? Maybe this info is useful in some way.

Regards.

El jue., 28 de diciembre de 2023 9:43 p. m., Gabriel Staples < @.***> escribió:

Would you like to compile the XC32 compiler from source and get it to compile your project? I've compiled the XC32 compiler from source, but need some help with many other areas.

— Reply to this email directly, view it on GitHub https://github.com/brunoleppe/PIC32-Project-Template/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYCKUJ6M24RBXQSL4Z7OOUTYLYU5DAVCNFSM6AAAAABBGEGQP2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TSMBRGE2TONA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ElectricRCAircraftGuy commented 10 months ago

To make sure we are talking about the same thing, here's the project: https://github.com/ElectricRCAircraftGuy/Microchip_XC32_Compiler

What's the patch you're talking about?

brunoleppe commented 9 months ago

Hi, I built the compiler and it really works! But I have a question regarding include files. I noticed the include path of the compiler is /opt/lib/gcc/pic32mx/8.3.1/include for both gcc and g++. How do you set all the include headers? I'm trying to compile a personal project but I have problems with the include files. I copied the include files provided by microchip to the include directory but still got some problems.

This is the patch: https://github.com/cv007/XC3216

P.S: I have newer CMakeLists.txt files for pic32 projects, I also stopped using Make and Makefiles.