2

I am trying to program an ATMega32u4 microcontroller through arduino IDE. I have added external oscillator(16Mhz) and capacitors and few other connections according to the Schematic. I had put a sparkfun bootloader onto it(caterina) using Avr Pocket Programmer. A usb 2.0 is connected to the microcontroller. Arduino IDE recognizes microcontroller as Arduino Leonardo with the help of this usb. Bootloader file.

I was able to upload codes into the microcontroller but the issue is, I have to put the reset pin to ground momentarily each time when the IDE goes to uploading stage. If i do not reset it, the COM Port for leonardo disappears but it never comes back until I reset it manually and therefore the uploading bar just gets stuck. I have also added the circuit connected to the Reset Pin according to the schematic but even if i remove all of it and just connect a switch, no difference can be observed. No power on reset is working.

Since one can upload codes without having to manually reset each time in Arduino Leonardo, I was wondering what could be the issue here.

Is there a way to auto reset this? Or perhaps fix the auto reset issue in this case? enter image description here

6
  • how is it done on rhe Leonardo? Commented Jul 25, 2019 at 10:51
  • 1
    How is what done on the leonardo? I'm sorry, I didn't get your question. Commented Jul 25, 2019 at 11:37
  • did you look at the Leonardo schematic? Commented Jul 25, 2019 at 16:22
  • 1
    Yes, I did. Also rigged the circuit connected to the reset pin but it doesn't seem to be working. Any idea what could be wrong? Commented Jul 26, 2019 at 6:54
  • 1
    Yes, I did try that and it works. However, I would need to do that while uploading the code quickly, else the code won't upload. Again, it's not exactly an automated thing. Commented Jul 30, 2019 at 12:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.