Skip to content
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

Add support for ATtiny boards with the Micronucleus 'virtual usb' bootloader #364

Closed
wants to merge 0 commits into from

Conversation

ReinoutHeeck
Copy link
Contributor

Adds a new Cargo runner 'micronucleus-runner' and working example for the Digispark board.

micronucleus-runner is a new crate -a brother to ravedude-. I don't know what the procedure is to introduce new crates into this project, the changes I made pretend it already exists on crates.io...

The code is trivial, the readme is bigger ;-)

@simonsso
Copy link
Contributor

Hi @ReinoutHeeck is there anything the new micronucleus-runner does which the old ravedude does not do?

The readme is a clue:

Boards that have the Micronucleus 'virtual usb' boot loader require
Is this something other than the default bootloader?

runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Checkout code
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

action-rs/toolchain is unmaintained. actions-rust-lang/setup-rust-toolchain@v1 is one alternative

toolchain: stable
override: true
- name: Check micronucleus-runner
uses: actions-rs/cargo@v1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actions-rs/cargo is unmaintained. Run cargo directly in the actions is a solution.

@ReinoutHeeck
Copy link
Contributor Author

is there anything the new micronucleus-runner does which the old ravedude does not do?

AvrDude/RaveDude require an external programmer to program the chip on the Digispark board, (there is no bootloader required in such a setup).

The Micronucleus bootloader turns the Digispark into a self-programming board which makes for a very smooth entry into programming this device, particularly because it sold with this bootloader pre-installed.

As far as I know AvrDude does not support this programming protocol at all.

@ReinoutHeeck
Copy link
Contributor Author

ReinoutHeeck commented Dec 30, 2022

@simonsso

Fredrik, thank you for your suggestions!

I tried to refresh my branch on github and incorporate your suggestions but since my branch was not automatically mergable github rolled back all my changes and automatically marked my contribution as 'closed'. I spent some time trying to get a diff view on what I authored two months ago but failed miserably. This is not the first time I find git a friend and github a foe.

I spent quite some energy on making this a nicely polished contribution and I lack the time to repeat that effort just to undo this mess. My tools should help me and certainly not force me to repeat my steps. So very frustratingly my micronucleus contributions have today been killed by my tools :-(

Once again, thank you for your time and effort here...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants