MCUdude / MightyCore

Arduino hardware package for ATmega1284, ATmega644, ATmega324, ATmega324PB, ATmega164, ATmega32, ATmega16 and ATmega8535
Other
649 stars 182 forks source link

Use bootloader with a custom pinout. #176

Closed Powertx closed 4 years ago

Powertx commented 4 years ago

Hello, I'm so confused how this works. I have a custom board definition thing, that works with my arduino uno board, but i cant figure out how to use your bootloader with my boards.

Basically i want to use your atmega1284 bootloader, in my board definitons. If i just add a custom arduino_pins.h in your boards folder it works fine. I just cant get it to work with my boards download.

Can anyone help me? Hope this makes sense...

Powertx commented 4 years ago

I keep getting "recipe.preproc.macros pattern is missing" when trying to compile...

MCUdude commented 4 years ago

You should fork MightyCore and add your own variant. Use the standard one as a template. After you've done this you'll just use this version in the boards.txt file, just like I've done here:

https://github.com/MCUdude/MightyCore/blob/703121873af406dfa7a58f3df4db21b51c8005e9/avr/boards.txt#L73

If you're trying to create your own Arduino core, just like MightyCore is, I can't help you with that. The code for this project is open-source, and you're free to figure out the details.

JAndrassy commented 4 years ago

https://arduino.stackexchange.com/questions/54484/adding-a-custom-board-to-the-arduino-ide/60660#60660

Powertx commented 4 years ago

Thanks, for help. I figured i only need your bootloader(hex file). Everything else is just arduino stuff.