Search Result

0 results found on Nordicsemi

All results

75395 results found on DevZone

NordicSemi

DevZone - first 10 hits

Ceedling YAML to CMakeLists

All, Before I head off on that experimental path, was wondering if anyone on here tried to parse and convert project.yml to Cmake arguments? We use ceedling for unit testing the zephyr application. Figured it would be nice if I could have project.yml as single source of truth for both test and target builds where I provide all source , include directories and defines instead of all the nested CMakeLists.txt. I suppose what am trying to do won't sit nice with spirit of CMake? Thanks

forum

10/21/2021

Cannot initialize QSPI (nRF52840 and Micron NOR Flash)

I'm working on a custom board with a nRF52840 and a Micron NOR Flash MT25QU128ABA8E12-0SIT ( https://www.micron.com/products/nor-flash/serial-nor-flash/part-catalog/mt25qu128aba8e12-0sit ) I copied code from the QSPI example in SDK17.1.0, after verifying that it worked on the PCA10056 board. Here's a snippet of the relevant code #include #include #include #include "boards.h" #include "app_util_platform.h" #include "app_error.h" #include "boards.h" #include "nrf_drv_qspi.h" #include "nrf_delay.h" #include "nrf_log.h" #include "nrf_log_ctrl.h" #include "nrf_log_default_backends.h" #include "main_memory.h" #define QSPI_STD_CMD_WRSR 0x01 #define QSPI_STD_CMD_RSTEN 0x66 #define QSPI_STD_CMD_RST 0x99 #define QSPI_TEST_DATA_SIZE 256 #define WAIT_FOR_PERIPH() do { \ while (!m_finished) {} \ m_finished = false; \ } while (0) static volatile bool m_finished = false; static uint8_t m_buffer_tx[QSPI_TEST_DATA_SIZE]; static uint8_t m_buffer_rx[QSPI_TEST_DATA_SIZE]; static void qspi_handler(nrf_drv_qspi_evt_t event, void * p_context); static void configure_memory(void); void main_memory_setup(void){ } void main_memory_start(void){ } void main_memory_tests(void) { uint32_t i; uint32_t err_code; err_code = NRF_LOG_INIT(NULL); APP_ERROR_CHECK(err_code); NRF_LOG_INFO("" "QSPI write and read example using 24bit addressing mode"); srand(0); for (i = 0; i

forum

10/21/2021

Problem with OTA DFU using nrfutil

I would like to perform a OTA DFU in a nRF52840 DK using nrfutil. For that, I'm using the example that is in SDK/examples/dfu/secure_bootloader/pca10056_s140_ble in the target. Here are the commands I use to build the.zip and to perform the DFU: nrfutil pkg generate --hw-version 52 --application-version 1 --application nrf52840_xxaa_s140.hex --sd-req 0xCA --key-file private.key app_dfu_package.zip nrfutil dfu ble -ic NRF52 -pkg app_dfu_package.zip -p COM28 -n "MyDevice" -f However, when trying to perform the DFU, I receive this error: pc_ble_driver_py.exceptions.NordicSemiException: Extended Error 0x07: The array of supported SoftDevices for the update does not contain the FWID of the current SoftDevice. How could I solve this problem? I'm using SDK 17.0.2 (softdevice s140_nrf52_7.2.0) and Keil5 as IDE. Any help would be appreciated.

forum

10/21/2021

nRF21540 Dev Kit setup

Hi, I'm attempting to use an nRF21540 to boost the range of a BLE Beacon, and I'm running into a lot of trouble getting the Eval/Dev Kit set up. First off, is there any documentation specific to the Dev Kit? I was able to find the nRF21540 PS, but I get the feeling there are some intricacies of the Dev Kit that I'm missing. The paper that came in the box with my order implies I should go to nordicsemi.com/start21540db , but that appears to be a dead link. I'm running into a few issues and have several questions: Are there any differences between the PCA11012 and the PCA10056? They seem to be the same if the nRF21540EK isn't plugged in, but I want to confirm. I tried to use the pin #defines from pca10112.h in SDK17.1.0, but they don't seem to match the GPIO labels printed on the

forum

10/21/2021

BLE NUS and Secure Bootloader

Hello, I'm using the secure bootloader example (examples/dfu/secure_bootloader/pca10056_s140_ble, from SDK 17.1), and would like to enter the bootloader from my application, which uses the Nordic UART Service. I'm looking for a way to enter the bootloader from my application with some function calls, without using the Buttonless DFU Service. I enabled NRF_BL_DFU_ENTER_METHOD_GPREGRET in sdk_config.h in the bootloader code. I tried doing: //Set register to inform bootloader to stay in bootloader and not skip to application nrf_power_gpregret_set(BOOTLOADER_DFU_START); //Soft reset of system sd_nvic_SystemReset(); Stepping through the debugger, it seems I'm getting an error in the function: nrf_power_gpregret_set(BOOTLOADER_DFU_START); But I don't know what the error is. I'm using nrf52840 and SDK 17.1.0. Does anyone have a method to enter the bootloader without a button press? Thanks!

forum

10/21/2021

Can nRF52832/ Nordic thingy 52 recognize multiple device and be able to connect the device at a time

Hell there, I am trying to develop an Android app using nRF52832 chips. I am just planning in a similar situation where I have multiple Nordic thingy 52 devices. How can I program it in such a way that I scan multiple devices and be able to connect each device at a time using BLE. Thanks

forum

10/21/2021

Looking for a automation where in the scripts should be able to send the CCCD within 1 second.

I am looking for a automation where in the scripts should be able to send the CCCD(Client Characteristic Configuration Descriptor) response within one second. 1.Which tool will be the ideal one? nRF connect for desktop or Master control panel or nRF connect Android App. 2.Does all these tools accept .xml file as script? (i have used xml in Android App). 3. From where i can get the default firmware for PCA10040 Board? 4.Lastly how to check the CCCD request using the xml file? Note : I have a Nordic dev board PCA10040, which i think is also known as nRF52 DK) Test setup: Windows 10 PCA10040 dev board BLE Ver: 4.2

forum

10/21/2021

nRF52833 Power Scheme

Hello, For us our IO rail is 1.8V. In this case do you see a big difference in power consumption whether REG1 is in LDO mode or DCDC mode? From 1.8V to 1.3V if in LDO mode the efficiency is about 72% best case. In DCDC mode I don’t see any efficiency plots or a quiescent current in the datasheet (maybe I am just not looking in the right place). But I am thinking it is probably 85% or so. Does this sound about right ? I don't see any significant advantage to using the DCDC for REG1 unless the nRF is in HV mode where the output of LDO0 is much higher than 1.8V. Harry

forum

10/21/2021

Equivalent of NRF_DFU_HW_VERSION in NCS?

Hi, I want to configure the bootloader (MCUBoot on a nrf9160) to reject a new firmware image update if the new image is not suitable for the current hardware (e.g. multiple incompatible generations of board layout). Looking at the nRF SDK docs there is the NRF_DFU_HW_VERSION config option which I believe does this: the bootloader will reject a new image with a non-matching NRF_DFU_HW_VERSION value. What is the equivalent in the nRF Connect SDK? Currently I am using MCUBoot and ideally would be able to find a solution that works with that bootloader (vs. the Nordic Secure Bootloader). Thanks, Robbie

forum

10/21/2021

SPI slave interruption not called after __WFE

Module: nRF52810 SDK: 14.2 Softdevice: S132 v5.1.0 Hi, I modified the serial dfu bootloader exemple to use the SPI slave 0 instead of the UART to communicate between the host MCU and the nRF chip. Everything works fine when i keep the debug messages on with the NRF_LOG_ENABLE define set to 1. When i try to run my code with NRF_LOG_ENABLE set to 0 the nRF chip doesn't respond to SPI transaction anymore.. I suspect the wait_for_event () function below called after bootloader initialization: static void wait_for_event() { while (true) { app_sched_execute(); if (!NRF_LOG_PROCESS()) { #ifdef BLE_STACK_SUPPORT_REQD (void)sd_app_evt_wait(); #else __WFE(); #endif } } } When i remove the __WFE() call or run in debug with probe attached the code runs OK and the MCU get the SPI response. What can i do to have the SPIS interruption triggered even after a WFE call ?

forum

10/21/2021