# 192 questions

Tagged
• x
5
views
no
no

## Device crashes when debug flags are turned on

I am writing firmware for a BLE Nano device using the Nordic SDK 8.1. I was having problems where my device would suddenly stop printing to UART and stop trying to bond with ble peripherals also. It seems like ... (more)

60
views
1
vote
1

## NRF52 nrfjprog: ERROR: There is no debugger connected to the PC

------------ EDIT Sep-21-2017 ----------------

I was able to work around the issue by trying on a Linux distribution. Here is a written guide to the package install and board connect process on Ubuntu 16.04: Warning! the guide is written for a ... (more)

31
views
no
1

## NRF_BREAKPOINT causes hard fault with ARM-GCC

I'm building a project for the nRF52832 using the NRF5-SDK version 14.0.0. I'm compiling using GCC 6.3.1 (arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors 6-2017-q2-update) 6.3.1 20170620 (release) [ARM/embedded-6-branch revision 249437 ... (more)

68
views
no
1

## Debugging problem using NRF_LOG

Hi,

I'm using NRF_LOG for debugging. SDK version is 12.3.0.

I want print error code, File name, Line number.

Error code is printed fine but, file name and line number are not.

Printed like this:

Code is ... (more)

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

191
views
1
vote
1

## (UART) Log Output Through Debug Out

Hi I have an external board featuring an nRF52832 connected to the nRF52DK via the Debug Out port on the DK and a 6 pin connector on the external board. I can program the external MCU just fine, but I ... (more)

113
views
1
vote
2

## Exit from debug mode

Hello,

I did some power measurement on the nrf52 DK with the Nordic profiler kit and the result was way more than what we could expect from a nrf52 (about 1 mA). Even in power off mode, it still needs ... (more)

53
views
1
vote
1

## Programming nrf51-DK with another nrf51-DK

I have two nrf51-DK's (say A and B).

A , nrfStudio doesn't detects it.
(Windows doesn't even shows USB port connection in device manager, so cannot try nrfjprog --recover)

B is working fine.

I was trying to reach ... (more)

50
views
1
vote
no

## NRF52 doesn't work after a few days

I'm getting a weird behaviour on my first NRF52 custom board. It's a BLE with HR, battery and a custom service. After programming I can test it properly with/without debugger and powered either by FTDI + Regulator or ... (more)

42
views
1
vote
1

## Debugging with nrf51 dongle

I'm trying to see debugging info with nrf51 dongle. As far as I can tell I just need to use:

#define NRF_LOG_MODULE_NAME "APP"
#include "nrf_log.h"
#include "nrf_log_ctrl.h"
#define ENABLE_DEBUG_LOG_SUPPORT 1


in setup and then the code:

ret_code_t ...
(more)

166
views
1
vote
1

## Call function from gdb at breakpoint? [closed]

Hi,

Is it possible to call an arbitrary function at a breakpoint in gdb on the nRF52? I know you can with normal gdb, but I haven't been able to make it work with the cross ARM version. Thanks ... (more)

65
views
no
3

## Why can't I debug SR3 v1.1 in MDK-ARM ?

Hi, I am porting my code from SR3 v1.0 to SR3 v1.1 now. I have a problem in debugging SR3 v1.1.

In SR3 v1.0, it's fine in MDK-ARM debug session. I can set break point ... (more)

41
views
1
vote
1

## Debug nrf52DK using linux as host?

Hi There, I am Using Linux as host platform I'm able to successfully compile and download the example to the nrf52dk. But I didn't understand how to debug the example on nrf52dk. I searched on forum but i ... (more)

72
views
1
vote
1

## improved softdevice debugging

I remember reading somewhere an article on how debugging with softdevice was going to be easier, with the debugger doing something along the lines of actually not stopping execution when hitting a breakpoint, but rather executing a loop in the ... (more)

38
views
2
1

Dear Nordic,

I have built a board using nRF51422, and I've just manage to populate it and start it up. I'm using a modified example (peripheral_lbs), and everything seems to work ok (leds and buttons), but the radio ... (more)

4k
views
4
4

## single step buttons disabled on Eclipse

I've setup Eclipse GCC tools for building and debugging as per the nAN-29 app note (and lot of online help) and able to build the code. However, the debugging is working only partially. When the debug is launched, it ... (more)

42
views
no
no

## Is P0.18 and P0.21 necessary to debug the nrf52832 if SWDIO and SWDCLK are connected?

Hello,

We are currently designing the hardware for a production run of our product using the nrf52832 chip and would still like to have debugging capabilities with breakpoints. Are the SWDIO and SWDCLK lines sufficient (along with gnd and vdd ... (more)

107
views
no
no

## nRF52 BLE debugging tutorial (e.g., using error logging macros)

Folks,

Have been using Keil MDK Lite in the past, in a Win VM. Larger code (over 32KB) plus the convenience of running without a VM layer have led me to switch to NetBeans/gcc/gdb directly on my MacBook ... (more)

20
views
1
vote
no

## Cannot Disable MEM_MNGR debug trace SDK 13.0

I have the Memory Manager module enabled in my custom sdk_config. Within the module, I have both of the following defined.

MEM_MANAGER_ENABLE_LOGS 0

ENABLE_DEBUG_LOG_SUPPORT 0

However, when the app runs, I get an unending stream of "Debug" level logs originating ... (more)

71
views
3
2

## NORIC eveloution board without debugger

Hello,

I want to use NORDIC nrf52 to perform some power consumption Analysis. Is there any eveloution board from NORDIC that don,t have debugger connected to it? I want to use an external debugger to configure the board and ... (more)

59
views
2
2

## nRF52832 debugging conections

Hello everyone,

I'm developing a new device using the nRF52832 but I have 2 questions before I send my PCB to manufacture, I hope you can help me out:

1. Is there any programmer for this IC manufactured by Nordic ...
(more)

79
views
no
no

## SPI slave read without debugger

I am using nRF52840 DK as a SPI slave with an external MCU configured as SPI master. The SPI clock frequency is set to 1 MHz. I am using the following pins for SPI:

P0.29 - SPIS_CS_PIN P0.28 - SPIS_MISO_PIN ... (more)

66
views
no
1

## Serial port only works when debugging

Custom app running on a nRF52 devboard. Serial port runs when I use the debugger and continues after I exit the debugger, but does not run from a cold start.

using the Nordic UART FIFO code. NRF_LOG_USES_UART=1 and DEBUG ... (more)

116
views
no
2

## How to active DEBUG feature for SDK13, nRF52840 on IAR?

Hi.

I am using saadc sample cod of SDK13. Changing some parameters based on the analog input, the example is sucking somewhere where I have not been able to find it.

Searching for a solution, I wanted to use DEBUG ... (more)

448
views
1
vote
1

## nRF52840 PDK debugging with 1.8V periphery

Hi,

I have a nRF52840 Preview Development Kit. I studied your manual, but I didn't quite understand if this is possible or not?

• I would like to debug (therefore I need the interface MCU). So far so good.
• My ...
(more)

87
views
no
1

## Can't start/debug program from Eclipse

Hardware: nRF52 DK Example: ble_app_hrs I have a problem with starting program using debugger. I starts debugging session and starts program using resume button, breakpoints disabled. Application stops on address 0x8c8 and won't go ahead. Application works well without ... (more)

87
views
1
vote
1

## Debugging data from nrf51822 [closed]

Hello Everyone,

I am new to BLE world. Currently using MDBT40 which has nrf51822 as core: http://www.raytac.com/download/MDBT40...

I am following this repo:https://github.com/sandeepmistry/arduino-nRF5 in which nrf51822 can be programmed using arduino ... (more)

83
views
no
1

## Need help with RedBearLab BLE Board w/Nordic nRF51822

Hi, I am having some trouble in setting up the RedBearLab BLE board w/ nRF51822 that i recently bought for a project I am currently doing . I am using windows OS, with eclipse mars 2 for C++ developers and followed ... (more)

70
views
1
vote
1

## printing out debug statement

Is there an easier way to print out debugging statement that does not need an installation of a logging package in keil.

I am trying to place print statements within the code to debug the program. For an example, if ... (more)

#### Statistics

• Total users: 24451
• Latest user: Layne Wallis
• Resolved questions: 10451
• Total questions: 25466

## Recent blog posts

• ### 6 Things to Know about Bluetooth Beacons

Posted 2017-09-22 08:27:00 by Rose Martin
• ### Creating a Keil project for a Bluetooth Mesh example

Posted 2017-09-19 12:08:11 by Kristian Skordal
• ### Using millis() like in Arduino.

Posted 2017-09-18 11:58:04 by schef
• ### Flashing nRF5x firmware using any dumb terminal program via standard serial COM port

Posted 2017-09-18 03:53:40 by Nguyen Hoan Hoang
• ### How to Debug the nRF52 Interrupts — Useful Tips

Posted 2017-09-13 15:15:22 by Yaniv Nis

## Recent questions

• ### Device crashes when debug flags are turned on

Posted 2017-09-24 04:09:33 by tyler
• ### nrf52832 of UART problem

Posted 2017-09-24 04:05:27 by lenli
• ### RTT Stability

Posted 2017-09-24 03:28:49 by Yatekii
• ### HardFault with GPIOTE & SD

Posted 2017-09-24 03:18:09 by Yatekii
• ### Adding a service to existing SDK example code

Posted 2017-09-24 02:45:24 by alikob