MCUdude MightyCore boards package
See original GitHub issueHi!
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:
- Created 4 years ago
- Comments:18 (18 by maintainers)
Top GitHub Comments
Thanks! Please re-run
pio update
😃Great! I’ll probably open a new issue here when the questions start to pile up 🙂