aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorPaul Fertser2013-04-14 21:58:49 +0400
committerGareth McMullin2013-05-18 15:33:58 +1200
commitaca421d0bbd021c4b0e320195692d9760d9ecdcd (patch)
treeb16f218321c2fd189ab4b7ebdffb54502ff3ca44 /README
parentfeaf62667388ed0bb5e4d87ad4be58442a53e7ce (diff)
Basic semihosting support
Implement bare minimum necessary to support console IO. This works with standard newlib builds and is based on the reference documentation: http://infocenter.arm.com/help/topic/com.arm.doc.dui0471c/CHDJHHDI.html Tested using gcc-arm-none-eabi-4_7-2013q1-20130313 for both stm32f1-based BMP and stm32f0 target. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'README')
-rw-r--r--README12
1 files changed, 12 insertions, 0 deletions
diff --git a/README b/README
index 52835f9..b47e22b 100644
--- a/README
+++ b/README
@@ -45,6 +45,18 @@ your '.gdbinit'. That will allow you to access addresses outside of
the memory map. It will treat anything outside of the memory map as
RAM.
+Semihosting support
+===================
+Basic armv6m/armv7m semihosting is supported, i.e. you can build your
+application in a special way to use host's stdin and stdout right
+inside gdb simply by calling printf(), scanf() and other input-output
+functions. To make use of it, add --specs=rdimon.specs and -lrdimon to
+the linker flags for your firmware.
+
+All writes are treated as writes to the stdout, all reads are done
+from stdin; SYS_ISTTY always returns true, SYS_ERRNO -- EINTR;
+SYS_OPEN and SYS_FLEN return dummy non-zero values.
+
Project layout
==============
driver/ - Windows drivers for the Black Magic probe hardware.