The nRF51 Series is a family of highly flexible, multi-protocol, system-on-chip (SoC) devices for ultra-low power wireless applications from Nordic Semiconductor [1].
Questions tagged [nrf51]
90 questions
1
vote
3 answers
How to byte-align a union's buffer with RAM address
I am currently coding in C and using nRF51 MCU from NORDIC (32-bit ARM Cortex M0).
I would like to send an union's buffer by radio. For this purpose I have to give the address of the union's buffer to PACKETPTR.
Otherwise the address given to…

TRandom
- 11
- 3
1
vote
2 answers
Convert Objective-C code to Swift
I have been working with nrf51x. I have a sample code written in Obj-C. I was not able to convert it to Swift.
uint8_t value = ACTIVATE_AND_RESET_REQUEST;
[self.bluetoothPeripheral writeValue:[NSData dataWithBytes:&value length:sizeof(value)]…

Zied Feki
- 812
- 1
- 10
- 19
1
vote
1 answer
Simple compression Algorithm in C is not working..any suggestions?
I am creating a project in nordic Micro that reads a value from an Analog input termninal an output it into UART. I am now trying to compress the data using GE Proficy Historian Compression so that only changed data are outputted in the UART. But…

Raiyans
- 11
- 2
1
vote
3 answers
How to store MCU-GPIO pin status (value) to an array of 10 numbers in Embedded C?
I want to read the MCU GPIO pin status and store it to an array of 10 numbers repeatedly. When the array is full, it should left shift the value and store the new value to a [9]th subscript position and continue.
How can i implement this as code in…

Emlinux
- 39
- 2
- 13
1
vote
2 answers
nrf51 timer driver code bugs
I'm currently trying to make an application using the nrf51 development kit & I'm trying to use the timer driver, when I induled the C & H files of the driver I got some error :
static const nrf_drv_timer_config_t m_default_config[] = {// here it…

Mohamed Osama
- 59
- 5
1
vote
0 answers
Makefile with different source directories than object directory
I'm devloping application on nRf51 for that i'm using:
Compiler: GNU ARM C cross compiler[gcc]
SDK: nRF51_SDK_7.2.0_cf547b5
Tool chain: GNU tools arm Embedded [arm-none-eabi version 4.9.3]
I'm trying to create a makefile in which all source file…

Patel Tejasvini
- 11
- 3
1
vote
1 answer
Nordic nRF51822 + Nordic IoT SDK
Nordic released an IoT SDK for some platforms (including the nordic nRF51822 BLE SoC) that allows developers to directly connect BLE devices to the internet (with IPv6 over BLE) using a BLE enabled computer or router as a gateway (the Raspberry Pi…

John Blackberry
- 1,254
- 1
- 9
- 12
1
vote
1 answer
Nordic nRF51 DK on Mac with CrossWorks
On OSX with Rowley Associates CrossWorks what are the steps needed to compile and run a simple BLE UART sample code for Nordic nRF51 DK to an iPhone.
I found iOS and Android code here and am comfortable with that part:…

Yepher
- 1,465
- 12
- 25
1
vote
1 answer
How to use DFU on nrf51822
I use Nordic nRF51822 ble_app_uart project (pca10001) and new softdevice7.
I find a DFU project at nrf6310 directory of SDK .
when i program both projects the uart application stop running. What is wrong?
How can i update standard ble_app_uart…

user3428151
- 449
- 6
- 23
0
votes
1 answer
how to unlock the flash of a nrf51822 using OpenOCD
I bought a couple of nrf51822 but their flash seem to be locked. See the log below:
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
Info : only one transport option; autoselect 'swd'
Info…

aguaviva
- 553
- 6
- 12
0
votes
0 answers
Binary format for timed sequence
I am creating a BLE firmware implementing the Automation IO Service, which is able to accept commands to toggle output pins.
Also, I want to be able to send a sequence of outputs with delays in one single packet.
So, one packet could contain this…

Daniel D.
- 178
- 2
- 15
0
votes
1 answer
How to set values in Makefile.poisx
I am trying to build nrfsdk for the nrf52840 armgcc, running make gives following error.
su@su-desktop:~/nRF/nRF5_SDK_17.1.0_ddde560/examples/peripheral/template_project/pca10056/blank/armgcc$ make
/home/su/gcc-arm-none-eabi/bin/arm-none-eabi-gcc:…

varun_koganti
- 51
- 3
0
votes
1 answer
Pyocd and Picoprobe unable to flash nRF51822
PyOCD and Picoprobe will not flash an NRF51822, exiting with the error cannot read register r0 because core #0 is not halted.
Setup:
Windows 11
Python 3.9.6
PyOCD 0.33.1
Output from pyocd load firmware.hex --target nrf51822:
0001527 I Loading…

Python380
- 11
- 3
0
votes
0 answers
Anything equivalent to Android-Scanner-Compat-Library for iOS?
Looking for BLE scanner similar to Android-Scanner-Compat-Library for iOS ?
Using scanForPeripheralsWithServices but some time BLE peripheral (device ) not found in the scan.

Vinay Maheshwari
- 84
- 8
0
votes
1 answer
Micro:bit serial pins
I'm looking to port some C++ code to the micro:bit and I would like to use the USB-UART capabilities of the board.
My current project uses the nrfx library to set up peripherals such as the UART. I need to know which GPIO are connected to the…

edoput
- 1,212
- 9
- 17