Search Result

0 results found on Nordicsemi

All results

104866 results found on DevZone

NordicSemi

DevZone - first 10 hits

PWM peripheral defaults pins to 0 when I want them to invert and default to 1

Hello, I am using the nrf5340 on some custom hardware, and I am using 3 LEDʻs and running them with the PWM0 peripheral to fade and blink and indicate states for the firmware. The LEDʻs are driven as active-low, and I am using the PWM flag PWM_POLARITY_INVERTED in the device tree to make sure this works. After initialization, the PWM peripheral works very well, and using the zephyr driver is very easy to use. However, I am finding that before initialization, there is a function called in the pwm_nrfx.c that will reset the LEDʻs pin states to 0. This, of course, turns the LEDʻs on, and I have to set the PWM peripheral to 0% duty cycle when I initialize in my own code in order to make sure they start in the OFF state. This results in a brief flash of white at the start of the firmware, of

forum

5/29/2024

Bluetooth Mesh - Send customize data/command to node

Is nRF Mesh app support feature that send customize data/command to node? The goal is to transmit data from phone to node, where it will be processed and used to trigger actions. Besides that, how to check what’s the roles of node currently running? Those fields are shown unknown in nRF Mesh app features section (Refer to attachment). Is it check from prj.conf file? SDK version: v2.6.1 nRF Mesh app (IOS): 4.2.0 Hardware: nRF5340-DK

forum

5/29/2024

How to get commands generated from client cluster in coordinator

Hello, I have a question about how to get commands generated from a client cluster in a coordinator. I am currently developing a hub to control and retrieve data from home appliances that support the Zigbee protocol. This hub is equipped with nRF5340 and has Flash firmware built with nRF Connect SDK. I'm thinking of connecting a Hue Dimmer switch to this hub and using the hub to get information about the commands generated when the On/Off and Level Control switches are operated from the switch. I have found that if I bind the On/Off cluster or Level Control cluster of Dimmer switches to the hub with "zdo bind on", I can get a log like below on the hub side as info level logs. [03:57:54.107,513] zigbee.eprxzcl: Received ZCL command (15): src_addr=0x2ad3(short) src_ep=1 dst_ep=64 cluster_id=0x0006 profile_id=0x0104 cmd_dir=0 common_cmd=0 cmd_id=0x40 cmd_seq=1 disable_def_resp=0 manuf_code=void payload=[0000] (15) My question is as follows. 1.

forum

5/29/2024

RF52-DK keeps mounting and unmounting on MacOS

Hello, I use a RF52-DK board for flashing/debug Nordic microcontroller. When I connect the board on my mac, the "JLINK" volume is mounted/ unmounted every 2 seconds and I can't do anything. Macbook Pro 13", 2020, Apple M1 MacOS 14.5 (23F79) Segger Jlink software v. 7.76i nRF connect Desktop v. 5.0.0 "Allow accessories to connect" is set to "Ask for New Accessories" in System Settings > Privacy & Security. I tried to connect to the board with a new cable with no success. Can anyone help me with this? Thank you very much. Aurelien

forum

5/29/2024

How to create a Low Power RTOS system code em C++ for ARM Cortex-M MCUs, a nRF52840?

Good night, I am developing a Firmware for a nRF52840 created by RAKWireless RAK4631, with VSCode/Platformio/C++/FreeRTOS, and now I am changing the Architecture from a Super Loop to a Event Driven. The events will be, for example, a accelerometer that it will create some Interruption when the acceleration reach a specific level. Now the challenge is to reduce the power consumption with a Low Power Architecture, with resources as sleep/deep sleep and tickless, based on the "4.3.6 System Control Register" in the "Cortex-M4 Devices Generic User Guide". Where could I find some example about the subject described above? Cláudio Rosa

forum

5/28/2024

Issue with reading WHO AM I Register of ICM20948 over SPI with nRF52832 and Zephyr

I am trying to read the WHO AM I register of an ICM20948 over SPI with nRF52832, but I am getting incorrect values. I have tried different SPI modes, but none of them work. Later, I tried reading the same register to make sure the module is working with different controllers, and they worked, which means the module is functioning properly. Instead of expected value 0xEA, I am getting 0xE0 or some other values. // boards/nrf52dk_nrf52832.overlay &i2c0 { status = "disabled";}; &i2c1 { status = "disabled";}; &spi1 { status = "disabled";}; my_spi_master: &spi2 { compatible = "nordic,nrf-spi"; status = "okay"; pinctrl-0 = ; pinctrl-1 = ; pinctrl-names = "default", "sleep"; cs-gpios = ; reg_my_spi_master: spi-dev-a@0 { reg = ; }; }; &pinctrl { spi_master_default: spi_master_default { group1 { psels = , , ; }; }; spi_master_sleep: spi_master_sleep { group1 { psels = , , ; low-power-enable; }; }; }; #define

forum

5/28/2024

bt_nus_send() blocks at the 4th call if central is not in range (aka package is not received)

Hi, I have a peripheral which is sending data to a central via the NUS service. Everything works as expected until the central is removed (e.g. power failure) The problem is the time between the central is removed and the peripherals recognises the disconnect (connection timeout). If in that time bt_nus_send() is called more than three times, it blocks. It then releases after the disconnect callback. I've recognized the error, cause after I received a disconnect callback, i immediately start extended advertising again. The restart of the advertising fails, if the bt_nus_send() is blocking. I've two questions: Is there a way to get an error of the bt_nus_send() instead of blocking? Why is the restart of the advertising failing; what has this to do with the bt_nus_send() I've to say, I've found a workaround. I'm using k_work_schedule in the disconnect callback to start advertising 50ms delayed. This works fine. But

forum

5/28/2024

Using USB mass storage device to flash nRF5340-DK does not work

Hello, when I plug in my nRF5340-DK, a mass storage device called "JLINK" appears on my Windows PC. Normally, it is possible to copy .hex files with firmware to the mass storage device, and it is flashed automatically via the integrated SEGGER JLink debugger of the development kit. I used this method successfully in the past with the nRF52832 development kit. For the nRF5340-DK, this method seems not to work anymore. I cannot flash merged_domains.hex via the mass storage device. If I try, a FAIL.TXT file appears, that doesn't provide much useful info. What went wrong? I tried flashing a Bluetooth project with a small Peripheral implementation: CONFIG_BT=y CONFIG_BT_PERIPHERAL=y CONFIG_BT_DEVICE_NAME="My Bluetooth" CONFIG_BT_HCI=y After some testing, I found out that I can flash build\zephyr\merged.hex and *\zephyr.hex (I didn't verify the data, but I didn't get the FAIL.TXT file with these). Then, I tried the .hex files from the hci_rpmsg subproject: build\hci_rpmsg\zephyr\merged_CPUNET.hex,

forum

5/28/2024

BLE data packet drop during transmission

.Hi Nordic Support team, I'm using NRF528328, SoftDevice S132, SDK version is nRF5_SDK_17.1.0_ddde560. I want to transmit 9 bytes of data collected from an I2C sensor every 2.5ms via BLE. The sensor has an internal buffer so I can queue up to 288 bytes (80ms from empty to full sensor buffer). However, I2C can only receive 255 bytes per queue, so I only collect data from the sensor every 60ms, because for 60ms, the sensor produces 216 bytes of data and it is within 1 MTU packet ( configure it to be 247 bytes per MTU). That means I will send 1 MTU every 60ms. That means I only need a connection interval of 60ms. Am I correct? In my BLE structure, I also have another different characteristic that reports the device temperature (takes only 2 bytes) every 10 seconds (yes, second not milliseconds). However, from my experiment, 60ms cannot

forum

5/28/2024

nRF5340 (Thingy 53) AoA

Hello All, I am hoping to leverage Thingy 53's as the sensors (transmitting device) for tracking leveraging AoA. The nRF5340 DK works fine for this application as a sensor, however using the Thingy in these use case seems to be more challenging. I am curious if there a straight forward path to leverage a Thingy 53 as an AoA sensor (transmitting device)?

forum

5/28/2024