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
STM32CubeProgrammer allows the set DTR and RTS values when uploading with serial method.
This seems impossible to do into Arduino framework stm32duino.
There isn't any option parameter in any menu to set DTR and RTS neither seems to be possible to do using a custom board.txt file.
Following is an example of a custom board.txt used in testing.
By reading the documentation of STM32CP_CLI, the -c parameter can accept rts and dtr parameter.
board.txt doesn't allow an "extra_options" parameter, so you have to put rts and dtr after {serial.port.file}. Unfortunately this doesn't work properly because the command interpreter splits upload.options parameter getting only the serial port name.
rts and dtr values are putted at the end of the line and skipped because they are not in -c flag parameter.
Using the OPTS, parameters are added at the end of the command, so they cannot be included in the -c flag.
You can review this by looking STM32CubeProgrammer logs in the terminal.
The text was updated successfully, but these errors were encountered:
fpistm
changed the title
issue setting DTR and RTS when using STM32CubeProgrammer (Serial)
Request: setting DTR and RTS when using STM32CubeProgrammer (Serial)
Mar 4, 2024
hi @fpistm !
We have an ESP32 attached to a STM32F411RC. wrote a sketch in Arduino to make
an USB-to-serial bridge and it works properly with STM32CubeProgrammer.
To get it working you need to set to HIGH the DTR checkbox
If I use Arduino IDE 2.3.2 I cannot select DTR=high. Looking into your uploading system, a script is called and it is impossible to pass correctly the DTR parameter.
Let me know if you need to any other information
fpistm
added a commit
to fpistm/Arduino_Core_STM32
that referenced
this issue
Mar 29, 2024
Desktop:
Board:
Description:
STM32CubeProgrammer allows the set DTR and RTS values when uploading with serial method.
This seems impossible to do into Arduino framework stm32duino.
There isn't any option parameter in any menu to set DTR and RTS neither seems to be possible to do using a custom
board.txt
file.Following is an example of a custom
board.txt
used in testing.When you upload from Arduino IDE, the script file
stm32CubeProg.sh
is called, and at line 144 it relies on this command:By reading the documentation of
STM32CP_CLI
, the-c
parameter can acceptrts
anddtr
parameter.board.txt
doesn't allow an "extra_options" parameter, so you have to put rts and dtr after{serial.port.file}
. Unfortunately this doesn't work properly because the command interpreter splitsupload.options
parameter getting only the serial port name.rts and dtr values are putted at the end of the line and skipped because they are not in
-c
flag parameter.Using the
OPTS
, parameters are added at the end of the command, so they cannot be included in the-c
flag.You can review this by looking STM32CubeProgrammer logs in the terminal.
The text was updated successfully, but these errors were encountered: