35 questions

Tagged
• x
127
views
no
no

SDK 14 printf() Issue

Building for a PCA10040 dev board (nrf52832) in SDK 14.0.0 with the S132SD v5.0.0

I'm an encountering an issue where calls to printf() are only displaying a single byte in the terminal emulator.

I am ... (more)

108
views
2
2

mesh example debug print

I'm using "nrf5_SDK_for_Mesh_v0.9.2-Alpha".

How can I debug print out to UART print at printf, not RTT ?

200
views
no
1

SEGGER RTT printf() problem

Hi, I have problem with using printf() in SEGGER RTT.

I've read tutorial and others about SEGGER RTT printf() problem, but they didn't work.

When I use printf() in RTT and compile I got error like this:

[._build ... (more)

1k
views
5
4

Wireless Printf using BLE UART

We are developing a custom ble service and profile however having printf makes our lives that much easier so we are trying to incorporate it purely for testing purposes.

The idea is to send debug messages to an Android device ... (more)

154
views
no
2

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)

281
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)

3k
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)

89
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)

95
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)

99
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)

325
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)

199
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?

1k
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)

169
views
1
vote
no

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)

124
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)

343
views
no
1

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
17
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)

303
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.

520
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)

2k
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)

70
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?

290
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)

3k
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)

348
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)

5k
views
18
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)

915
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)

471
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)

162
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)

Statistics

• Total users: 25365
• Latest user: Fermin Cooke
• Resolved questions: 11015
• Total questions: 27162

Recent blog posts

• Job Offer: nRF / Embedded Developer in Stuttgart, Germany

Posted 2017-11-20 11:46:20 by Marius Heil
• Estudando Projetos do SDK 10 para nRF5x com Eclipse Oxygen (Portuguese)

Posted 2017-11-12 00:08:55 by Carlos Delfino
• Configurando o Eclipse Oxygen para Desenvolvimento com nRF5x (Portuguese)

Posted 2017-11-10 21:15:47 by Carlos Delfino
• How to use Git for embedded software development

Posted 2017-11-06 13:21:55 by Yaniv Nis
• Thingy:52 based Weather Station

Posted 2017-10-29 22:31:15 by Krzysztof Szewczyk

Recent questions

• nRF51-Dongle can never display in ANTware II

Posted 2017-11-22 04:19:43 by iBaBei
• HID Keyboard + Consumer control settings no working

Posted 2017-11-22 04:01:25 by Hung Alan
• APP_UART_COMMUNICATION_ERROR

Posted 2017-11-22 03:10:28 by muyang
• pm_conn_sec_status_get bug?

Posted 2017-11-22 02:48:46 by Elias Simon
• multiple connect ,discover service multiple ,why?

Posted 2017-11-22 02:07:13 by strengthstrong