# 49 questions

Tagged
• x
43
views
1
vote
1

## Master Emulator exception when calling RequestData causes

Sometimes when the method RequestData is called after receiving a notify on the characteristic, the Master Emulator seems to hang for a set amount of time before throwing the exception listed below. I do not know what is causing this ... (more)

151
views
no
1

## Using C++ standard libraries

I am using C++ to program the nRF52 DK and I am trying to use the standard vector library.

When I try and compile it I get the linker error: \${GCC_PATH}/arm-none-eabi/include/c++/6.3.1/ext/new_allocator.h ... (more)

317
views
2
2

## Error when using c++ with TWI

I am trying to use gcc to compile a c++ code for nRF52. I am using the TWI library and am getting the error below. Can anyone help me rewriting this macro so that it compiles normally ?

Compiling file: main ...
(more)

112
views
no
1

## C++ compilation error using CLI with SDK 14: error: expected declaration before '}' token

Hi, i just renamed main.c to main.cpp.

In file included from ../../../main.cpp:57:0:
../../../../../../components/libraries/experimental_cli/nrf_cli.h:597:1: error: expected declaration before '}' token
}
^


What should be the right way to fix that?

If i ... (more)

70
views
no
1

## c++ Instead of nRF Connect

Hi,

I can send and receive commands from nRF51 Dongle to nRF51822 via using nRF Connect UART over BLE Service.

My question is : Is there another way to reach nRF51 Dongle for connecting my nRF51822 via C++?

79
views
1
vote
1

## Adding SPL option to Nordic Thingy:52

How do you think - is there resources enough to add SPL (sound pressure level) measurement functionality into Nordic Thingy:52? Is microphone appropriate or may be external one is needed?

From this DIY meter http://davidegironi.blogspot.se/2014/...

steps ... (more)

214
views
no
2

## iOS DFU Writing to characteristic failed

I'm using the iOS latest iOSDFULibrary pods to import to my app. However, after I using DFUServiceIniciator service the log just show as attach.DFUQuestionLog.m

The only different with the Nordic iOS toolbox is the following line : 10 ... (more)

72
views
2
2

## Dongle Firmware for Desktop App Serial Over BLE

Dear Nordic Team,

We have a customer that would like us to extend an C# desktop application to use serial over BLE. What is the best dongle firmware and Windows driver combination to accomplish this?

Thanks, Darren

87
views
2
1

## Some SDK 13.0.0 C++ fixes

Hi,

Ive made fixes in SDK 13.0.0 files described below:

nrf_section.h: to supress gcc warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

nrf_strerror.h: added C++ support (extern ... (more)

99
views
1
vote
1

## nrf_block_dev_sdc.h c++ compability

Hi,

A project I'm working on can be seen as a collector of data from many different sources. To keep I an overview I've decided to use C++ objects rather than C (in other words: a C++ project ... (more)

72
views
no
1

## nrf_strerror.h without extern "C" linkage specification

Hi,

Please add extern "C" to nrf_strerror.h header in next coming SDK release to make it more usable with c++.

Regards, Anatol

273
views
2
1

## How to use nrfjprog.dll

We are trying to use nrfjprog.dll in a c# program to help us with manufacturing and quality assurance. We are able to load and call the functions from c# and all the functions work one by one, but if ... (more)

182
views
1
vote
no

## undefined reference to operator new(unsigned int)' [closed]

If anyone will ever have this error: When using c++ and singleton the use of operator new is not possible.

I found the solution in this post: http://forum.arduino.cc/index.php?top...

#include <stdlib.h> // for malloc and ...
(more)

399
views
no
1

## Use C++ with Nordic SDK (nRF52 series)

Hi, i wrote a lot of firmwares for nRF51x22 using C language and they works fine. Now we passed to nRF52 series and we want to use C++ (preferibly C++11) that is more readable, ordered etc... but i got ... (more)

218
views
1
vote
1

## nRF UART driver initialization

Hello, i'm trying to use nRF UART driver (nrf_drv_uart) to implement a high level UART manager. I followed indications on SDK documentation but it doesn't work and i think that is a problem of initialization.

Configuration: nRF52832 - SDK ... (more)

77
views
1
vote
1

## Exported project from Mbed compiler to eclipse gcc arm has errors

Hi, After following all instructions on: http://gnuarmeclipse.github.io/install/ And after installing all Nordic Semi dependencies on eclipse.

I import on eclipse the UART_Loopback project, but whenever I try to compile I get errors like:

1) "Symbol 'NULL ... (more)

270
views
1
vote
2

## what C libraries are used with your nrf24l01 and an avr processor?

I see a number of libraries described on line but can't tell which is most appropriate for the avr processors.

310
views
no
2

## Including C++ library in C project?

Hi Nordic,

I want to include this library (https://github.com/jrowberg/i2cdevlib...) in my project, which is an evolution from ant_ broadcast example, in C. However, and after reading several related posts, I am not able to compile my ... (more)

122
views
1
vote
1

## Compiling SDK12 code with C++ failed

Hi

I've tried to update some of our environment to the SDK12 files. When I tried to compile some of the files a weird bracket error showed up.

At the end i could find the issue in a deeply ... (more)

842
views
2
3

## Compiling C and C++ code

We've currently only been developing our application in C. We now have a couple of C++ libraries we'd like to use and are having trouble compiling the mixture of C and C++ code.

This is the Makefile: http ... (more)

146
views
1
vote
no

## Is it possible to support C++ compatibility in the API?

There are certain design decisions that break C++, or at least the separation of concern between allocation of entities and the use of entities.

For example:

typedef app_timer_t *   app_timer_id_t
Timer ID type. Never declare a variable of this type, but ...
(more)

143
views
1
vote
1

## Problem: Create IOS app for nRF51822 beacon kit

Hello, I am apple developer and using Swift. Actually I'm just intern student.

# 1

My boss assign some task to me to CREATE IOS App to scan nRF51822 Bluetooth Smart Beacon Kit (https://www.nordicsemi.com/eng/Produc...). I ... (more)

756
views
1
vote
no

## C++ compilers for nRF52

Hi, I wonder if anyone knows any free C++ compilers for nRF52. I tried the mbed but it is not fully supported for nRF52.

The regular GNU GCC: arm-none-eabi-gcc works perfectly for nRF52, but I am unable to make the ... (more)

1k
views
3
4

## Windows 8.1 C# Example

Hi all,

Is there any example how can I communicate with 51822 device with SD110 on Windows 8.1 desktop? I successfully paired the device but I have no idea where can I start. I use VS 2013 C# for ... (more)

499
views
no
no

## Fitness Equipment Control protocol Library and example

Anyone can provide us an example of FE-C library and example. Also suggestion for modules that can be used in this type of application

55
views
no
no

## How to see which part of the code/variable is using more Memory ?

Hi.

I am using the NRF52 Development board, on Keil uVision, to implement a C program that uses Dynamic Structs. The Structs re-size themselves ( by increasing their capacity by 2 time ) whenever more elements need to be appended to them ... (more)

318
views
2
no

## FOTA (OTA) for Xamarin (C#)

Hi,

I've started developing a mobile app with Xamarin. Xamarin is a really nice platform that you can use to develop Native applications for iOS and Android using C# (reducing development time as source can be shared). The app ... (more)

1k
views
7
1

## Use the nrf SDK in C++

Hello,

I program the nrf51 in C++ using GCC and Eclipse as IDE (this question is not related to the C++ toolchain).

I was wondering if it is possible to add the extern wrapper #ifdef __cplusplus in all header files ... (more)

1k
views
4
2

Hi,

Many of us use C++ rather than C (as it is superior in every way). When including many of the Nordic SDK header files it is necessary to wrap them in

extern "C" {
}


to get the proper linkage. Otherwise ... (more)

1k
views
1
vote
1

## Problem with Designated Initializers in SDK when using C++

Hi,

I want to program the nrf51822 with C++ and from what I've found here it should be possible.

But nrf_drv_gpiote.h contains designated initializers wich aren't supported by C++. I'm including all SDK headers inside an ... (more)

#### Statistics

• Total users: 25345
• Latest user: Elisabeth Richard
• Resolved questions: 10981
• Total questions: 27097

## Recent blog posts

• ### 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
• ### How to build continuous integration and delivery process for embedded SW development

Posted 2017-10-03 11:01:29 by Yaniv Nis

## Recent questions

• ### what status is NRF_ERROR_INVALID_STATE from sd_ble_gattc_primary_services_discover?

Posted 2017-11-20 10:38:28 by Haruki Kawakami
• ### esb handler crash

Posted 2017-11-20 10:38:09 by Motti Ng
• ### nRF51822 - S130 : how do I check timer2 is running or stop

Posted 2017-11-20 10:18:36 by CFF.K
• ### HardFault_Handler when I use WDT

Posted 2017-11-20 10:00:57 by abosch
• ### Communication between pca10040 and another device using UART

Posted 2017-11-20 09:55:59 by lirank