# 26,080 questions

474
views
no
1

## How to use the Common App Libraries ---> GPIOTE Handler

HI, I want use some GPIO to detect "pin_high_to_low" or " pin_low_to_high". and I think the "app_gpiote.c" might be helpful. but I have been confused by function " sense_level_toggle(*p_user, pins) " , What's the purpose of toggling sense level for specified ... (more)

1k
views
no
1

## How to use the GPIO OUTSET register and OUTCLR register in a right way ？

I have a question about using the GPIOs,I found that I can set a ‘1’ at the same bit position of OUTSET register and OUTCLR register. But which one is effective ?

1k
views
no
1

## nRF51 UART baud rate accuracy

I am using a nRF51822 at 16 MHz

What is the math formula behind the BAUDRATE register?

What is the timing error for each of the standard baud rate setting? This is not in the reference manual.

Thanks

191
views
1
vote
no

## New to Nordic and keil need help compiling custom project

new to nordic and keil need help compiling custom project currently my main file only works with the nordic 1822 series processor and in your example. I need to have it better packaged so I can archive it into our ... (more)

367
views
no
1

## Over the Air update - nRF51822 custom boards from Evaluation Kit

Hi,

I have an evaluation kit and I have custom boards that has nRF51822 chip on them.

I am trying to update the firmware(Application) of the custom boards from evaluation kit. Is this possible?

Could you let me know ... (more)

741
views
no
1

## BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM vs BLE_GAP_CONN_SEC_MODE_SET_SIGNED_NO_MITM

there is no sample code in nrf5188 sdk to use BLE_GAP_CONN_SEC_MODE_SET_SIGNED_NO_MITM, what's the difference between the two settings? for BLE_GAP_CONN_SEC_MODE_SET_SIGNED_NO_MITM, is there a place to set private key?

395
views
no
1

## BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS vs remove the char

by set a char with BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS, means it can't be read and write, if so, why not remove the char? any reason behind BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS?

Thanks

168
views
no
1

## why use do while?

#define APP_ERROR_CHECK(ERR_CODE) \ do \ { \ const uint32_t LOCAL_ERR_CODE = (ERR_CODE); \ if (LOCAL_ERR_CODE != NRF_SUCCESS) \ { \ APP_ERROR_HANDLER(LOCAL_ERR_CODE); \ } \ } while (0)

I saw this a lot, is it for save one int from stack? if so how about just use {}

536
views
1
vote
1

## How to overwrite SoftDevice using a bootloader? [closed]

The documentation for the nRF51 says only code from code region 0 can execute the erase and write command on code inside code region 0. This means that my bootloader in code region 1 cannot write to code region 0 ... (more)

411
views
no
no

## Use nordic uart service with native Linux stack from Java

I'm looking for a way to use the nordic uart service (https://devzone.nordicsemi.com/docume...) from Linux using the native Linux BLE Stack (BlueZ). My application is written in Java. This way the communication would be possible with ... (more)

352
views
no
no

## ANCS Hard Fault

Hi, I've created an application using the S110 experimental ANCS demo. I successfully implemented ANCS and then began to structure my application around it. At some point I realized that my ANCS handler was causing a hard fault. The ... (more)

388
views
no
3

## What risks can be when using SDK 5.2.0 + S110 6.0.0 on older nRF51822 QFAACA/C0 chips?

Hi, it happened that we have some hardware boards populated with older chips rev. QFAACA and some with newer rev. QFAAG0 but we need to share same software. As I read newer chips should use SDK 5.2.0 and ... (more)

798
views
3
5

## Can a nRF8001 or nRF8002 do this? (Proximity)

Ive searched thru a few of the communities out there for an answer to this, but I am still not sure. I appreciate any help with my newbie questions :)

I need a home automation system to recognize multiple users via ... (more)

656
views
1
vote
1

## How to make a beep on nRF51822 with BLE SD and what timer to use?

Hi, I need to drive a piezo buzzer. Just need to make a simple beep function(s) that one call will start generating a specified frequency on specified pin and other call will stop it. Desired freq. is about 3 ... (more)

862
views
2
no

## HardFault on sd_ble_gap_device_name_set call on custom nrf51822 board

Hi,

I've developed an application and tested it on the evaluation kit. Now i'm trying to run it on a custom board with a nrf51822 chip on it. I've made modifications to exclude evaluation board specific code ... (more)

298
views
no
1

## BLE maximum datarate

Hi,

We want a throughput between a BLE link 12KBytes/s. In our application there is a peripheral (in Nordic starter kit), running S110 and we have configured connection interval at 7.5ms to support up to 16KBytes/s maximum ... (more)

3k
views
3
2

## Secure connection between nRF51822 and Android Smartphone?

Hello, i'm programming an android app to connect to the nRF51822 (peripheral). Without any security or pairing settings everything works fine. The Problem: Any kind of authentication and encryption is needed, but in the final Product the nRF51822 has ... (more)

370
views
no
no

## What elements of the over-the-air package are fed in which order and endianess into the crc module?

Hello,

In an ongoing company project we use a couple of nRF51 transceivers forming a beacon enabled wireless sensor network consisting of one base station and multiple sensor nodes. For our application it is required that we are able to ... (more)

329
views
no
1

## what is CCCDs? how do I know the number I used?

Using sdk5.2, and ble_bondmngr_bonded_centrals_store() called on_disconnect, and then call err_code = sd_ble_gatts_sys_attr_get(m_conn_handle, m_central.sys_attr.sys_attr, &sys_attr_size); SDK said The system attribute information did not fit into the provided buffer.

in build map Total RO Size (Code + RO Data) 45764 ... (more)

833
views
2
1

## GPIOs voltage level on nRF51822

Hi!

I wonder what is the GPIOs nominal voltage level when I'm using the internal DC/DC converter? I know that the internal DC/DC converter output voltage is 1,9V but I'm not sure if the GPIOs ... (more)

213
views
no
2

## Component wakeup while changing power supply voltage

HI, I'm using sd_app_evt_wait() for getting back to sleep mode between advertisings. I noticed that when I change the voltage in a small interval mode (40 ms between advs) the system gets an event, exit sd_app_evt_wait() and going back ... (more)

285
views
no
1

## nrf905 driver for OpenWRT

Hi, How can I use nrf905 with an Openwrt based module? Are there any driver for operation systems? These modules have many gpios. Openwrt based modules are simply Wifi modules using openwrt distribution of Linux. I want to integrate them ... (more)

342
views
no
2

## uC sleeping BUT Not Waking off RDYN issue?

I'm right now getting uC to sleep WHEN THERE ARE NO ACI EVENTS I think I'm doing right, the uC sleeps but I'm not able to wake up despite the fact that RDYN is connceted to pin ... (more)

355
views
no
2

## nrf8001 DC/DC enabling and then Error

Im having errors like Arduino is in the while(1) loop if I enable the DC/DC converter in the characteristics and generate service.h file , If I do not use this setting everything is fine! How to tackle such ... (more)

322
views
1
vote
2

## Development Tools and environment.

I am using the nRF51822 to communicate with a HRM (and nothing else), but I intend to use the power of the ARM to control other sensors and process the received data. I use Keil as my IDE of choice ... (more)

8k
views
12
18

## nRF UART App [closed]

where is "nRF UART App" nRF51822 code ?

247
views
no
1

## A question about nrf51 serialization command

i captured all the packets between nrf51822 connetivity board and application board. and i found the command packet is composed of start byte (0xC0), header part(4 byte), packet type(1 byte), op_code(1 byte), data part(sevral bytes), crc ... (more)

494
views
1
vote
2

## Device Get shut down when after getting Insufficient Authorization

Hi, I am using the following security level for my nRF5188 device.


BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM(&bas_init.battery_level_char_attr_md.cccd_write_perm);
BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM(&bas_init.battery_level_char_attr_md.write_perm);



At first the device is visible in my Android Master Control Panel and can connect to ... (more)

167
views
no
1

## nrf51822 upgrade from 4.4 to 5.2, build ok, flash ok, but stuck on run

https://www.dropbox.com/s/tgcwcxpk716... it is not even reach main() same as https://devzone.nordicsemi.com/index....

is it related to target setting? https://www.dropbox.com/s/m75a02dpf5g...

I try different combination, such as the default setting ... (more)

1k
views
1
vote
1

## On NRF51822, flash write hangs on writing to NRF_NVMC->CONFIG location.

Flash write and erase works fine, if ble is not initialized( ble_stack_init()).

Once ble is initialized, any write to NRF_NVMC->CONFIG hangs the system.

Do I need to check for radio active signal ?

Thanks.

#### Statistics

• Total users: 24904
• Latest user: Kristal Fielder
• Resolved questions: 10659
• Total questions: 26081

## Recent blog posts

• ### How to build continuous integration and delivery process for embedded SW development

Posted 2017-10-03 11:01:29 by Yaniv Nis
• ### Multiple channels in RTT

Posted 2017-09-29 11:51:52 by Krzysztof Zaraska
• ### 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 (Updated for 0.10.0)

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

Posted 2017-09-18 11:58:04 by schef

## Recent questions

• ### can't program nrf52832ciaa

Posted 2017-10-17 18:34:31 by luckxiaoer
• ### nRF52840 and others " printf()"

Posted 2017-10-17 18:30:44 by ToasTer86
• ### Help with breakpoints on Eclipse with sdk14 please

Posted 2017-10-17 18:18:00 by Tony
• ### Maximum power consumption

Posted 2017-10-17 18:15:05 by Ruediger
• ### Advertising restart after a disconnect event

Posted 2017-10-17 18:14:18 by Yatekii