question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MCUdude MightyCore boards package

See original GitHub issue

Hi!

As the maintainer of MightyCore, I would like to provide better documentation on how to use PlatformIO with the Arduino core. If this turns out to be a success I’d like to add some of my other Arduino cores as well. I know fuse settings is difficult, so I will leave this out of the question for now.

First, the MightyCore version that’s included here is very old and outdated. EDIT: turns out it’s only behind by a few commits. Are these files updated manually by the platformIO team, or automatically when I push a commit or issue a new release?

MightyCore has the additional option of turning on of off LTO (link time optimization). How can this feature be turned on or off in the platformio.ini file?

MightyCore contains three different pinouts or variants. Standard, Bobuino, and Sanguino. How can one of these pinouts be selected using the platformio.ini file?

If possible, I’d also like to re-structure the JSON file(s) a bit to make the platformio.ini file a little sleeker. Is possible to make one single JSON file for all MightyCore devices? Then all other settings will have to be provided in the ini file.

Is it also possible that some sort of platformio.ini template is loaded into the project after you’ve selected MightyCore as your board? If so I could add some additional settings (shown below).

Ideally, I’d like a working platformio.ini file to look like this:

[env:MightyCore]
platform = atmelavr
framework = arduino

; Device
board = mightycore1284 ; Do we have to specify board here, or is MCU enough?
board_build.mcu = atmega1284p

; Build options
board_build.f_cpu = 160000000L
;board_build.lto = true
;board_build.pinout = standard ; (or bobuino or sanguino)

; Upload options
board_upload.speed = 115200
upload_port = /dev/cu.usbserial*

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
ivankravetscommented, Apr 24, 2019

Thanks! Please re-run pio update 😃

0reactions
MCUdudecommented, Apr 24, 2019

Great! I’ll probably open a new issue here when the questions start to pile up 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub - MCUdude/MightyCore: Arduino hardware ...
Arduino hardware package for ATmega1284, ATmega644, ATmega324, ... Select the microcontroller in the boards menu, then select the clock frequency.
Read more >
MightyCore : An Arduino core for the ATmega16, ATmega32 ...
Open the Arduino IDE. Open the File > Preferences menu item. Enter the following URL in Additional Boards Manager URLs: https://mcudude.github.
Read more >
DIP-40 Arduino compatible development board - Tindie
DIP-40 Arduino compatible development board from MCUdude on Tindie. ... Arduino compatible using MightyCore. Designed by MCUdude in Norway.
Read more >
digitalRead not working for atmega644 and mightyCore
I'm debugging a circuit board that has an atmega644 chip and has 3 ... MCUdude/MightyCore: Arduino hardware package for ATmega1284, ATme.
Read more >
MightyCore - GitHub Pages
MightyCore. This branch contains the Arduino IDE Boards Manager installation support files. For more infomation see https://github.com/MCUdude/MightyCore.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found