Hello,
I build a minimalistic Board with Atmega 32U4-AU.
Nicks Fuse Calculator says:
Atmega fuse calculator.
Written by Nick Gammon.
Version 1.10
Compiled on Jul 21 2015 at 22:34:01 with Arduino IDE 10604.
Attempting to enter programming mode ...
Entered programming mode OK.
Signature = 0x1E 0x95 0x87
Processor = ATmega32U4
Flash memory size = 32768
LFuse = 0x5E
HFuse = 0x99
EFuse = 0xF3
Lock byte = 0xEC
Clock calibration = 0x65
Hardare Boot Enable..................... [X]
OCD Enable.............................. [ ]
JTAG Enable............................. [X]
Enable Serial (ICSP) Programming........ [X]
Watchdog Timer Always On................ [ ]
Preserve EEPROM through chip erase...... [ ]
Boot into bootloader.................... [ ]
Divide clock by 8....................... [X]
Clock output............................ [ ]
Bootloader size: 4096 bytes.
Start-up time: SUT0: [ ] SUT1: [X] (see datasheet)
Clock source: low-power crystal.
Brownout detection at: 2.6V.
Im programming with UNO over ISP.
Can I set the fuses without additionally Hardware?
Nicks Programmer set up the fuses.
Anybody knows how Arduinos IDE handle the fuses?
Which Bootloader should I burn on this µC?
Regards,
Mav
Ok, I have installed the Bootloader for Leonardo.
When I want to upload over USB I need to hold the Reset BTN.
It doesn't resets alone.
Somebody knows a solution for this?
I would try selecting the board Leonardo, then burn the bootloader using that board selection so your fuses will be set same as a Leonardo. Upload sketches to it using the Leonardo board selection too. It sounds like you have built a Leonardo. Do you have a 16MHz crystal on it? The Leonardo core will listen for a 1200 baud touch and reboot using the watchdog, and therefore run the bootloader when you upload.
I reprogrammed the Boatloader to Micro.
It's allmost the same behavior.
I'm uploading sketches as You mentioned.
First as Leonardo, now as Micro.
Yes, I have got a 16 MHz Crystal attached to it.
Best chance for succesfull uploading sketches is with holding the RESET Btn.
Or to unplug.
When I hit upload, the Board resets and goes to "listen" mode.
Sometimes it works, sometimes-mostly not.
How did you go about programming the bootloader as Micro? Did you select the board Micro in the IDE and then do Burn Bootloader? Have you made any changes to the IDE's stock boards.txt or are you using them the way they were downloaded? And not doing anything on the command line, right?
I just do it like You wrote.
I dont made any changes.
I think I may need to let others on the forum who have more experience with getting minimal boards going give further advice. I predict they will want pictures of the board, your wiring, schematic and stuff like that.
Hi,
I'll post my Shematic.
Still the same problem.
Upload over USB only on first PlugIn.
After that only with Manual Reset.
Regards,
Mav