Go Down

Topic: 1284p Bootloader w/Arduino as ISP (Read 1 time) previous topic - next topic

pert

Make sure the baud rate setting in the bottom corner of Serial Monitor matches the value in your Serial.begin().

ron_sutherland

Nice :)

Seria1*.begin() where *= is the number 1 (UART= 1 right?)
the number looks too much like the letter.

also remember the core you are using is

https://github.com/MCUdude/MightyCore/tree/master/avr/cores/MightyCore

I would look it over some and not assume it is the same as the Arduino core.

Also, you are in charge of keeping that hex file, e.g. expect that I will remove that fork at some point.
I use an R-Pi Zero on an RPUpi shield to have a tool-chain at the network edge.

DrAzzy

Seria1*.begin() where *= is the number 1 (UART= 1 right?)
He's probably using UART0 (Serial) not UART1 (Serial1) since it sounds like he's talking over the same serial port as he's programmed it with, and the bootloader uses UART0.
ATtiny core for 841+1634+828 and x313/x4/x5/x61/x7/x8 series Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts (some assembled), mosfets and awesome prototyping board in my store http://tindie.com/stores/DrAzzy

ron_sutherland

#33
Jan 10, 2018, 11:14 pm Last Edit: Jan 10, 2018, 11:18 pm by ron_sutherland
This is how I made the bootloader hex in the fork of MightyCore on GitHub



https://github.com/epccs/MightyCore/commit/44e84319371771d2231489a72bf72ea239836a76
I use an R-Pi Zero on an RPUpi shield to have a tool-chain at the network edge.

pert

Also posted at:
https://github.com/MCUdude/MightyCore/issues/75
If you're going to do that then please be considerate enough to add links to the other places you cross posted. This will let us avoid wasting time due to duplicate effort and also help others who have the same questions and find your post to discover all the relevant information. When you post links please always use the chain links icon on the toolbar to make them clickable.

FedorAdarichev

@pert

I apologize, will do on cross-referencing in the future.

@DrAzzy and @ron_sutherland

You are right, I forgot to put the "1", I changed it, and now it works!

@ron_sutherland

I have saved that hex file to my computer and also noted how you made it.

Thank you all!

ron_sutherland

Maybe it would be good to keep that issue open for a little, it would be better If Hans could add the UART=1 option since it does work and he knows how to make such options show up in the IDE.
I use an R-Pi Zero on an RPUpi shield to have a tool-chain at the network edge.

hansibull

Hi!

Quote
Maybe it would be good to keep that issue open for a little, it would be better If Hans could add the UART=1 option since it does work and he knows how to make such options show up in the IDE.
It's not difficult at all to add UART=1 to the boards menu, but I don't think I want that. Some users also wanted a separate menu for the bootloader baud rate, but I didn't implement it. This is to keep the boards menu as simple as possible. Remember, most users are happy with using UART0 with the default baudrate.

I may implement this later, but this require a bit of work in order to make this as elegant as possible.
I'm thinking about adding a parameter like this to select which UART to use MightyCore  boards.txt#L76
MightyCore -  ATmega1284, mega644, mega324, mega164, mega32, mega16, mega8535
Github.com/MCUdude/MightyCore

MiniCore - ATmega8, mega48, mega88, mega168, mega328
Github.com/MCUdude/MiniCore

hansibull

I'm doing some work on the bootloaders. Will integrate them into MightyCore soon. The bootloader repo can be found here: MCUdude Optiboot_flash
MightyCore -  ATmega1284, mega644, mega324, mega164, mega32, mega16, mega8535
Github.com/MCUdude/MightyCore

MiniCore - ATmega8, mega48, mega88, mega168, mega328
Github.com/MCUdude/MiniCore

Go Up