For my hobby desktop c/c++ projects I started using emacs, and I really like it. I made my own config, which contains only a couple of packages like vertico, lsp-mode, company etc.

Professionally I am an embedded systems consultant, working with lot of different uC-s and IDE-s. I have a bigger job currently where I have to work with PIC32 uC, and the project is created with MPLAB X IDE. I wanted use emacs and lsp-mode, but it seems that clangd could not find some of the headers. I have generated the compile_commands.json with a python script called compiledb, but it is not working properly… maybe clangd can not understand some of the compile flags from xc32-cc ? (the mplab compiler).

Anyone tried this stuff? Thx for help.