CLion and PIC32 Development on Windows

Answered

Hi, does anyone know how to get the xc32-gcc compiler working with CLion on Windows? I tried everything I could imagine, I even asked ChatGPT for some help but it doesn't link the binary. Also, clangd isn't working for the xc32-gcc compiler, it can't parse the header files or any project header file. 

When cmake is configuring the project I get this message: Problems were encountered while collecting compiler information. It seems that the compiler doesn't give any info, maybe it's a bug with the Windows version of xc32-gcc. 

Note: I have been working on Linux with the Linux version of the compiler and it works great. I have configured a system toolchain, selected the xc32 compiler and it works. I don't know why on Windows it's different.

Note2: When configuring a new toolchain as MinGW, then selecting the xc32 compiler, using unix makefiles (MPLABX comes with gnuBins), and setting CMAKE_TOOLCHAIN_FILE to a custom toolchain.cmake, then the project compiles and links fine. However, clangd doesn't work.

0

Please sign in to leave a comment.