[En-Nut-Discussion] ARM Semihosting console

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Wed Jul 24 13:38:50 CEST 2013


I have added a console using ARM semihosting. Tested with
L1Discovery/Stlink-V2 debugger and F4Discovery/BMP Debugger.

By using
#ifndef DEV_UART
#include <dev/semihosting.h>
#define DEV_UART devSemihosting
#define DEV_UART_NAME  devSemihosting.dev_name

in your board file, console IO is redirected to the debugger. The programm
will _not_ run with the debugger detached. It is usefull for board/device
bring up as no real uart is needed with semihosting.

Can people test with other CM3 devices? It should work on all
ARMv6-M/ARMv7-M, so maybe on AT91SAM7 too.


Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

More information about the En-Nut-Discussion mailing list