RSS
Sort by » date activity ▼ answers views votes

32 questions

Tagged
  • x
40
views
no
votes
1
answer
Last activity 2017-07-17 16:11:58 +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)

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

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

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

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

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

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

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

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

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

279
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
15
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)

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

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

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

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

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

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

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

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

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

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

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

212
views
2
votes
1
answer
Last activity 2015-04-22 15:24:54 +0200 by Nguyen Hoan Hoang flag of Canada

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
votes
5
answers
Last activity 2014-12-06 02:51:41 +0200 by cpignol

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
votes
2
answers
Last activity 2014-11-17 10:42:41 +0200 by Asbjørn flag of Norway

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
  • Latest user: Adriene Benson
  • Resolved questions: 9878
  • Unanswered questions: 2949
  • Total questions: 23817