beckus / qemu_stm32

QEMU with an STM32 microcontroller implementation
http://beckus.github.io/qemu_stm32/
Other
524 stars 144 forks source link

UART problem with stm branch #15

Closed louisom closed 5 years ago

louisom commented 7 years ago

Hi beckus, I just clone qemu_stm32 stm32 branch and, after make it and make uart_echo_QEMURUN, I found that serial0 didn't answer my input anyway.

But, after downloading v0.13, and redo again, uart_echo_QEMURUN works.

I'm wondering why stm32 branch didn't work, can you give me some clue?

thanks!

p.s. using: gcc6.1, archlinux-x64

T0jan commented 7 years ago

i can confirm this issue. a fast workaround would be nice!

edit: the error can be found in the stm32_p103.c. There seems to be an error with the multiple UART ports, if you uncomment the other two UART connections, it runs as in v0.13.

I will look further into it and will comment here, if I can set up multiple UART ports correctly.

oska874 commented 6 years ago

You should look at /dev/pts/ twice: first look before running make,second look after make, then you will find that there have add a file,then you can use minicom to read from it:

sudo minicom -D /dev/pts/5

ps: 5 is the new file in /dev/pts.

beckus commented 5 years ago

I apologize for the very long delay in responding. The problem should be fixed now in commit 415f9ab43431024b9e44a32c2aa8aed9afbc1cb6 .