Legacy project brought to MPLAB X, will not write PRAGMA statements
I'm working on a project that was originally made in MPLAB IDE v8.66, which I assume is part of the problem here, but even though I've used the configuration tool and copied the generated PRAGMA statements to the top of main.c (where you'd think they'd be noticed), they do not seem to get written to the device. I searched around, but most of the people running into issues simply didn't use the PRAGMA statements correctly (before there was a tool). I'm experienced with embedded devices, but new to Microchip.
Whenever I go to debug the project, it shows 0xFFFF values in the configuration register, and the tool gives me a warning that the configuration has not been written to the device yet. I was in a hurry to get development going, so I switched back to the v8.66 IDE (painful), wrote the new configuration bit values into the window, and the intended configuration gets written to the device and works.
Any ideas? Is there a specific place for the configuration statements?