mityeltu 0 Report post Posted April 12, 2016 #pragma DATA _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_OFF & _MCLRE_ON & _CP_OFF & _BOREN_OFF & _CLKOUTEN_OFF & _IESO_OFF & _FCMEN_OFF #pragma DATA _CONFIG2, _WRT_OFF & _LVP_OFF & _STVREN_OFF & _ULPBOR_OFF & _BORV_19 & _VCAPEN_OFF I am trying to get the subject chip to work, but the BoostC compiler keeps complaining about the configuration buts I have. This above is what I have (this crazy forum won't let me put the code anywhere but at the top of this.... why doesn't anything ever work right??????) Any way, the error has to do with _VCAPEN_OFF parameter. It keeps complaining that this is an unknown identified and an invalid operand. I looked in the .h file for the 16f1519 and this item is listed for config2. I tried includeing PIC16F1519.h and all that did was throw a huge number of errors for having variables that already exist. Can anyone explain what I have done wrong here? Just so you know, there is NOTHING in the main program except while(1) {} Quote Share this post Link to post Share on other sites
Reynard 0 Report post Posted April 12, 2016 (edited) Works for me (SB V7.30) Just done a copy and paste and it compiles without error. Maybe you have a sneaky character in there somewhere. Cheers Reynard ps. Are you compiling for a PIC16LF1519 which doesn't have _VCAPEN ? Edited April 12, 2016 by Reynard Quote Share this post Link to post Share on other sites
mityeltu 0 Report post Posted April 12, 2016 I'm an idiot. Yes, I was trying to comile for the LF version. Thak you. That fixed it. My father-in-law always said you have to be smarter than the piece of equipment you're working with.... that explains alot. Quote Share this post Link to post Share on other sites