platformio / platform-ststm32

ST STM32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/ststm32
Apache License 2.0
407 stars 312 forks source link

Add a board level config `upload.gpiostring` #664

Open Miceuz opened 1 year ago

Miceuz commented 1 year ago

This config can be used to specify a custom reset method during serial upload.

Example:

  "upload": {
    "maximum_ram_size": 65536,
    "maximum_size": 262144,
    "protocol": "serial",
    "protocols": [
      "dfu",
      "serial",
      "jlink",
      "stlink",
      "blackmagic"
    ],
    "gpiostring": "-dtr,-rts,"

Fix #257

Also fix a small bug where 'False' would be inserted in case when tool-stm32duino package is not available.