Brendan Simon (eTRIX)
2018-09-17 11:26:45 UTC
I've been trying to use the following GNU MCU Eclipse QEMU releases to
do unit tests for ARM Cortex binaries.
https://gnu-mcu-eclipse.github.io/qemu/
https://gnu-mcu-eclipse.github.io/qemu/releases/
I compiled the very simple semi-hosting hello world sample in the gcc
arm installation (from ARM download site). It's a basic `printf("Hello
world!");`
It runs ok on the Mac. i.e. displays "Hello world!" on the terminal
that I run qemu from.
However the same command line and exact same binary does not show any
output when run on a Windows box (Win 10). I tried from MSYS2 bash
shell and Windows Command Prompt, and both show no output.
A bit of googling suggests that it displaying console output just
doesn't work on Windows.
Is that really true? Why can't Windows output to stdout? Surely it's
technically possible, and not too difficult? Surely there must be a way
to get stdout working Windows.
What magic do I have to do to get this working?
Thanks, Brendan.
do unit tests for ARM Cortex binaries.
https://gnu-mcu-eclipse.github.io/qemu/
https://gnu-mcu-eclipse.github.io/qemu/releases/
I compiled the very simple semi-hosting hello world sample in the gcc
arm installation (from ARM download site). It's a basic `printf("Hello
world!");`
It runs ok on the Mac. i.e. displays "Hello world!" on the terminal
that I run qemu from.
However the same command line and exact same binary does not show any
output when run on a Windows box (Win 10). I tried from MSYS2 bash
shell and Windows Command Prompt, and both show no output.
A bit of googling suggests that it displaying console output just
doesn't work on Windows.
Is that really true? Why can't Windows output to stdout? Surely it's
technically possible, and not too difficult? Surely there must be a way
to get stdout working Windows.
What magic do I have to do to get this working?
Thanks, Brendan.