rust-embedded / wg

Coordination repository of the embedded devices Working Group
1.87k stars 97 forks source link

AVR flashing tool. Help needed #529

Open luqasz opened 3 years ago

luqasz commented 3 years ago

Hi.

I've started working on some code for flashing / reading AVR atmega chips. As for now I got working reading flash from atmega32. atmega2560 seems to be a bit odd. I'd like to contribute to ecosystem as native rust flashing tool will be a good tool / library.

If any one has some time to help then please contact me either via repo issue or mail.

What I got working so far:

ryan-summers commented 3 years ago

Have you checked out probe-rs yet? I know they target mainly ARM cores, but I think it would be well-worth checking out the work there and potentially contributing with them.

I would also highly recommend the Rust Embedded Matrix Channel for discussions like this

luqasz commented 3 years ago

Ok. Thx. I will continue with matrix and probe-rs

rursprung commented 1 month ago

not sure if this issue is still relevant? avr-hal (which provides a HAL for the ATmega and a few other AVR chips) has a guide on flashing, it comes with its own tool, ravedude which internally uses avrdude. this does however mean, that it's (sadly) not integrated in probe-rs, so you still need that separate installation of the tool.

luqasz commented 1 month ago

Hi. I've developed a bit of code to flash, read/write duses into avr devices with stk500 programmer. https://crates.io/crates/avrisp Feel free to use it. I'd like to develop it further but I have other duties now, so can't promise anything. You can hit me tough if you want some information on how things work.

rursprung commented 1 month ago

CC @rahix (since you built ravedude & avr-hal), see above