# 32 questions

Tagged
• x
40
views
no
1

## RTT & RTT disable sdk 12/13 nRF52832/nRF52840

Dear all,

Help please, I'm evaluating ble_app_uart (Central/Peripheral) but I don't understand how to disable the echo I have on the RTT USB VCP

When I send data from the UART, I got (PCA10056/10040) the data ... (more)

97
views
no
1

## printf() in Keil over Debug / ITM / UART / RTT, nothing works

I've been trying to for two days. Using nrf52DK, SDK12, no SD, Keil5.

All I want is to get printf() to work over ITM/SW/Debug, I'd even accept RTT if I had to. I can't seem ... (more)

2k
views
4
3

## printf / UART debug does not work properly on nRF51822 s110 ble_app_hts example.

Hi,

Thanks for taking the time looking into issue. We are using Keil uVision 5.14. Our target is a custom board (BMD200 eval Module based on nRF51822) We were able to run uart example with expected outputs to Putty ... (more)

83
views
1
vote
2

## Ideas of why this may happen? printf makes my code work o.O

Hello to all

I have the next code, basically what it does is reading a button state and if it is pressed then the manufacturer data of the BLE package is lets say B, on the contrary when the button ... (more)

64
views
1
vote
1

## Where is scanf defined?

Hi Nordic!

On the radio_test example, the functions scanf and printf are heavily used, however, I haven't found where they are defined. This example is reading the data from the UART port, but there doesnt seem to be any ... (more)

73
views
1
vote
2

## Printf only sends first byte and with an odd problem (52832)

    I am using example->peripheral->uart(KEIL version MDK 5) in SDK11.0 . Because my 52832 board is a new one I made, I changed RX_PIN_NUMBER and TX_PIN_NUMBER to 9 and 8. CTS_PIN and RTS_PIN are not connected, so I ...
(more)

193
views
5
1

## SEGGER RTT printf not printing all the lines.

I want to read whole flash memory using for loop and see how long it takes. What i have noticed is that it does not print all the lines. On the other side i ask myself: Does it read all ... (more)

146
views
2
1

## SDK 12. app_uart_put is working but, printf does not.

Before(SDK11), I enabled uart and used printf function to print out log message to UART. But, in SDK12 I can not see printf message. But, app_uart_put is working.

Where should I modify to enable see printf messages?

744
views
1
vote
1

## Undefined reference to SEGGER_RTT_printf

I am trying to use SEGGER_RTT_printf with SDK12 in eclipse.

I have added the appropriate lines to the makefile and SEGGER_RTT_WriteString works fine.

My Makefile lines:

SRC_FILES += \
$(SDK_ROOT)/external/segger_rtt/RTT_Syscalls_GCC.c \$(SDK_ROOT)/external/segger_rtt/SEGGER_RTT.c \
\$(SDK_ROOT)/external/segger_rtt ...
(more)

141
views
1
vote
no

## bootloader debugging by using app_trace_log()

Hi,

I have some problems with bootloader debugging by using app_trace_log().

My board is pca10028, and I use the SDK 10.0.0 for it. The Keil version is v5.20 and Jlink version is v6.00d.

Since I am ... (more)

99
views
no
1

## scanf does not work

Hello,

I have include stdio.h library file and configure uart . Used printf to print data over uart to terminal. Now I wants same thing reverse get data(scanf) from terminal (via uart). But I am failing to get data ... (more)

1k
views
no
3

## Print data to eclipse console/terminal for nrf52 on OSX

Hi,

I am using eclipse IDE and gdb to debug and flash applications onto nrf52 dk. I wish to be able to print data and messages to the eclipse console. I work on mac OSX. How can i achieve this ... (more)

279
views
no
1

## RTT Viewer adding extra terminals

I'm new to using the RTT Viewer. It was working fine (all morning). I've only been using the SEGGER_RTT_printf(0, "string %d \n",x); call to dump text and data to the viewer. I only use terminal 0 ... (more)

3k
views
15
3

## NRF52 DK RTT printf Problem

Hi,

I recently purchased the NRF52 DK. I'm using the ble_uart_example for the SDK 11. I'm using the softdevice PCA10040.

I noticed the the SDK 11 includes the RTT c and h files there, so I don't ... (more)

218
views
3
1

## printf prints blanks instead of floats

Same question as https://devzone.nordicsemi.com/questi...

What needs to change for a gcc setup in the compile flags. If that helps, some of the flags I have now include:

-mfloat-abi=hard -mfpu=fpv4-sp-d16


1k
views
no
2

## nRF52 and float printf [closed]

Hello,

float in printf return blank. How to activate it ?

Thank you.

429
views
no
1

## Where does printf print to?

I have a PCA10001 setup and I am using SDK v9. I have opened the UART example in CrossStudio.

It compiles/builds and I am debugging with breakpoints.

My question is where does printf 's get displayed? I am not ... (more)

1k
views
no
1

## Step-by-step guide to printf on NRF51

Hi,

I can't seem to get printf working on the ble_app_cts_c example. I can't seem to find a definitive step-by-step guide as to how to get this working. Any help would be much appreciated.

I ... (more)

66
views
1
vote
1

## RTT Control Codes Do Not Work [closed]

This call:

    SEGGER_RTT_printf(0, "%sHello %s%s%s!\n", RTT_CTRL_RESET, RTT_CTRL_BG_BRIGHT_RED, RTT_CTRL_TEXT_BRIGHT_WHITE, "World");


Produces this output on the J-Link RTT Viewer:

    e[0mHello e[4;41me[1;37mWorld!


The control codes are being printed rather than being acted upon.

Any ideas?

267
views
no
1

## On RTT Viewer log value

I would like to log the adc value on the RTT Viewer.

uint16_t adc_result; This is the variable, which I would like to log.

So after the measuring I call:

This will throw an error, because the ... (more)

2k
views
6
1

## Debugging nrf52 with printf

Hello,

I am new to working with nrf52 and was looking for a way to make printf work in a blank project that I have created. I followed the uart example for the peripheral and my main function currently looks ... (more)

333
views
no
1

## Consecutive printf statements

When an interrupt with a printf in it triggers while another printf is still occuring the previous message is cutoff to print the next one.

Is there a way I can wait for the tx buffer to be empty before ... (more)

4k
views
12
2

## J-Link RTT for easy debug prints [closed]

Not really a question, but it took me way to long to find out about J-Link RTT (i.e. j-link Real Time Terminal for easy debug printing so I thought I would mention it for future searchers on the subject ... (more)

813
views
no
3

## Problem with retarget.c

Hi

I'm using PCA10028. it has nrf51422 with softdevice s110. For getting printf in console I'm using 'app_uart.c with FIFO' and 'retarget.c'. When i try to print something I'm getting only the first character in ... (more)

462
views
no
no

## printf with redbearlab nrf51822 board

Hi,

I'm using redbearlab's nrf51822 board. It is a arduino compatible board and hence it is using 0,1 (mapped to 9 and 11 for nrf51822). How do I make printf print to this interface so that I ... (more)

138
views
1
vote
1

## Crossworks UART - app_error_handler [closed]

Hi,

Currently when I run the HRM demo I end up in the app error handler, unfortunately the error codes don't print to my terminal window. I'm using crossworks, and I was hoping somebody would able to explain ... (more)

234
views
3
2

Is there any construction available in the SDK, to achieve printing functions, with an undefined number of parameters ? The classic example :

#ifdef CONFIG_DEBUG
#define DBG_PRINT(...)                  printf(__VA_ARGS__)
#else
#define DBG_PRINT(...)                  {}
#endif


builds sucessfully, but I am unsure how to redirect ... (more)

212
views
2
1

## Printf ( UART ) causing TWI not to work

Hi all,

I had a working TWI connection combined with BLE advertising. When I added uart code for printing to putty this TWI connection was no longer functional.

So I deleted the added UART code and discovered the TWI connection ... (more)

1k
views
10
5

## Debug UART with SDK 7.1

I just switched over from SDK v6 to SDK v7.1 (installed via those Keil Packs). The UART has suddenly stopped working (via Segger USB COM port) and I can no longer see any debug console output. It's just ... (more)

1k
views
3
2

## printf (App trace) not outputting to uart

Hi all,

I am having a bit of a problem with the printf. I could not figure out what could be the problem. From what I search people seem to be getting it working with out any problem.

I am ... (more)

#### Statistics

• Total users: 23170
• Resolved questions: 9878
• Total questions: 23817

## Recent blog posts

• ### Flashing and Debugging nRF51/52 with a cheap blackmagic probe compatible SWD programmer

Posted 2017-07-24 09:32:02 by Mahesh Venkitachalam
• ### Introducing nRF5 SDK for Mesh

Posted 2017-07-20 09:42:44 by Pär H

Posted 2017-07-19 06:53:42 by Mohammad Afaneh
• ### Unique Thread/Bluetooth multiprotocol solution with nRF5 SDK for Thread and nRF52840 SoC by Nordic

Posted 2017-07-14 10:31:56 by Krzysztof Loska
• ### nRF Connect macros (currently Android only)

Posted 2017-07-14 13:29:14 by Aleksander Nowakowski

## Recent questions

• ### Difficulty getting s132 SoftDevice working with UART example (uVision)

Posted 2017-07-26 04:24:31 by Drewster