Skip to content

Cannot build for arduino pro mini #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
uozuAho opened this issue Feb 21, 2017 · 2 comments
Closed

Cannot build for arduino pro mini #215

uozuAho opened this issue Feb 21, 2017 · 2 comments
Labels
conclusion: resolved Issue was resolved type: support OT: Request for help using the project

Comments

@uozuAho
Copy link

uozuAho commented Feb 21, 2017

I couldn't find the right fqbn to build for my pro mini 3v3 8MHz. I tried arduino:avr:pro, promini, mini to no avail. #78 may have saved me some time here.

It looks like this tool parses 'boards.txt' under ~arduinodir/hardware/arduino/avr. It seems that the problem is the pro mini's settings are nested a few levels deeper to cater for the multiple cpu, voltage and frequency options. For example, pro.menu.cpu.8MHzatmega328. Trying this as a fqbn also didn't work.

A workaround is to add the following text to boards.txt, and using the fqbn arduino:avr:promini328_3v

promini328_3v.name=Arduino Pro or Pro Mini

promini328_3v.upload.tool=avrdude
promini328_3v.upload.protocol=arduino
promini328_3v.upload.maximum_size=30720
promini328_3v.upload.maximum_data_size=2048
promini328_3v.upload.speed=57600

promini328_3v.bootloader.tool=avrdude
promini328_3v.bootloader.low_fuses=0xFF
promini328_3v.bootloader.high_fuses=0xDA
promini328_3v.bootloader.extended_fuses=0x05
promini328_3v.bootloader.unlock_bits=0x3F
promini328_3v.bootloader.lock_bits=0x0F
promini328_3v.bootloader.file=atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex

promini328_3v.build.mcu=atmega328p
promini328_3v.build.f_cpu=8000000L
promini328_3v.build.board=AVR_PRO
promini328_3v.build.core=arduino
promini328_3v.build.variant=eightanaloginputs
@facchinm
Copy link
Member

Hi @uozuAho ,
the correct fqbn of boards with multiple menu level is:
$author:$architecture:$boardname:$property1=$value1:$property2=$value2 , so in your case if will look like
arduino:avr:pro:cpu=8MHzatmega328. The documentation is here https://github.com/arduino/Arduino/blob/master/build/shared/manpage.adoc#options (not very well served by Google, I must admit)

@uozuAho
Copy link
Author

uozuAho commented Feb 22, 2017

Thanks for that. Knowing the above and armed with boards.txt, I guess it's not that hard to figure out your hardware's fqbn. I still like the sound of that --list-boards idea from #78 ...

@per1234 per1234 added conclusion: resolved Issue was resolved type: support OT: Request for help using the project labels Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved type: support OT: Request for help using the project
Projects
None yet
Development

No branches or pull requests

3 participants