beckus / qemu_stm32

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

How do we use serial port? #44

Open ceremcem opened 1 year ago

ceremcem commented 1 year ago

I'm running my application with:

qemu-system-arm -M stm32vldiscovery -kernel ./build/modbus_example.elf -gdb tcp::4242

and I can connect the GDB server as expected. However, I couldn't figure out how to add UART2.

beckus commented 1 year ago

Hello @ceremcem, The stm32vldiscovery machine is part of the core QEMU implementation and is not related to the QEMU_STM32 fork (see https://github.com/qemu/qemu/blob/d29201ff34a135cdfc197f4413c1c5047e4f58bb/hw/arm/stm32vldiscovery.c). Unfortunately, I am not familiar with this implementation, and I am not clear if it even has UART implementation. Maybe you could ask the QEMU group for assistance with this?