183 questions
0
votes
0
answers
24
views
NRF52832 bluetooth mesh lightness setup server set cb triggered by timer
I have an issue with the Lightness setup server set cb being triggered without a connected device and is not internally called in my code. Yet for some reason the set cb is triggered every time my ...
0
votes
1
answer
216
views
Trying to link with mbedtls functions fails with Zephyr
I am building a Zephyr application to run on an NRF52840. I am trying to derive a session key with the following function :
int derive_session_key(const uint8_t *device_token_key, const uint8_t *...
0
votes
1
answer
74
views
Null in a dereferenced Stack Pointer in Rust on Cortex-M4 (nRF52833)
When developing a Rust no_std bootloader for my micro:bit v2.21 (Cortex-M4, nRF52833), I have encountered a weird error.
The bootloader jumps to the main application using cortex_m::asm::bootstrap(sp, ...
1
vote
0
answers
122
views
BlueFruit: No Arduino access to Service or Characteristic of nRF52840 devices
I installed a BlueFruit on XIAO Sense nRF52840 to handle 16+ BLE devices.
Bluefruit.begin(0, 8);
Bluefruit.setTxPower(4);
Bluefruit.setName("Bluefruit Scanner");
Bluefruit....
1
vote
1
answer
112
views
Zephyr ILI9341 Display Driver Compilation Errors - Missing Devicetree Properties
I'm trying to use an ILI9341 display with nRF52840 in Zephyr (v4.1.99). The build fails with multiple errors about missing Devicetree properties when compiling display_ili9xxx.c:
error: '...
0
votes
0
answers
48
views
BLE Buttonless DFU App Crashes After Setting High on P0.27 and P1.07 – nRF52840 Custom Board (nRF5 SDK v16.0.1)
I'm currently working on a custom board based on the nRF52840, using SoftDevice S140 v7.0.1 and nRF5 SDK v16.0.1. I’ve integrated the BLE Buttonless DFU example (examples/dfu/secure_bootloader/...
0
votes
0
answers
58
views
How to setup openthread border router with multiple instances to handle different networks
I am new to OpenThread. I have set up a Raspberry Pi 3 as a border router and am using an Nrf52840 USB dongle as a radio to communicate with thread-end devices. I am using ESP32s as the end devices.
...
0
votes
0
answers
59
views
Nordic Semiconductor nRF52832 ble_app_uart_c example in Eclipse IDE: syntax error in main.c
I have configured Nordic Semiconductor nRF52832 ble_app_uart_c example in Eclipse IDE, added all required header files paths to nRF5_SDK - no editor errors related to imported header files, also can ...
0
votes
1
answer
152
views
Getting error "undefined reference to `ecdsa_pub_key_len'" when attempting to sign an MCUBoot binary file for a Nordic nRF52840
I'm building firmware in SDK 2.6.2 with MCU Bootloader in order to be able to perform Bluetooth updates. In trying to sign the file, I ran into issues.
I created a key using:
py imgtool.py keygen -k ...
0
votes
0
answers
59
views
Does mesh-cfgclient support "no-oob"?
I’m trying to provision a Bluetooth Mesh device using BlueZ’s mesh-cfgclient tool on a Raspberry Pi. When I use the nRF Mesh mobile app, I can choose between “no OOB” (no out-of-band authentication) ...
1
vote
1
answer
503
views
nRF52840 DK deep sleep using Zephyr
I used nRF52840 DK module with Zephyr with J-link programmer. The issue is the deep sleep does not work, and also not wake up using GPIO rising edge where interrupt is coming I see on data logger. ...
0
votes
1
answer
173
views
How can Micro:bit act as a Bluetooth Low Energy (BLE) Central role?
Micro:bit can act as a Bluetooth Low Energy Peripheral (using SoftDevice S113). But the nRF51822 and nRF52833 SoC, which Micro:bits v1 and v2 are based on, should also support BLE Central role (using ...
1
vote
0
answers
58
views
I'm using an nRF24L01 transceiver hooked up to an Arduino Uno as a transmitter. The messages don't send and I don't know why
The end goal is simple: use one arduino + nRF24L01 setup to remotely turn on an LED on another arduino + nRF24L01 setup.
I'm stuck on the the transmitter side. The transmission keeps failing and I'm ...
1
vote
0
answers
121
views
Finding a call stack programmatically (unwind?) on nRF82540/ARM/IAR/FreeRTOS
I am attempting to write a routine that monitors the heap in order to track down a memory leak. I've seen similar tools on other platforms and found them quite helpful. To make this even more ...
0
votes
1
answer
459
views
zephyr central NUS
I have two nrf52840 dongles and I want to get them to communicate with each other. It is worth noting I am very new to embedded programming, so be patient with me. So far I have gotten both the ...
1
vote
1
answer
101
views
Multiperipheral Links nRF52832
I am new to embedded systems. I am trying to increase the number of ble peripheral links.
static uint16_t m_connection_handle[NRF_SDH_BLE_PERIPHERAL_LINK_COUNT] = {BLE_CONN_HANDLE_INVALID};
static ...
0
votes
1
answer
2k
views
Zephyr RTOS (nRF Connect SDK): are k_msleep() and k_sleep() both non-blocking?
I'm quite new to Zephyr RTOS and the nRF Connect SDK. What I want to know is if the kernel sleep routines k_sleep and k_msleep are both non-blocking. This post says:
k_msleep (which uses k_sleep) is ...
1
vote
1
answer
141
views
How to make Movesense communicate with Nordic nRF52832 board with BLE?
I want to collect data from Movesense with an nRF52832 board through BLE.
First, I tried to connect with Movesense device with nRF Connect mobile application, where I can see the Heart Rate Service, ...
0
votes
1
answer
330
views
BLE is not advertising on nRF52840 dongle; how can I configure this dongle using coding?
I am working on nrf52840 in which the BLE is not Advertising even after I am adding one parameter. I just want to add the parameters at the time of adding the 2 parameters. As you can see in picture
...
0
votes
1
answer
436
views
How to run Zephyr Echo Client-Server sample using nrf52840dk & nrf52840dongle?
I'm trying to run the Echo Client and Echo Server example of Zephyr.
I want to use nrf5284dk as server and nrf5284dongle as client (or vice versa).
I should also mention that my OS is Windows 11.
...
1
vote
1
answer
183
views
Receiving BLE packets without connection
I'm working on a device (nrf52840) in my company that was developed but not till the end.
The device is a peripheral that collects data and advertises its packets using BLE5.
i want to make a device, ...
1
vote
1
answer
229
views
Is possible to connect to a device passing security keys/token and authenticate without bonding/pairin
I have a mobile app (Android/iOS) that acts as a BLE client and a BLE device as a server.
The device does not have any display or keyboard. I want to connect to this device from the mobile app, make ...
0
votes
1
answer
150
views
How can I casting void * to void **?
I make some project to using nRF52833 by CPP.
I need to add NUS(Nordic Uart Service) in my project. But I have some problem.
Nrf library NUS using ble_nus.c file.
I try to build by CPP compiler but ...
0
votes
1
answer
631
views
NRF52832 BLE device discovery issue
I've been struggling with a board issue for a week now. I'm using the nRF52835 with an external antenna. I'm trying to run an example after installing the nRF Connect SDK. I've loaded various ...
1
vote
1
answer
643
views
nRF SDK: BLE GATT server and interrupts at the same time not working
I am trying to use nRF52DK as BLE GATT server and at the same time use interrupts to keep track of the current time in the device. Both work if only either ble or interrupts are enabled but at the ...
0
votes
1
answer
567
views
How to initialize GPIOTE in NRF52?
For some reason this simple configuration of NRF52 sdk 15.3.0 doesn't work. I was trying to edit my code from gpio to gpiote and I cannot initialize even the event to recognize that the button has ...
0
votes
1
answer
181
views
Achieving a 6-second period for a PWM Wave using nRF52 Series PWM Driver in C
I am working on a project using an nRF52 Series MCU, where I am aiming to produce a sinusoidal PWM wave with a total period of approximately 6 seconds using the nRF52 SDK v.15.3.0.
I have initialized ...
0
votes
0
answers
639
views
analogRead() on seeed nRF52840 is incorrect
I hope I am just missing something simple here, but I have been banging my head on the desk for awhile trying to solve this very simple problem that I can't seem to find a solution for online.
I have ...
0
votes
0
answers
69
views
XIAO Seeed seens with PN532 transfer data with BLE
I m new to programing can you help me with a code for send/recive nfc data from a phone to an XIAO Seeed seens to PN532 shield and revers to show data in phone like an POS.
Thanks for help me.
I tried ...
1
vote
1
answer
318
views
Unable to Communicate with SEN0491 Laser Ranging Sensor via Modbus using Seeed Xiao nRF52840 and ModbusMaster Library
I am facing difficulties while trying to communicate with a SEN0491 Laser Ranging Sensor from DFRobot (Product Page) via Modbus. I am using a Seeed Xiao nRF52840 for the task and the ModbusMaster ...
1
vote
0
answers
920
views
Write to RTT using pylink-square library
Using this example of the pylink git repo, I am able to send commands to my Nordic Board and control it over the RTT.
Now, I derived my own little python script from this example, where I want to send ...
1
vote
1
answer
764
views
Device firmware update over BLE from STM32 to NRF device
Is it possible to update the firmware from an STM32 device to NRF device over BLE?
What is a step-by-step approach to achieve this? The update procedure includes: Prepare the firmware update, transfer ...
0
votes
0
answers
266
views
pyocd gdbserver exit 1
I am attempting to launch a debug session in vs code in wpl2 on a nrf52 platform. I get the pyocd-gdbserver exited with code 1. Normally I just use segger jlink gdb server in windows. I am new to ...
2
votes
2
answers
985
views
NRF52 developing without using device trees
I have recently picked up NRF52DK development board with NRF52832
https://www.nordicsemi.com/Products/Development-hardware/nrf52-dk
I have setup my development environment using VSCode NRF Connect ...
0
votes
1
answer
1k
views
float to string in C++ using NRF MCU and Zephyr
I simply want to convert a float to string. Normally this is done using C++ standard library with the command to_string(float). However when I program this on my MCU nrf52840 I got garbage.
This is ...
0
votes
1
answer
179
views
NRF5 SDK 17.1.0 Threading Model
Ok, so stupid-newby question-time. Is the default thread model in nRF5 SDK 17.1.0 single threaded with exceptions, interrupts, events, running as ISRs in privileged (i.e. higher priority) stack space?
...
0
votes
2
answers
546
views
How to Programme 3rd Party nrf52832 (DollaTek NRF52832 Bluetooth Module BLE )
I am coming from programming Arduino and want to use NRF52832 - I have found this board which a 3rd party breakout board for NRF52832 - I want to use this so that I can use a similar design for the ...
2
votes
2
answers
962
views
NFC with Seeed Studio XIAO nRF52840
I'm trying to use my Seeed Studio XIAO nRF52840 like an NFC reader and like an NFC badge (not at the same time).
For this, I have bought an NFC antenna, I soldered the wires to the two slots provided ...
0
votes
1
answer
80
views
Where could macros be defined if there is only a definition in a header but the macro isnt doing anything?
So im trying to setup some interrupts on the Arduino BLE 33 board, and im looking at Nordics header files for their nrfx drivers.
There is a file called nrfx_glue.h which i've attached that creates a ...
1
vote
1
answer
277
views
How to configure device type in bluethooth advertising package?
I'm developing a custom bluetooth keyboard. It works now smoothly, but there's one thing I can't figure out. In macOS bluetooth settings page, the icon doesn't properly imply its device type. AirPods ...
0
votes
0
answers
86
views
Reserve a part of memory
Currently I am making some code for a Nordic nRF chip. I want to make it power efficient so I am experimenting with it. A part of that is turning memory sections off. So my goal is to power one block ...
0
votes
1
answer
740
views
How to read back a value from a test register using SPI interface?
I am attempting to connect the Arducam Mini 2MP Plus to the nRF52840-DK embedded board via the SPIM interface, utilizing bare metal programming.
According to the Arducam datasheet,
The ArduCAM SPI ...
0
votes
1
answer
209
views
AttributeError: 'NoneType' object has no attribute 'scan'
`I am trying to scan for devices advertising the UART service using Micropython on esp32. but I get AttributeError: 'NoneType' object has no attribute 'scan'
below is my code:
# Initialize and enable ...
1
vote
1
answer
2k
views
My GPIOs in the overlay file are not defined in devicetree_generated.h, zephyr fails
I am trying to use Zephyr (v.3.2.99) for a small application on the nRF52840 Dev Kit. I set up an overlay file nrf52840dk_nrf52840.overlay that is being read and processed by cmake. I get the ...
0
votes
2
answers
250
views
Difference BLE throughput between PC and mobile(android)
I'm trying to receive data in mobile(android) devices from a BLE device based on nRF52840 and custom firmware.
Here is my setting
sampling rate : 250Hz
mobile devices : Galaxy flip z 3, Galaxy S22
...
-1
votes
1
answer
1k
views
Pairing (security) example for Seeed XIAO nRF52840
I can't find example how to do BLE pairing with Seeed XIAO nrf52840 board. It doesn't matter to me if it will be Arduino or Circuitpython libraries. Is there something like this somewhere?
I would ...
1
vote
1
answer
1k
views
Send Battery Level notifications to nRF Connect app when battery level reaches certain level
I am new to BLE and I need help with Battery Service notifications. I am using nrf52840dk, nrf sdk 17.1.0 and I am using ble_app_proximity example which already uses Battery Service.
I need to send a ...
0
votes
1
answer
394
views
Unable to compile tensorflow lite examples on adafruit circuitplayground bluefruit due to missing files in Adafruit_Tensorflow_Lite library
I am unable to compile the examples , hello_world_arcada and micro_speech_arcada shown below , on the adafruit website found here on my Circuit playground bluefruit microcontroller:
I installed the ...
1
vote
2
answers
665
views
ArduinoBLE Library - Disconnected Event does not fire
This is my setup.
An ESP32 running as BLE Server
An nRF52840 mbed board (XIAO BLE Sense) running as BLE Client
The problem is on the Client
Everything seems to work apart for the Disconnected event.....
2
votes
2
answers
280
views
Sleep in OpenThread application
I'm trying to build my own OpenThread application on two nrf52840 DK borads. When a specific button is pressed I want to start sending udp multicast in a specific time intervall. For now I have ...