RSS
Sort by » date activity ▼ answers views votes

34 questions

Tagged
  • x
63
views
2
votes
2
answers
Last activity 2017-09-13 09:56:41 +0200 by thst

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 ?

95
views
no
votes
1
answer
Last activity 2017-09-05 12:22:33 +0200 by Petter Myhre flag of Norway

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
votes
4
answers
Last activity 2017-09-04 20:09:34 +0200 by flodis

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)

107
views
no
votes
2
answers
Last activity 2017-07-27 12:20:08 +0200 by ble999

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)

161
views
no
votes
1
answer
Last activity 2017-06-23 02:12:34 +0200 by rct42 flag of New Zealand

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
votes
3
answers
Last activity 2017-06-17 00:49:16 +0200 by Nelson Rodriguez

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)

87
views
1
vote
2
answers
Last activity 2017-05-26 17:44:08 +0200 by endnode

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)

81
views
1
vote
1
answer
Last activity 2017-04-26 13:16:51 +0200 by Jørgen Holmefjord flag of Norway

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)

86
views
1
vote
2
answers
Last activity 2017-02-17 05:54:28 +0200 by Edward

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)

259
views
5
votes
1
answer
Last activity 2017-02-13 15:32:17 +0200 by SEGGER - Johannes

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)

172
views
2
votes
1
answer
Last activity 2016-12-19 12:24:30 +0200 by Jake

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?

879
views
1
vote
1
answer
Last activity 2016-10-14 11:18:27 +0200 by Jørgen Holmefjord flag of Norway

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)

155
views
1
vote
no
answers
Last activity 2016-08-04 07:08:48 +0200 by Amy

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)

113
views
no
votes
1
answer
Last activity 2016-07-21 11:15:23 +0200 by Øyvind Karlsen flag of Norway

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
votes
3
answers
Last activity 2016-05-27 19:23:55 +0200 by Christopher

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)

305
views
no
votes
1
answer
Last activity 2016-05-03 05:29:08 +0200 by Tien

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
16
votes
3
answers
Last activity 2016-03-02 16:09:16 +0200 by Raphael flag of Germany

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)

269
views
3
votes
1
answer
Last activity 2016-02-02 02:19:09 +0200 by matthieu

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
votes
2
answers
Last activity 2016-01-18 11:18:18 +0200 by Aryan flag of Norway

nRF52 and float printf [closed]

Hello,

float in printf return blank. How to activate it ?

Thank you.

469
views
no
votes
1
answer
Last activity 2015-11-24 07:48:44 +0200 by Einar Thorsrud flag of Norway

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
votes
1
answer
Last activity 2015-11-11 17:13:36 +0200 by nordic_fan2015

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.

Some more info:

I ... (more)

68
views
1
vote
1
answer
Last activity 2015-11-04 18:37:21 +0200 by rvaessen

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?

279
views
no
votes
1
answer
Last activity 2015-10-28 09:37:28 +0200 by Inspectron flag of Switzerland

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:

SEGGER_RTT_WriteString(0, adc_value);

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

3k
views
6
votes
1
answer
Last activity 2015-10-27 00:36:02 +0200 by Bill

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)

341
views
no
votes
1
answer
Last activity 2015-08-07 14:43:41 +0200 by Øyvind Karlsen flag of Norway

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
12
votes
2
answers
Last activity 2015-07-09 09:42:22 +0200 by Stian flag of Norway

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)

853
views
no
votes
3
answers
Last activity 2015-06-02 14:38:52 +0200 by Nguyen Hoan Hoang flag of Canada

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)

464
views
no
votes
no
answers
Last activity 2015-05-22 20:02:37 +0200 by RTR

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)

144
views
1
vote
1
answer
Last activity 2015-05-18 00:26:39 +0200 by Nkrause

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)

238
views
3
votes
2
answers
Last activity 2015-05-13 04:06:59 +0200 by Bill

Variadic functions

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)

Statistics

  • Total users: 24459
  • Latest user: Luann Byrum
  • Resolved questions: 10456
  • Unanswered questions: 3313
  • Total questions: 25471

User menu

    or sign up

Recent questions