@@ -27,95 +27,23 @@ $ cargo binstall cargo-espflash
27
27
## Usage
28
28
29
29
``` text
30
- cargo-espflash 1.7.0
30
+ cargo-espflash 2.0.0-dev
31
+ Cargo subcommand for flashing Espressif devices over serial
31
32
32
33
USAGE:
33
- cargo espflash [OPTIONS] [SERIAL] [SUBCOMMAND]
34
-
35
- ARGS:
36
- <SERIAL> Serial port connected to target device
34
+ cargo espflash <SUBCOMMAND>
37
35
38
36
OPTIONS:
39
- --bin <BIN>
40
- Binary to build and flash
41
-
42
- --bootloader <BOOTLOADER>
43
- Path to a binary (.bin) bootloader file
44
-
45
- --erase-otadata
46
- Erase the OTADATA partition This is useful when using multiple OTA partitions and still
47
- wanting to be able to reflash via espflash
48
-
49
- --example <EXAMPLE>
50
- Example to build and flash
51
-
52
- -f, --flash-freq <FREQUENCY>
53
- Flash frequency [possible values: 12M, 15M, 16M, 20M, 24M, 26M, 30M, 40M, 48M, 60M, 80M]
54
-
55
- --features <FEATURES>
56
- Comma delimited list of build features
57
-
58
- --format <FORMAT>
59
- Image format to flash [possible values: bootloader, direct-boot]
60
-
61
- --frozen
62
- Require Cargo.lock and cache are up to date
63
-
64
- -h, --help
65
- Print help information
66
-
67
- --locked
68
- Require Cargo.lock is up to date
69
-
70
- -m, --flash-mode <MODE>
71
- Flash mode to use [possible values: QIO, QOUT, DIO, DOUT]
72
-
73
- --monitor
74
- Open a serial monitor after flashing
75
-
76
- --monitor-speed <MONITOR_SPEED>
77
- Baud rate at which to read console output
78
-
79
- --package <PACKAGE>
80
- Specify a (binary) package within a workspace to be built
81
-
82
- --partition-table <PARTITION_TABLE>
83
- Path to a CSV file containing partition table
84
-
85
- --ram
86
- Load the application to RAM instead of Flash
87
-
88
- --release
89
- Build the application using the release profile
90
-
91
- -s, --flash-size <SIZE>
92
- Flash size of the target [possible values: 256KB, 512KB, 1MB, 2MB, 4MB, 8MB, 16MB, 32MB,
93
- 64MB, 128MB]
94
-
95
- --speed <SPEED>
96
- Baud rate at which to flash target device
97
-
98
- --target <TARGET>
99
- Target to build for
100
-
101
- --target-dir <TARGET_DIR>
102
- Directory for all generated artifacts
103
-
104
- --use-stub
105
- Use RAM stub for loading
106
-
107
- -V, --version
108
- Print version information
109
-
110
- -Z <UNSTABLE>
111
- Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details
37
+ -h, --help Print help information
38
+ -V, --version Print version information
112
39
113
40
SUBCOMMANDS:
114
41
board-info Display information about the connected board and exit without flashing
42
+ flash Flash an application to a target device
115
43
help Print this message or the help of the given subcommand(s)
44
+ monitor Open the serial monitor without flashing
116
45
partition-table Operations for partitions tables
117
46
save-image Save the image to disk instead of flashing to device
118
- serial-monitor Open the serial monitor without flashing
119
47
```
120
48
121
49
## Configuration
0 commit comments