wg icon indicating copy to clipboard operation
wg copied to clipboard

AVR flashing tool. Help needed

Open luqasz opened this issue 4 years ago • 5 comments

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:

  • reading fuses
  • reading lock byte
  • reading signature
  • reading eeprom

luqasz avatar Dec 14 '20 19:12 luqasz

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

ryan-summers avatar Dec 15 '20 09:12 ryan-summers

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

luqasz avatar Dec 15 '20 15:12 luqasz

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.

rursprung avatar Jun 19 '24 08:06 rursprung

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.

luqasz avatar Jun 19 '24 10:06 luqasz

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

rursprung avatar Jun 19 '24 11:06 rursprung