They must be some incompatibility of peripheral libraries with XC8 v1.41. That is why it’s giving that error. We tried your code with XC8 v1.34 it compiles well without any problem. As you are aware microchip is phasing out the peripheral libraries, they want people to use the new MPLAB Code Configurator, they are no longer updating the peripheral libraries and thus might not be compatible with new compilers. We would advice you to download XC8 v1.34 under the: Download archives
- This reply was modified 1 year, 5 months ago by Bitahwa Bindu.