You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The configuration file allows you to define various parameters for your application:
117
-
118
-
- Serial port:
119
-
- By name:
120
-
```toml
121
-
[connection]
122
-
serial = "/dev/ttyUSB0"
123
-
```
124
-
- By USB VID/PID values:
125
-
```toml
126
-
[[usb_device]]
127
-
vid = "303a"
128
-
pid = "1001"
129
-
```
130
-
- Baudrate:
117
+
## Configuration Files
118
+
119
+
There are two configuration files allowing you to define various parameters for your application:
120
+
121
+
-`espflash.toml`: Project configuration
122
+
-`espflash_ports.toml`: Port configuration
123
+
124
+
The reason to split configuration into two different files is to allow Git ignoring the Serial Port configuration, which is specific to the user (see [#727](https://github.com/esp-rs/espflash/issues/727)).
125
+
126
+
### `espflash_ports.toml`
127
+
128
+
This file allows you to define the serial port connection parameters:
129
+
- By name:
131
130
```toml
132
-
baudrate = 460800
131
+
[connection]
132
+
serial = "/dev/ttyUSB0"
133
133
```
134
-
-Bootloader:
134
+
-By USB VID/PID values:
135
135
```toml
136
-
bootloader = "path/to/custom/bootloader.bin"
136
+
[[usb_device]]
137
+
vid = "303a"
138
+
pid = "1001"
137
139
```
140
+
141
+
### `espflash.toml`
142
+
143
+
This file allows you to define different flash parameters:
You can have a local and/or a global configuration file:
164
+
### Configuration Files Location
165
+
You can have a local and/or a global configuration file(s):
151
166
152
167
- For local configurations, store the file under the current working directory or in the parent directory (to support Cargo workspaces) with the name `espflash.toml`
153
168
- Global file location differs based on your operating system:
-[Development Kit Support Policy](#development-kit-support-policy)
@@ -131,49 +134,61 @@ or `cargo add espflash --no-default-features`
131
134
132
135
We disable the `default-features` to opt-out the `cli` feature, which is enabled by default; you likely will not need any of these types or functions in your application so there’s no use pulling in the extra dependencies.
133
136
134
-
## Configuration File
135
-
136
-
The configuration file allows you to define various parameters for your application:
137
-
138
-
- Serial port:
139
-
- By name:
140
-
```toml
141
-
[connection]
142
-
serial = "/dev/ttyUSB0"
143
-
```
144
-
- By USB VID/PID values:
145
-
```toml
146
-
[[usb_device]]
147
-
vid = "303a"
148
-
pid = "1001"
149
-
```
150
-
- Baudrate:
137
+
## Configuration Files
138
+
139
+
There are two configuration files allowing you to define various parameters for your application:
140
+
141
+
-`espflash.toml`: Project configuration
142
+
-`espflash_ports.toml`: Port configuration
143
+
144
+
The reason to split configuration into two different files is to allow Git ignoring the Serial Port configuration, which is specific to the user (see [#727](https://github.com/esp-rs/espflash/issues/727)).
145
+
146
+
### `espflash_ports.toml`
147
+
148
+
This file allows you to define the serial port connection parameters:
149
+
- By name:
151
150
```toml
152
-
baudrate = 460800
151
+
[connection]
152
+
serial = "/dev/ttyUSB0"
153
153
```
154
-
-Bootloader:
154
+
-By USB VID/PID values:
155
155
```toml
156
-
bootloader = "path/to/custom/bootloader.bin"
156
+
[[usb_device]]
157
+
vid = "303a"
158
+
pid = "1001"
157
159
```
160
+
161
+
### `espflash.toml`
162
+
163
+
This file allows you to define different flash parameters:
You can have a local and/or a global configuration file:
184
+
### Configuration Files Location
185
+
You can have a local and/or a global configuration file(s):
171
186
172
187
- For local configurations, store the file under the current working directory or in the parent directory (to support Cargo workspaces) with the name `espflash.toml`
173
188
- Global file location differs based on your operating system:
0 commit comments