-
Notifications
You must be signed in to change notification settings - Fork 22
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
Improve DxCore support #48
Conversation
oh nice work :D |
hello @brunob45 , The flag 'USING_OPTIBOOT' not working, i still need to add it to the 'build_flag=' myself to platformio.ini if i want to use bootloader Maybe it's not finished ? i don't know much about this kind of code |
Hello @matou78 , May I get a copy of your |
Sorry for the delay, too much work ...
|
@matou78 I just pushed a commit to use the latest version of avrdude.
Then, to load the bootloader By using the |
Thanks :) will try it asap |
@brunob45 Just gave it a try , there is few wrong things i found the name of the .hex files that the builder is calling is wrong , for example the file called is after i renamed the .hex so it get called without error ,when setting fuses , avrdude was showing an error but i solved it
Then i can't chose if i want to upload using bootloader or without it ? Thanks for your time |
Please check the Platformio documentation in the official DxCore repo. There's a section about how to select the bootloader. Comparison with Arduino IDEThe
Note that, in the Arduino IDE, the
In other wordsIf you want to upload via serial
if you want to upload via UPDI
|
Hi @brunob45, thanks for the PR. It seems the latest v1.5.6 follows a different bootloader file name pattern, e.g. |
oh shit this is why i didn't understand why i had to rename myself the files x) |
@valeros If the dxcore package is updated to 1.5.x, we could just update the bootloader file name pattern. I already fixed it in my branch But this won't work for the DD series... Let me try something first |
I edited the [env]
...
board_bootloader.class = optiboot_32dd14
board_bootloader.port = ser0_alt3 ; Serial Port used for upload
board_bootloader.entrycond = poronly_8sec ; Entry Condition to enable upload
... The resulting bootloader file would be In another PR, I would like to edit the {
...
"bootloader": {
"class": "optiboot_32dx"
},
...
} so the default value for
What do you think about this solution? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see my comments.
@valeros |
@brunob45 Many thanks for the PR, merged. |
pio run -t bootloader
commandMILLIS_USE_TIMER
variable:board_hardware.millistimer
(see description in Add PlatformIO.md SpenceKonde/DxCore#333)USING_OPTIBOOT
to all DxCore variants when a bootloader is specified (following PlatformIO problem with setting SpenceKonde/DxCore#329)Added board definition file for future AVR-DD & EA chipsThis PR may help closing issues #41 & #42.