On Sat, December 7, 2013 6:46 pm, Sergey Dryga wrote: > Hello all, > > I am switching my project from PIC24F32KA302 to PIC24F16KM202 so that I > can used built-in DAC (and to try out another PIC of course). It looks > like most of peripheral libraries do not build for this target. Warning > message: > /opt/microchip/xc16/v1.20/bin/bin/../../support/peripheral_24F/uart.h:890= :2: > warning: #warning "Does not build on this target" > In file included from user.h:4:0, > > spi, uart, adc all have this error. Peripheral library documentation > with xc16 does not even include 24F16KM* parts, although compiler does > support it. I am using MPLAB X v1.95 with XC16 v 1.20, on OpenSuse 13.1 > Linux > > Is there some trick I am missing? Hi Sergey, It looks like the file "/opt/microchip/xc16/v1.20/support/peripheral_24F/PIC24F_periph_features.h" is missing an entry for that processor. I would suggest just moving to a part that has similar features, but I'm not sure what would be the best. If you backup that file and modify it, you should be able to get going. This file is used to make sure the appropriate functions are used for the various revisions of the peripheral. Not a full answer, but I hope it helps in the short-term. Matt Bennett Just outside of Austin, TX 30.51,-97.91 The views I express are my own, not that of my employer, a large multinational corporation that you are familiar with. --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .