CLion and PIC32 Development on Windows
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.
Please sign in to leave a comment.
Hello!
It should be able to work with XC32 compiler in CLion using the custom compiler option:
https://www.jetbrains.com/help/clion/custom-compilers.html
https://blog.jetbrains.com/clion/2021/10/clion-2021-3-eap-custom-compiler/
https://github.com/JetBrains/clion-custom-defined-compiler-examples