USBSerial and Serial Terminal
If the Terminal is open, the IDE clears it, builds and uploads, then re-opens the Serial Terminal, the sketch runs.
If the Terminal was closed during the Upload, clicking on the Terminal icon in the IDE will send a DTR pulse.
The running program is reset by the DTR pulse. When it restarts, it has a Terminal for Serial comms.
The stm32duino bootloader will clear an open Terminal and upload just fine. At the end of the DFU upload, it attempts to re-open the Serial. This fails because the USBSerial does not start until the program has started.
The stm32duino bootloader uploads fine if there is no open Terminal. The program runs. You can click the Terminal icon. You lose the first bytes of Serial. The Terminal icon does not reset the program.
How can I get the Terminal to reset the program? i.e. DTR pulse
Or is it possible to adjust the timing for re-opening the COM port?
I have the same result with BluePill and IteadMaple (MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog rev3) boards.
I would like to have behaviour consistent with the regular Uno, Mega, …
i.e. capture ALL Serial output. Reset program with DTR from a Terminal program.
David.
