The upload script needs to open a com port at 1200 baud to kick the Leonardo into it's boot loader (see, for example, https://nicholaskell.wordpress.com/tag/leonardo/ ) - instead it currently 'asks' the user to hit 'reset' on the board - however - the required com port only shows up for a few seconds when the Leonardo is plugged in.. For example - my system gives COM6 for a few seconds before changing to COM5.. If I'm quick I can set Flowcode to use COM6 and then program the Leonardo ok - but there should be a better way here (allow the user to type a com port rather than selecting it from a list?)
I'm trying to get the HID code working. Without success. I add the USB_HID component to my project - set compiler batch file to avra_usb.bat and added HID to the parameters list (as per v7) - but get lots of 'file not found' messages - a clip:
Using the 'standard' AVRISPmkII config I get:D:\Projects\Arduino SCADA>del "D:\Projects\Arduino SCADA\usb_specific_request.o"
Could Not Find D:\Projects\Arduino SCADA\usb_specific_request.o
D:\Projects\Arduino SCADA>del "D:\Projects\Arduino SCADA\usb_descriptors.o"
Could Not Find D:\Projects\Arduino SCADA\usb_descriptors.o
D:\Projects\Arduino SCADA>del "D:\Projects\Arduino SCADA\power_drv.o"
Could Not Find D:\Projects\Arduino SCADA\power_drv.o
What else do I need to add to my project?D:\Projects\Arduino SCADA\Useless.c:649:20: fatal error: config.h: No such file or directory
compilation terminated.
Martin