i currently develop a small board for a Kids solder workshop and try to get the bootloader to the 32U4 on the board using a Arduino Leonardo as progammer, but without success so far
Here is the schematic to the board.
My questions are:
Is it possible to upload the bootloader to the 32U4 using a Leo?
how can i make sure the processor is running (i have an oscilloscope here).
the reset is connected, its just not clearly visible in the schematic.
I've connected it this way:
Leonardo Pins
32U4 ISP Header
10
RESET
5V
5V
GND
GND
SCK
SCK
MISO
MISO
MOSI
MOSI
Is that correct?
Furthermore I've uploaded the "Examples -> ArduinoISP" sketch to the LEO and extended the "C:\Program Files (x86)\Arduino\hardware\arduino\avr\programmers.txt" with these lines:
arduinoispleo.name=Arduino as ISP (Leonardo)
arduinoispleo.communication=serial
arduinoispleo.protocol=arduino
arduinoispleo.speed=19200
Then I've selected "Tools->Programmer->Arduino as ISP (Leonardo)" and hit "Burn Bootloader"
It takes a while and then shows timeout errors from avrdude i think.
On the Leonoardo when used as a programmer, the SS pin is pin 17, which is not on the header anywhere. Pin 17 runs the RX LED. So, you need to edit the ArduinoISP sketch to change
I have looked on Your shematic.
You dont have got reverse blocking diode between VCC and USB VCC but this should be not a problem for a test.
I used my UNO as programmer but Leonardo must work too.
a) LED 13 should "pulsing" for some seconds after You make manual RESET.
b) Unplug the new Leonardo. After new connection You will see "Leonardo" as USB Device.
a) I guess You connected the RESET properly like some people told You allready.
b) Reverse blocking diode on RESET is missing too.
c) I dont know if a missing ferrite can make a problem. I'm using 2 of them.
Generally, I would suggest as for the first step You should check if You can reach the µC.
I made some progress! The main problem was that i bought dirt cheap 18pF capacitors from China.
With those the crystal doesn't oscillate at all. I fixed that quickly with way to large, but working 1206 caps for the test.
That way I was able to flash the bootloader using an STK500.
Unfortunately the Board is not recognized by may notebook if i plug it in via USB.
Strangely it is recognized if i have the STK connected to the ISP header at the same time!?
Is that maybe a problem with my Reset Pullup? (I had no external resistor soldered in during the test)