Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Error in the bash script " .platformio/packages/tool-stm32duino/stm32flash/serial_upload " #1719

Closed
renejeanmercier opened this issue Apr 5, 2018 · 1 comment

Comments

@renejeanmercier
Copy link

The "/dev/" parameter in the serial_upload file used to upload via the /dev/ttyUSBx port to a USB to serial converter device (module) causes Platformio to repeat /dev/ and to report the two following error messages :

  1. Cannot handle device /dev//dev/ttyUSBx (x being a number (0,1 ...)
  2. Failed to open port /dev//dev/ttyUSBx (x being a number (0, 1, ...)

So please REMOVE /dev/ in the following script :

#!/bin/bash
$(dirname $0)/stm32flash/stm32flash -g 0x8000000 -b 115200 -w "$4" /dev/"$1"

Application : Platformio on Atom.
Operating system used : Debian 9.4 x64bits.

Regards,

R.J.M.

@ivankravets
Copy link
Member

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants