-
Notifications
You must be signed in to change notification settings - Fork 977
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
Request: setting DTR and RTS when using STM32CubeProgrammer (Serial) #2292
Comments
Hello @gbr1 |
hi @fpistm ! If I use Let me know if you need to any other information |
Fixes stm32duino#2292 This requires STM32Tools versions higher than 2.2.1. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Fixes stm32duino#2292 This requires STM32Tools versions higher than 2.2.1. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Fixes stm32duino#2292 This requires STM32Tools versions higher than 2.2.1. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Fixes stm32duino#2292 This requires STM32Tools versions higher than 2.2.1. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Fixes stm32duino#2292 This requires STM32Tools versions higher than 2.2.1. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
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: