Objective:NRF51 can support 2.4G-based mutual communication, communication with NRF24LE1, communication with NRF24LU1, and communication with NRF24L01.First, nRF51822 based on 2.4G and nRF51822 communicationWhere nRF51 communicates with each other and is similar to the previous 51 operation Nrf24l01, it involves only a few core functions:
Nrf_esb_init---Initialize an ESB
Nrf_esb_
Recently contact NRF51822, get started or relatively easy. Today found wonderful problem: Download an official Flashwrite program, not only the program is not properly executed, NRF51822 also become brick, Keil MDK can not identify the chip, NRFGO can not recognize the chip.
Without knowing, I burned another board, and still succeeded in changing bricks ...
(1) Keil MDK can not recognize the chip, res
the read operation no problem:Test result: Erase sector after write at least 100ms delay (recommended 120ms), write after read and erase sector after read do not need delay.4.2, Write_before_eraseblock and Read_before_eraseblock delay time difference calculation:With 4.1 understanding.Test Result: Erase block after at least 350ms delay, in order to write effectively! (The latter part is the result of commenting out the 50th line of code)Ps:erase full at least 40s, tested 6 times without errors,
GNU_VERSION := 5.4.1 GNU_PREFIX := arm-none-eabi
4) from Nordic official website under the nrf5x-tools-linux, I download the version is (after decompression also placed in AAAA directory): nRF5x-Command-Line-Tools_9_7_3_Linux-x86_64.tar
5) Download the latest J-link Toolkit J-link software and documentation pack from Segger official website, I am downloading the latest linux-64 bit-deb installation version:
2, compiling and burning write Blink project
1
First, the contents of the experiment:The RTC0 of the configuration NRF51822 has a tick frequency of 8hz,compare0 matching event triggering period of 3 seconds and enables the tick and COMPARE0 interrupts.
TICK interrupt in the drive indicator D1 rollover State, that is, the LED D1 at a rate of 8Hz rollover state
COMPARE0 Interrupt Highlight Indicator D2
Second, the internal RTC structure of nRF5
debugging Bluetooth module Two days, the summary of the debugging ideas and processes, although not mediation, but it is necessary to summarize ideas and procedures, the steps are not, almost will not be debugged, the process is summarized: (1) First is to build a development environment, install Keil software or Nrfgo Studio software. (2) After the environment is set up, download the program, 1. Construction of the development environment
The NRF51822
Rate agent profiles. The characteristic of nRF51822Compatible official Nrf51822-ek PCA10001.·Compatible 2.4 GHz nrf24l series Chip ·Support for Bluetooth low energyCurrent shunt monitor (CSM) for galvanic detection ·PCB Printed Antenna ·Acceleration Meter ·Gyroscope ·Micro Vibration Motor ·Five independent programmable ledTwo user keys · Standard 10pin SWD Debugging interface (normal Jlink) · Support for iOS application
Recently worried about how to download nRF51822 and STM32F405RGT6 in the Xubuntu system, today finally downloaded successfully, recorded the process of resolution.After entering the virtual box VM Bitcraze shared, go to the following directory:Cd/home/bitcraze/projects/crazyflie2-nrf-firmware/We will find the makefile file,#Put your personal build config in config.mk and does not COMMIT it!-include config.mkcload_script? =. /crazyflie-clients-python/b
The previous article analyzed the code of the first 10 basic experiments, starting from here to analyze the next 10 ~First, the PPI principle:PPI (Programmable peripheral interconnect), Chinese translation is a programmable peripheral interconnect.The PPI approach is set up inside nRF51822, allowing interconnection between different peripherals through tasks and events, without the need for CPU involvement.The PPI allows tasks and events to be connect
4-Wire SPI color local brush screen offset solution--I was already on the side of success.Recently in the study of low-speed, lower RAM MCU to drive small LCD or TFT color display to achieve animation effectFirst I use a 16MHz crystal M0 core of the 8-bit microcontroller nRF51822 try to drive a 1.77-inch 4-wire SPI screen (128X160),Found, brush a screen about about 0.8s of time,Specifically included in the "1, a simple
Copyright Notice: This article is for bloggers original articles, reproduced please indicate the author and source. Strong Light Flashlight [ Ekrem Technology-Wireless business unit ]1. nRF51822 Register TypenRF51822 Register and the general microcontroller is different, the nRF51822 register is divided into the following three kinds.
Task: Mission register, which can be triggered by a program or
BLE-NRF51822 tutorial 3-SDK framework profiling. BLE-NRF51822 tutorial 3-SDK program framework profiling nordicBLE technology exchange group 498676838 this lecture introduces the framework and won't involve too much code details. 51822 of the official SDK is actually no framework according to the BLE-NRF51822 tutorial 3-sdk program framework analysis
NordicBLE t
registered user can obtain the current state of the Gpios by reading the status information.1 uint32_t retval;2 uint32_t gpio_pin_state;3 4retval = App_gpiote_pins_state_get (m_example_user_id,gpio_pin_state);5 if(RetVal! =nrf_success)6 { 7 //Failed to read the state information. Take corrective action.8}Else{9 . Ten . One if(Gpio_pins_state 0x00000006)//Checks if pin One and both are set A { - //Take necessary action - } the . - . -}Hist
= Sd_ble_gap_tx_power_set (tx_power_level); App_error_check (Err_code);}The output can be set to the power of accepted values are-40, -30, -20, -16, -12,-8, -4, 0, and 4 dBm/* * @brief Set the radio ' s transmit power.** @param [in] tx_power radio transmit power in dBm (accepted values are-40, 3 0, -20, -16, -12,-8, -4, 0, and 4 dbm). * * @note -40 dbm would not actually give-40 DBm, but would instead be remapped to- dbm.** @return @ref nrf_success successfully changed the transmit power.* @ret
" (0X3E) error occurs if the master was unable to receive a packet from the slave within the first 6 Connection events after sending a connection request. This could is caused a number of reasons. Here is a few possibilities:
The RF performance on one or both devices are not good, so the slave either never receives the connection request, or the M Aster never receives any packets from the slave during the first 6 connection events. The RF performance could is bad due to a failed CRC, col
BLE-NRF51822 tutorial 9-dynamic password (pairing code)
NordicBLE technology exchange group 498676838This tutorial also describes how to modify the dynamic password (actually a pair code) based on the uart example in the sdk. The Uart example is in the following directory:
XXX \ Keil_v5 \ ARM \ Pack \ nordicsemicondu\ nRF_Examples \ 9.0.0 \ ble_peripheral \ ble_app_uart
Some theoretical knowledge about pairing is introduced in the static password tut
BLE-NRF51822 tutorial 5-static password settings
NordicBLE Contact Group 498676838This lecture introduces some related theoretical knowledge about pairing and describes how to set a "static password ".
The program is a uart demo Based on sdk9.0
In addition, the mobile app used for testing is lightblue in IOS.
The correct statement here should be a pair code, not a password. Enter this pair code as an optional part of the pairing process.
Before intr
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.