Skip to content

Use ravedude instead of avrdude #9

Open
@mstarongithub

Description

@mstarongithub

I suggest changing the use of avrdude for build upload to ravedude, avoiding the need to manually find and pass the device where the arduino is located.

About ravedude: It's an avrdude wrapper first made for use with Rust and cargo run, automatically selecting the port the arduino is connected to as well as board and programmer arguments depending on the board name passed to ravedude.

While this would add another dependency in ravedude, it would also remove the requirement to manually specify avrdude arguments, including the correct tty device the arduino is connected to.

The changes to build.zig would be:

  • Remove the `flash_command' constant
  • change the definition of the avrdude constant with
const avrdude = b.addSystemCommand(&.{
        "ravedude",
        "uno",
        bin_path,
    })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions