Flash Atmega MEGA16U2

HI, due to problems with uploading sketches (worked fine for 2-3 weeks....) , I suspect the USB-Serial convertor on MEGA16u2 chip , I decided to re-flash the 16U2 chip via sketch called "Atmega board programmer" (Nickgammon) . All works fine (good UNO to 'bad' UNO , wiring ok , no compiling issues ) , correct messages on serial monitor .... until a error message appears "**Invalid library found in D:\Documents\Arduino\libraries\Flash16u2: no headers (.h) found in D:**Documents\Arduino\libraries\Flash16u2"
(Flash16u2 is a modified name , easier to use than Atmega Board programmer....,I give to the sketch).
Sketch is stored in my libraries (D:\Documents\Arduino\libraries.... , NOT in the Arduino library on C:\ Program files (x86)\Arduino\libraries".
What did I do wrong witch the sketch ? Put it on the wrong place ?
See library in attachment.
Thanks.

vandenr:
a error message appears "**Invalid library found in D:\Documents\Arduino\libraries\Flash16u2: no headers (.h) found in D:**Documents\Arduino\libraries\Flash16u2"

This is not an error. It's only a warning telling you have something that is not a library installed in your libraries fodler. You can ignore it if you like. A single non-library does no real harm. If you have a lot of them, they might slow down the Arduino IDE a little because it needs to scan all the libraries every time you compile a sketch, as well as on some other occasions.

However, you might want to fix it just because this warning is annoying. You should only ever put libraries in the D:\Documents\Arduino\libraries folder. D:\Documents\Arduino\libraries\Flash16u2 is not a library, so it has no business being in D:\Documents\Arduino\libraries. You can put it anywhere else you like, but not in the libraries folder. So just move D:\Documents\Arduino\libraries\Flash16u2 somewhere else and the problem is solved.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.