### Install Ravedude CLI Source: https://docs.rs/ravedude Install the latest version of ravedude from crates.io using cargo. ```bash cargo +stable install --locked ravedude ``` -------------------------------- ### Advanced Ravedude Configuration Options Source: https://docs.rs/ravedude Example of advanced Ravedude.toml configuration, including manual port specification, console port, output modes, and reset delays. ```toml [general] # if auto-detection is not working, you can hard-code a specific port here # (the port can also be passed via the RAVEDUDE_PORT environment variable) port = "/dev/ttyACM0" # ravedude should open a serial console after flashing open-console = true # you can optionally specify a separate port for the console # (can also be set with `--console-port` or RAVEDUDE_CONSOLE_PORT environment variable) # console-port = "/dev/ttyACM1" # console output mode. Can be ascii, hex, dec or bin output-mode = "ascii" # Print a newline after this byte # not used with output_mode ascii # hex (0x) and bin (0b) notations are supported. # matching chars/bytes are NOT removed # to add newlines after \n (in non-ascii mode), use \n, 0x0a or 0b00001010 # newline-on = '\n' # Print a newline after n bytes # not used with output_mode ascii # defaults to 16 for hex and dec and 8 for bin # if dividable by 4, bytes will be grouped to 4 # newline-after = 16 # baudrate for the serial console (this is **not** the avrdude flashing baudrate) serial-baudrate = 57600 # time to wait for the board to be reset (in milliseconds). this skips the manual prompt for resetting the board. reset-delay = 2000 ``` -------------------------------- ### Custom Board Configuration in Ravedude.toml Source: https://docs.rs/ravedude Example configuration for a custom AVR board in Ravedude.toml, specifying general settings, board details, reset behavior, and avrdude parameters. ```toml [general] # port = ... # open-console = true # serial-baudrate = 57600 [board] name = "Custom Arduino Uno" [board.reset] # The board automatically resets when attempting to flash automatic = true [board.avrdude] # avrdude configuration programmer = "arduino" partno = "atmega328p" baudrate = -1 do-chip-erase = true ``` -------------------------------- ### Basic Ravedude Configuration Source: https://docs.rs/ravedude A minimal Ravedude.toml configuration for an off-the-shelf AVR board, specifying the board type and enabling the serial console. ```toml [general] board = "uno" # ravedude should open a serial console after flashing open-console = true serial-baudrate = 57600 ``` -------------------------------- ### Configure Ravedude Runner in .cargo/config.toml Source: https://docs.rs/ravedude Configure ravedude as the runner for AVR targets in your project's .cargo/config.toml file. This enables using 'cargo run' for building and deploying. ```toml [target.'cfg(target_arch = "avr")'] runner = "ravedude" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.