Hi Jon, Phillip, and others,
Congrats on Goldilocks! I'm interested in the Arduino-compatible bootloader you guys developed for the ATMega1284P. Can you shed any light on how tightly it is coupled to the ATmega32u2? Would the bootloader "just work" with an FT232RL chip (e.g. wired up like a Duemilanove) in place of the ATmega32u2? If not, what changes do you expect would be necessary?
Thanks in Advance,
Vic
Goldilocks Bootloader
Re: Goldilocks Bootloader
Vic,
Depending on your compile environment, I'd expect that there should be no changes needed.
The biggest issue I had was working around the serial timing issues caused by using the 32u2 at 16MHz, which won't apply in your application. If you're using a FT232RL then you can choose an upload baud rate which works best for your 1284p.
You'll probably even find that it will work better. Serial timing from the 32U2 (16U2) is a compromise at best.
Attached is the same code as found in my post from 18 August 2013. http://feilipu.me/2013/03/08/goldilocks ... uno-clone/
Depending on your compile environment, I'd expect that there should be no changes needed.
The biggest issue I had was working around the serial timing issues caused by using the 32u2 at 16MHz, which won't apply in your application. If you're using a FT232RL then you can choose an upload baud rate which works best for your 1284p.
You'll probably even find that it will work better. Serial timing from the 32U2 (16U2) is a compromise at best.
Attached is the same code as found in my post from 18 August 2013. http://feilipu.me/2013/03/08/goldilocks ... uno-clone/
Last edited by feilipu on Tue Oct 01, 2013 12:59 pm, edited 1 time in total.
Re: Goldilocks Bootloader
Setting the BAUDRATE to 38400 in the bootloader firmware and enabling the BLINK_LED_WHILE_WAITING worked for me. Looking at the serial traffic reaching the chip is mostly what showed me the light. Thanks for getting back to me!