Hi Jorgen,
I've got some Chinese Nano boards and as these have no USB socket I have to program these using a custom made connector to connect to my AVRISP mkII.
As for the Leonardo, these should be ok, might be worth trying the press the reset switch when sending the program as the bootloader can be fiddly to enter into. It could also be that the baud rate is wrong, this is specified in the programmer options at the top of the definition file. For some reason Chinese modules often come with all sorts of baud rates. e.g. the default baud on the ESP8266 may be 115220, 9600 or 38400.
Definition files are located here if you want to try and edit it using a text editor.
C:\ProgramData\MatrixTSL\FlowcodeV8\FCD\ARD
Specifically this line near the top of the file.
Code: Select all
<programmer exe="$(compileravr)batchfiles\avrc_arduinoA.bat" params="atmega32u4 avr109 com7 57600 "$(outdir)$(target).hex"" UsesComm="1" />
Remember to reload Flowcode after an edit.
Finally can the Arduino IDE program the device? Might also be worth trying Xloader.
http://russemotto.com/xloader/