STM32G0: USART flash and Serial Monitor via the same USART Interface or "How to use pin remap" #1648
olikraus
started this conversation in
Show and tell
Replies: 2 comments 2 replies
-
https://github.com/stm32duino/wiki/wiki/API#hardwareserial |
Beta Was this translation helpful? Give feedback.
1 reply
-
So title should be: how to use remap pins of the STM32G0 😉 |
Beta Was this translation helpful? Give feedback.
1 reply
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
I am very much impressed by STM32duino.
Just like a normal AVR UNO Board I can flash and communicate with the board via serial interface. Only a small little trick is required (see below). I didn't found that trick in the Wiki for this project, so this is why I created this discussion.
USB-USART converter is connected to PA9 (TX) and PA10 (RX).
Flashing works as expected (issue #1637 needs to be considered). But how does the serial monitor work? I figured out, that we need to assign and remap the pins with setRx and setTx command.
The important trick is this: Pin names need an appended "_R" because those pins need to be remapped first.
Note that package pin 7 (PA_13) is mapped to Arduino digital pin 6.
Beta Was this translation helpful? Give feedback.
All reactions