I have MPLAB X v5.35, XC32 v2.40 installed on Win10, 64-bit.
I am making a New Project -> Standalone Project -> ATSAMD21J18A -> SAM D21 Xplained Pro (EDBG) -> XC32 (v2.40) -> ProjectName. Great, project created.
I make a new C main file. I add #include <xc.h>. I can CTRL+click on <xc.h>, and it opens that file ("C:\Program Files (x86)\Microchip\MPLABX\v5.35\packs\Microchip\SAMD21_DFP\3.2.90\samd21a\xc32\include\xc.h").
The problem is this - when I then Ctrl+click on <samd21j18a.h> within xc.h to look at the device-specific header file, I get an error in the bottom left corner of MPLAB X that says: "Cannot open element "<samd21j18a.h>" ".
Does anyone know why this is happening? I am new to Microchip world, so it may just be something easy.
I have searched the xc32 install directory, and find two different samd21j18a.h files, one at "C:\Program Files\Microchip\xc32\v2.40\pic32c\include\proc\SAMD21A\pio" and another at "C:\Program Files\Microchip\xc32\v2.40\pic32c\include\proc\SAMD21A".
If I manually put #define <samd21j18a.h>, the one at the not-\pio subfolder comes up when I Ctrl-click, but I believe the \pio\samd21j18a.h is the one I want for register definitions and such.