# 317 questions

Tagged
• x
76
views
1
vote
2

## nRF52832 NRF_ERROR_BUSY from nrf_drv_twi_tx()

i used aplication twi_sensor form nRF5_SDK_12.3.0_d7731ad and i use s132.i conected mpu9060 every time get error on my terminl NRF_ERROR_BUSY.There is exemle of codemain.c and scren from terminal d324ssa42d3434234.png what i do wrong ... (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)

45
views
no
no

## Simple Thingy52 Firmware Change

Hey everyone,

I'm new to the Nordic/Thingy/Embedded world and was hoping I could get some hand holding to achieve a simple change.

I would like to change the Thingy sample project to display as "MyThingy" instead of ... (more)

60
views
4
1

## Cannot compile softdevice files

I am trying to set up a project for the nRF51 by hand and by looking at the example code provided by Nordic.

I am using Softdevice 130 on a nRF51422 and the 12.0.1 SDK.

Right now i ... (more)

39
views
no
1

## NRF5 SDK 14 GCC linking error

Hi,

For my new project, I copied the linker script and Makefile from examples/ble_peripheral/ble_app_uart/pca10040/s132/armgcc to a folder and changed the SDK dir and project dir accordingly.

When I run make, GCC successfully compiles all the ... (more)

67
views
no
no

## Using sections in serialization project

Hi,

We use NRF52832-based BLE module running serialization (SDK 14, softdevice 5.0.0) and STM32F407 MCU running application firmware on a custom board. The project is created in Eclipse and compiled using GCC. Also there is micro SD card ... (more)

76
views
1
vote
1

## Unit tests: how to mock nrf_drv_gpiote.h ? (_WIN32 prevents nrf.h to include my platform bitfield header)

Hello,

I'm using Ceedling, Unity + CMock to implement unit tests but I'm running into issues when it comes to mocking nrf_drv_gpiote.h.

I'm trying to test a file, call it foo.c, which includes nrf_drv_gpiote.h, therefore ... (more)

49
views
2
1

I have a problem using ble_advertising_restart_without_whitelist(). According to the documentation (as I understood) it should start advertising without whitelist even if a whitelist exists (hence it skips BLE_ADV_EVT_WHITELIST_REQUEST). In the next call of ble_advertising_start() advertising should use the whitelist again ... (more)

63
views
no
1

## ble app uart problems

hi i have a problem with ble app uart.i used nRF5_SDK_12.3.0_d7731ad and Eclipse Mars 2. I had build main.c in hex ble_app_uart\pca10040\s132 . And after that a maked mergehex with s132_nrf52_3.0.0_softdevice.hex.i ... (more)

61
views
no
no

## External battery supply issue to DK

Hi,

I'm supplying a DK with an external battery source plugged into J6 (Li-Po) and the nRF power source switch set to VDD. When I flash the chip with one of the Openthread client examples, the DK operates normally ... (more)

38
views
no
no

## Micro-ecc library won't compile

Hi,

I'm trying to get BLE pairing example to work. I downloaded the missing micro-ecc library and I encountered this problem: https://github.com/kmackay/micro-ecc/...

So I've compiled this library with Bash on Ubuntu on Windows and ... (more)

30
views
no
2

## TWI SDA check for NACK

Hello, I want to use at the nRF52832 a temperature sensor TMP108 and an EEPROM via TWI bus which are connected to Pin 5 (SDA) and Pin 6 (SCL). I made a lot of time until understanding that at the ... (more)

30
views
no
no

## linking fails with unrecognized emulation mode

Did somebody ever get the following error message:

/usr/lib/gcc/arm-none-eabi/7.1.0/../../../../arm-none-eabi/bin/ld: unrecognised emulation mode: cpu=cortex-m4 Supported emulations: armelf collect2: error: ld returned 1 exit status


arm-none-eabi-gcc -Xlinker -Map ...
(more)

75
views
no
2

## Update packet info in radio_event_handler

I work with gcc on nordic nrf52 SDK13.0.0. I see the post: https://devzone.nordicsemi.com/questi...

But if I try to change the packet in the radio_event_handler in active state, with ble_advdata_set(), I got a HardFault_Handler() interrupt.

Why?

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)

45
views
1
vote
1

## GCC compile PWM problem

I'm following the tutorial Development with GCC and Eclipse, but have problem when use GCC to compile project that use PWM library.

I found that when compile the code with GNU "make" command, whenever I call app_pwm_disable(), the PWM ... (more)

87
views
no
no

## S140 RAM allocation running ble_app_uart example

Hi All,

I'm busy exploring the ble_peripheral_uart example and ran into a couple of issues I don't fully understand. Upon flashing the S140 SoftDevice and application program to the nRF52840, the following is observed:
(more)

98
views
2
3

## How to get the reference of the SoC library API?

Hello,

We are currently migrating (or trying to...) from IAR Arm Embedded to Eclipse/GCC.

I'm trying to compile our project using gcc and eclipse. I followed this tutorial : https://devzone.nordicsemi.com/tutori...

I managed to build my ... (more)

145
views
1
vote
1

## bootloader_secure_serial resetting device when starting to write application image

He guys,

I'm currently trying to run the secure serial bootloader sample on our hardware which is based on the nrf52832, but the sample code resets the device when starting to write the application image. See Line 55: 0 ... (more)

37
views
1
vote
1

## App_timer causes main loop restart when started

I'm trying to implement a simple RTC timer into my project, and it seems like the app_timer module is the best way to do that, especially when using the Softdevice. I added the following code to my project in ... (more)

125
views
1
vote
3

## GCC generated HEX not working (ble_app_uart)

Hi.

I am on compiling business now. Last days i tried to do GCC compiling and quite go well. But as always on last part i find an error.

My process:

1. Wrote code on keil. Compiled on GCC with MSYS ...
(more)

44
views
no
1

## RTT logging with freeRTOS and nRF5 SDK for Thread

I am trying to test a combination of BLE central role, Thread with CoAP server and FreeRTOS on an nRF52840 using version 0.10.0 of nRF5-SDK-for-Thread.

I don't seem able to get RTT traces from any example based ... (more)

49
views
no
1

## Errorcode 13313 at sd_ble_gatts_hvx()

Hello, I would like to send an int32 value every 500ms and use for this the same procedure as it is shown in the heart-rate-example. The code for sending is:

// Send value if connected and notifying

if ((p_ad->conn_handle != BLE_CONN_HANDLE_INVALID ...
(more)

95
views
1
vote
no

## Notifying characteristic value with 80 bytes each 20 ms gives me a BLE_HCI_CONNECTION_TIMEOUT in nRF-Connect

Hello,

I have a project in witch I want to send the data received from an Arduino by UART, this data has a size of a little bit less than 80 bytes, this data is received each 20 ms (a ... (more)

57
views
2
2

Hi,

I'm trying to add Openthread support to my project, which is based on ATT_MTU_Throughput example. I followed the tutorial in infocenter, but I still have some problems in linking stage:

43
views
no
1

## Why do cflags have heap and stack size

I have inherited a project where the Makefile sets __HEAP_SIZE and __STACK_SIZE for both CFLAGS and ASMFLAGS:

CFLAGS += -D__STACK_SIZE=2048
CFLAGS += -D__HEAP_SIZE=0
ASMFLAGS += -D__STACK_SIZE=2048
ASMFLAGS += -D__HEAP_SIZE=0


Looking at samle Makefiles from the SDK I see the same ... (more)

165
views
1
vote
1

Hello, when starting a new project I took the nice Heart-Rate-Example which works fine at my PCA10040. Then I started to add services and characteristics by copying and adapting the HRS - I know that I will have to declare them ... (more)

59
views
no
1

## Buttonless DFU with GCC

Hi,

I seem to be stuck on a rather simple problem here which I am unable to figure out. I am using SDK 12.2 with PCA10040 board.

When I am compiling the experimental buttonless DFU example with gcc, the ... (more)

120
views
1
vote
1

## Secure DFU, Should you use fstorage or nrf_dfu_flash

Within a buttonless DFU application should nrf_dfu_flash or fstorage be used to erase and write to flash?

SDK 13.0.0 - Soft device s132_nrf52_4.0.2_softdevice running on a nRF52832.

I want to store device specific information (like Serial Number ... (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)

#### Statistics

• Total users: 24451
• Latest user: Crystal Cotter
• 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