RSS
Sort by » date activity ▼ answers views votes

48 questions

Tagged
  • x
75
views
no
votes
no
answers
Last activity 2017-09-12 23:51:46 +0200 by ishgum

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)

79
views
no
votes
1
answer
Last activity 2017-08-30 09:40:28 +0200 by Jakub Rzeszutko

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)

65
views
no
votes
1
answer
Last activity 2017-07-27 09:40:01 +0200 by Jørgen Holmefjord flag of Norway

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

62
views
1
vote
1
answer
Last activity 2017-07-06 13:08:04 +0200 by Dimitar

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)

185
views
no
votes
2
answers
Last activity 2017-06-20 13:08:55 +0200 by Chris

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)

63
views
2
votes
2
answers
Last activity 2017-06-14 13:15:41 +0200 by Torbjørn Øvrebekk

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

81
views
2
votes
1
answer
Last activity 2017-06-08 12:50:38 +0200 by Aryan flag of Norway

Some SDK 13.0.0 C++ fixes

Hi,

I`ve 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)

85
views
1
vote
1
answer
Last activity 2017-06-07 11:12:46 +0200 by Pepijn

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)

69
views
no
votes
1
answer
Last activity 2017-06-07 09:04:19 +0200 by Radosław Koppel

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

235
views
2
votes
1
answer
Last activity 2017-04-26 15:17:47 +0200 by Simen August Tinderholt

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)

104
views
1
vote
no
answers
Last activity 2017-04-25 10:32:24 +0200 by schef

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)

272
views
no
votes
1
answer
Last activity 2017-04-20 12:59:43 +0200 by schef

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)

157
views
1
vote
1
answer
Last activity 2017-03-20 18:02:03 +0200 by f.salvatore

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)

58
views
1
vote
1
answer
Last activity 2017-02-28 11:41:54 +0200 by Tarik

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)

237
views
1
vote
2
answers
Last activity 2017-02-09 09:11:00 +0200 by Torbjørn Øvrebekk

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.

246
views
no
votes
2
answers
Last activity 2017-01-15 14:36:06 +0200 by angel

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)

121
views
1
vote
1
answer
Last activity 2016-10-03 13:00:21 +0200 by Aryan flag of Norway

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)

739
views
2
votes
3
answers
Last activity 2016-09-17 16:11:47 +0200 by dingari

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)

131
views
1
vote
no
answers
Last activity 2016-09-03 19:25:34 +0200 by Anne van Rossum flag of Netherlands

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)

271
views
2
votes
2
answers
Last activity 2016-08-03 10:14:09 +0200 by All4here

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)

133
views
1
vote
1
answer
Last activity 2016-06-17 09:43:14 +0200 by Stefan Birnir Sverrisson flag of Iceland

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)

695
views
1
vote
no
answers
Last activity 2016-05-26 03:56:17 +0200 by Tony

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
votes
4
answers
Last activity 2016-05-19 11:47:04 +0200 by resolutedreamer

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)

494
views
no
votes
no
answers
Last activity 2016-04-18 14:14:34 +0200 by mcruz0218

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

53
views
no
votes
no
answers
Last activity 2016-04-16 18:00:53 +0200 by Muhammad Ahmad Shah

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)

307
views
2
votes
no
answers
Last activity 2016-04-13 06:34:57 +0200 by Shay Ohayon

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
votes
1
answer
Last activity 2016-03-21 19:37:00 +0200 by Christopher

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)

903
views
4
votes
2
answers
Last activity 2016-03-21 19:34:18 +0200 by Christopher

Please can you add extern "C" as appropriate to your header files?

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
answer
Last activity 2016-03-20 00:18:19 +0200 by RK flag of Singapore

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)

91
views
no
votes
no
answers
Last activity 2016-03-15 00:28:17 +0200 by Brook Gebremedhin

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)

Statistics

  • Total users: 24465
  • Latest user: Odette Pemulwuy
  • Resolved questions: 10456
  • Unanswered questions: 3313
  • Total questions: 25472

User menu

    or sign up

Recent questions