My goal is to be able to debug a baremetal program running on a Qemu-simulated Zynq A9 processor.
`qemu-system-arm -M xilinx-zynq-a9 -cpu cortex-a9 -nographic -kernel /home/bjames/coast/tests/radTest2019/pynq/standalone_hello/helloworld.build/helloworld.elf -m 512M -serial mon:stdio -s -S`
to host the GDB server, and
`arm-none-eabi-gdb helloworld.elf`
then
`target remote :1234`
to connect to the server.
Following the execution with GDB shows that the code does execute, but I do not see any messages printed on the terminal. I also tried adding the flag `-semihosting`, but that did not seem to make any difference.
I verified that the device tree has UART peripherals using the `info mtree` command:
00000000e0000000-00000000e0000fff (prio 0, RW): uart
00000000e0001000-00000000e0001fff (prio 0, RW): uart
My conclusion is that I must not be calling/setting up Qemu correctly, but I'm not sure what else to try. Any suggestions for how to get the output to the terminal? Or to another TCP connection would be fine too.