machine-check-avr

Crates.iomachine-check-avr
lib.rsmachine-check-avr
version0.6.0
created_at2024-03-09 17:20:50.995841+00
updated_at2025-08-26 00:42:11.19582+00
descriptionCrate for the formal verification of AVR microcontrollers by machine-check
homepage
repository
max_upload_size
id1168008
size273,650
Jan Onderka (onderjan)

documentation

README

AVR microcontroller machine-code verification using machine-check

The executable in this crate allows formal verification of machine-code programs for the AVR ATmega328P microcontroller via machine-check.

In addition to common machine-check executable arguments, the executable takes a flag specifying path to Intel HEX file containing the ATmega328P program code: --system-hex-file abc.hex (or just -H abc.hex).

See machine-check for details on verifying specifications.

Note that both machine-check and this crate are currently in developmental phase and awaiting further improvement.

Known system problems

  • Some lesser-used instructions are unimplemented.
  • Only general-purpose I/O peripherals are supported.
  • The program counter may not always be checked for overflow.

Inherent panics

  • Jumps and calls outside program memory.
  • Execution of reserved or illegal opcodes.
  • Illegal or discouraged reads and writes.
  • Push, pop, call, return with values read or written outside data memory.
  • Unimplemented instructions, reads and writes.

Used resources

The system is written using the official AVR instruction set manual and non-automotive ATmega328P datasheet.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 0

cargo fmt