Go Down

Topic: Made My Own Arduino Board - ATMEGA32U4 - Bootloader Questions (Read 10 times) previous topic - next topic

CrossRoads

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Nick Gammon


I made a board, which I want to use arduino SW on. It uses an ATMEGA32U4 and has basic features, but is not a copy of the Leonardo Schematic. I wish to load a bootloader for arduino, and then build support for it in Arduino using the 3rd-party as as I am supposed to.


OK, well you've taken me out of my area of expertise with this bit. I have experience uploading bootloaders using things like the AVRISP and also my own software, eg.

http://www.gammon.com.au/forum/?id=11633
http://www.gammon.com.au/forum/?id=11638

and:

http://www.gammon.com.au/forum/?id=11635


However, all those use SPI programming, whereas your chip uses PDI. Now I don't have a hardware PDI programmer, and although I have an AVR Dragon this model doesn't (seem to) support the PDI interface.

I attempted to make a PDI programmer using a Uno, but the documentation for the protocol is somewhat sparse, and I haven't succeeded yet.

If I had one, I could download the firmware from my Leonardo, and confirm whether or not it agrees with the hex file we were discussing.

Quote
But when I go to load the board...it fails. Perhaps I am totally missing a detail or I have no idea what I am doing lol.


This part is unclear. What did you load onto what, and what connections did you make?

CrossRoads

I've asked fm to jump in here with some of his vinciduino experience.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

fm

Hi folks, I am off to work but it sounds like the JTAG fuse is set. As soon as I get back this afternoon I will good through the thread and see if I can contribute a bit to get that bootloader going. Do you have a schematic of the wiring.
   

MrBEEF

Hey fm,

Yeah I was messing with the fuses, and when I loaded a bootloader (MAttairtech CDC), the jtag shut off and didn't come back.

I think I am going to try to use my MEGA 2560 arduino to load a bootloader.

But I did attach the CPU page of the schematic, so you could see how different it is compared to a leonardo.

Cna I put the leonardo bootloader on this board and it will work the same? Is there anything inside the bootloader that would prevent me from using it? I don't know anything about booloaders.

Thanks,
-Peter

Go Up