This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

printf output via DAP

Hello ARM community!

I'm trying to setup printf (or puts) output via DAP (Debug Access Port).
The target device is cortex-M3.
In MDK-ARM Keil (use ARM Compiler 5) this works great.
In Manage Run-Time Environment I select Compiler -> Event Recorder and I/O -> STDOUT (EVR).

In code I add:

Fullscreen
1
2
#include <stdio.h>
#include "EventRecorder.h"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

In main() I call:

Fullscreen
1
EventRecorderInitialize( EventRecordAll, 1 );
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

EventRecorderConf.h contains: 

Fullscreen
1
2
3
#define EVENT_RECORD_COUNT 64U
#define EVENT_TIMESTAMP_SOURCE 0 //DWT Cycle Counter
#define EVENT_TIMESTAMP_FREQ 1000000
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

In View->Serial Window -> Debug (printf) Viwer I see printf messages from the device.
However, when using the Arm Development Studio IDE (use ARM Compiler 6) I don't see printf output anywhere (I did not find a window in Arm Development Studio similar to Debug (printf) Viwer in Keil).
The code body and the Manage Run-Time Environment settings are the same.
The program in Arm Development Studio works, but I can't see printf anywhere while debugging. In window Arm Development Studio Target console printf is not output.
How to get printf output in Arm Development Studio via DAP (Debug Access Port) like in Keil?

Thanks in advance.

0