Closed kbhomes closed 2 years ago
Looking now to make use of SCons, which I first learned about from using PlatformIO to build the initial Arduino prototype of this port. It seems really flexible, but most importantly, it seems actually enjoyable to use as a developer writing a build system.
Goals for this:
c_cpp_properties.json
file, which has C configurations for each combination of nbproject
structure, making it easier to write Microchip platform code in a familiar IDEClosing this since the SCons build seems to be working well. 🥳 I also recently used the MPLAB X project file generated by the build system to successfully debug the PIC18F46K42 firmware in the IDE, so I'm pretty satisfied!
Doing containerized builds of the firmware/bootloader on Microchip hardware (i.e. the only current platform) requires installing XC8 and MPLAB X, running the prjMakefilesGenerator script, and then running Make. Replacing this with custom Makefiles that invoke XC8 directly would have some benefits:
Downside of this is potentially losing the ability to do on-device debugging.