Using virtual-serial port with socat + stm32flash #27
Closed
RaulTrombin
started this conversation in
General
Replies: 1 comment
-
by default the stm32link uses serial mode By changing the Esphome UART parity to uart:
id: uart_bus
tx_pin: GPIO1
rx_pin: GPIO3
baud_rate: 115200
rx_buffer_size: 4096
parity: EVEN OR you can just run sudo stm32flash -b 115200 -m 8n1 /dev/ttys005 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm using the espHome to communicate with a device using the serial port, specially a STM32 device.
I'm able to listen the RX/TX with screen:
socat -v -d -d pty,raw,echo=0 tcp:192.168.2.105:1234
then
screen /dev/ttys005 115200
And it seems to work very nice here, I`m able read all the msgs, except sometimes it seems to lag a bit.
Now I'm tryng to use it with stm32flash:

sudo stm32flash -b 115200 /dev/ttys005
socat debug:
https://pastebin.com/baxDTWL2
Could someone give a tip if I can improve and make it work for this purpose?
YAML settings:
Beta Was this translation helpful? Give feedback.
All reactions