# 41 questions

Tagged
• x
51
views
no
no

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

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

52
views
no
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)

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

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

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

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

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

132
views
no
1

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

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

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

105
views
2
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)

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

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

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

481
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

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

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

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

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

63
views
no
no

## how to Use C++ in the NORDIC SDK [closed]

Inorder to create a c++ wrapper in nordic SDK , i have to change the Makefile so that it can compile both C++ and C. in the example the makefile already has gcc added but c++ is files are not compiling ... (more)

1k
views
no
1

## nRF8001 .NET Micro Framework port [closed]

A first version for support of Adafruit's nRF8001 breakout can be found on CodePlex. Questions/remarks please mail me at bob-at-codeconsult-dot-nl.

663
views
no
1

## BLE - C#/.NET

I would like to "talk" to nRF52 via BLE using an application developed in c#/.NET in Windows 8.1. Any hint?

I checked the BluetoothHeartRate example on MSDN, but I would like some more... informative.

1) How to search ... (more)

646
views
no
2

## Setup Eclipse/GCC for C++ and mbed project debugging

Hi All,

I would like to setup my Eclipse and GCC for compiling and debugging C++ & mbed projects on nRF51 DK. The setup procedure explained in tutorial Development with GCC and Eclipse supports only Nordic SDK examples.

Is there a ... (more)

496
views
3
2

## C advice with app_twi peripheral configuration

I've been trying to wrap my head around the app_twi library by looking at the examples, and I'm slowly getting there. However, for my application I need to send multiple default configuration commands to my accelerometer.

So I ... (more)

202
views
2
1

## Master Emulator API usage for OOB key

Hi Nordic support, I want to use the OOB key pairing and I found the below discussion: Set OOB key on Master Control Panel? This means I need to implement the application by ourselves. I check the path under "Master ... (more)

805
views
6
4

## Please fix the enum in ble_gatts.h

When compiling C++ code that includes ble_gatts.h you get errors like the following:

C:/....../nrf51822/Include/s110/nrf_svc.h:21:6: error: impossible constraint in 'asm' ); \ ^

With C code it is fine. The error is that an enum is ... (more)

1k
views
3
1

## Keil, Mbed, Gcc Or IAR BLE

Hy world,

I'm new on nordic and i would like to understand what tool is best for develop application for nrf51dk.

I've have tried to use keil but is very difficult for me! Are there a little starter ... (more)

#### Statistics

• Total users: 20387
• Latest user: Debdasora
• Resolved questions: 9454
• Total questions: 22463

## Recent blog posts

• ### The complete tutorial for developing and debugging nRF52 applications on a Mac

Posted 2017-05-11 04:13:06 by Mohammad Afaneh
• ### Bluetooth 5 2Mbps Demo with nRF52 Series and Samsung Galaxy S8

Posted 2017-05-09 14:20:22 by John Leonard
• ### Setting up Segger on a mac or pc and debug - step by step for humans

Posted 2017-05-05 14:03:35 by Lola

Posted 2017-04-11 11:49:17 by Radosław Koppel
• ### Taking a deeper dive into Bluetooth 5

Posted 2017-04-07 14:53:51 by John Leonard

## Recent questions

• ### BLE GATT_INTERNAL_ERROR 129

Posted 2017-05-30 14:53:16 by Mrunali
• ### Data storing in flash based on timer.

Posted 2017-05-30 13:54:41 by Prashant Singh
• ### Testing coded PHY with UART?

Posted 2017-05-30 13:45:39 by slowhand