Commit 719d9c6
committed
Remove programmer properties from openocd upload pattern
Platform properties may be associated with a specific programmer selection in the programmers.txt configuration file. These properties can be used in the platform.txt patterns for the actions that use the programmer:
- `program`
- `erase`
- `bootloader`
However, those properties are not expanded in the `upload` pattern, since it does not use the programmer:
https://arduino.github.io/arduino-cli/dev/platform-specification/#programmerstxt
> These properties can only be used in the recipes of the actions that use the programmer (erase, bootloader, and program).
While enhancing the ability to make programmer-specific configuration of the patterns, programmer-associated properties were introduced into `tools.openocd.upload.pattern`, which caused uploads to fail for the "Arduino Zero (Programming Port)" board:
```
Unexpected command line argument: {extra_params}
```
The upload pattern is hereby reverted to the previous working configuration, leaving the beneficial changes to the other patterns.1 parent 2d1fb48 commit 719d9c6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| |||
0 commit comments