Author
Topic: AVR-T32U4 not uploading code (Read 8315 times)

I have just purchased this board and when using arduino ide 1.0.1 or eclipse it does not finish uploading code. I have tried reset after starting code upload but no luck. Does the board need reflashing with new code ?

Yes, of course. The ISP of T32U4 follows the standard layout. Any board that follows the standard ISP hardware layout can program it. Make sure the other board is programmed with the proper firmware to work as ISP.

Check if the programming frequency is not very high. By the way instead of left-clicking over the link and then saving the content from a web page, left-click over the link and "click save link as...". The correct elf file is located in the software section https://www.olimex.com/Products/Duino/AVR/AVR-T32U4/.

Well it seems your avrdude does strange things... The file you have is .elf - it has everything - the program, the bootloader and the correct fuses. Avrdude first tries to program the whole .elf into the eeprom and then creates some (!) .hex which tries to store in the flash memory... Try to program with the other hex (Caterina-Leonardo.hex) the flash and set the fuses manually for the eeprom if it is possible. Refer to "Note on how to make the elf.txt" to get the idea.

I have found out to use a mega2560 as an ISP programmer you need a 10uf capacitor from reset to gnd. This has allowed me to successfully program my t32u4 using the mega2560 and arduino 1.0.3 as a leonardo. I can now use arduino 1.0.3 to program my t32u4. However I still can't manage to use avrdude on its own or from avr eclipse plugin I just get a

It is hard to give you a proper answer since it can be anything but a good idea would be to check the Arduino forums since a lot of people are using their Arduino boards as ISP programmers. I'd suggest posting there also providing more details about the exact steps you take.