-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dfu upload failed on macOS + PlatformIO because cannot reset upload port #920
Comments
First: we do not support PlatformIO directly. Second: I do not have any Mac, I cannot test it, so I cannot guarantee that your change does not break something else working with Arduino IDE. Did you test it with Arduino IDE? |
I tested in Arduino IDE with following settings: It seems reset failed does not break the whole dfu progress: But it reported a error after dfu finished. I think is it could add an parameter or environment to ignore upload-reset to Thanks. |
You didn't use the maple core with Arduino IDE while you use it for PIO. |
Maple core was specified in platformio.ini: board_build.core = maple Reference: https://docs.platformio.org/en/stable/platforms/ststm32.html#switching-between-arduino-cores |
That is what I said. You use maple core with pio but not with arduino ide (based on your screen shot) 😉 |
When use STM32duino-bootloader + platformio + dfu upload method, upload will failed because upload-reset cannot work with the random serial port.
platformio.ini config:
Use PlatformIO upload command, will get logs below:
Because platformio will auto detect a serial port and pass to dfu upload script, in logs above it is
/dev/cu.Bluetooth-Incoming-Port
, but the serial port does not supprot reset operation, then the dfu upload script will failed.It seems that upload-reset is not necessary on macOS, when I comment out the reset line, the uploading works.
https://github.com/rogerclarkmelbourne/Arduino_STM32/blob/master/tools/macosx/maple_upload#L34
Then the upload was successful.
Currently, I am commenting it out to make the stm32duino-bootloader work. I am not sure if this line of code is useful in other scenarios, so I am opening an issue to request your team to handle it. Thank you.
The text was updated successfully, but these errors were encountered: