Open Rahix opened 3 months ago
We have to catch two problems:
For the rust target, I guess we can just check the architecture from the ELF.
For the MCU-feature, maybe the HAL should define a static symbol in the ELF which contains the selected MCU?
And/or potentially substitute ravedude for this one?:
https://github.com/luqasz/avrisp
As discussed in probe-rs in https://github.com/probe-rs/probe-rs/discussions/391
@brainstorm, I think this is not really related to the topic of this issue. If you want to discuss this, please open a separate issue.
We should safeguard against people accidentally flashing a binary for a different MCU.
User report: https://github.com/Rahix/avr-hal/discussions/530