Link from-electronic pioneer (http://www.dz863.com /)
1. Some common abbreviations and explanations of ARMMSB: the highest valid bit;LSB: minimum valid bit;AHB: advanced high-performance bus;VPB: a large-scale peripheral bus connecting the peripheral functions of the chip;EMC: external memory controller;Mam: Memory acceleration module;VIC: vector interrupt controller;SPI: full-duplex serial interface;Can: controller LAN, a serial communication protocol;PWM
1. Some common abbreviations and explanations of ARM
MSB: the highest valid bit;
LSB: minimum valid bit;
AHB: advanced high-performance bus;
VPB: a large-scale peripheral bus connecting the peripheral functions of the chip;
EMC: external memory controller;
Mam: Memory acceleration module;
VIC: vector interrupt controller;
SPI: full-duplex serial interface;
Can: controller LAN, a serial communication protocol;
PWM: pulse width modulation;
TM: Embedded
The previous look at the Linux drive related books, vaguely remember the physical address has dynamic mapping and static mapping, when the write driver is thinking of their own writing, so a hands-on look at the dynamic mapping good, on their own drive using dynamic mapping, the register address mapped to memory, that is called Ioremap function. In the single-line combat time ioremap really good, do not need to change the other parts of the kernel, directly to the physical address you want to ma
1. Control the buzzer sound by writing a specific value to the register.2, in the encounter can not uninstall the Linux driver by directly modifying the linux drive corresponding memory address to remove the Linux Drive to avoid restarting the machine trouble. 3, through different source code files to store different function codes to facilitate the classification and management of code.4, Main.c is The main program of Linux driver. 5. Initialize Linux DriversStatic int _init main _init (void)6
Kernel build, kernel
If necessary, patch kernel: Download patch:
Wget https://www.kernel.org/pub/linux/kernel/projects/rt/3.18/patch-3.18.17-rt14.patch.gz // note patch and patchscd linux // kernel source code root directory zcat .. /patch-3.18.17-rt14.patch.gz | patch-p1 // patch, if .bz2 compression format, use bzcat; in the source code root directory of the upper directory, patch-p0
Modify the configuration on the existing system:
Make mrproper // clear scp pi @ raspberrypi:/proc/config.gz.
Ismanager:noHere we have a set of interesting but still empty swarm clusters.We also need to understand the new abstract definition of service in Docker 1.12. You may have noticed the Docker Service command in the previous output. A docker service is a piece of software that runs in a container and is responsible for providing the outside world with a "service" running within a swarm cluster.Such a service can consist of a single or multiple sets of containers. In the latter case, we can ensure
installation method. What does it do? It's easy. He downloads a series of packages we put on GitHub to your machine and installs them. There aren't many packages, just right.
Simplified steps1. Insert the SD card and install arch Linux on the SD card.
2. start your Raspberry Pi, find its IP address (how to set the [set Raspberry Pi IP address]), and log on to the root account through SSH. The default root password of arch Linux is root, if you have modified the root password, use the modified
BoardThe following command compiles the firmware that generates the Raspbian (posix_pi2_release) version.cd Firmwaremake posix_rpi2_release # for cross-compiler buildThe "Mainapp" executable file is located under directory Build_posix_rpi2_release/src/firmware/posix. Copy it to RPI (replace YOUR_PI with your RPI's IP or hostname, about how to access your RPI, see the introduction)Then use the following com
version, right clone or Download, click Download Zip to download.can also be installed directly online:sudo Install build-essential Gitgit clone git://github.com/raspberrypi/tools.gitCross-compiling tools for other platforms please Google yourself.3. Install the cross-compilation tool3.1 DecompressionDownload the completed file for Tools-master.zip, you can directly right-click Extract decompression, you can also unzip decompression to the new RPI fo
serial port, you can view Neo's IP address from the router. Assuming the IP address is 192.168.100.106, we can telnet to Nanopi neo via SSH. I use the SECURECRT 7.3 login Here, this time we log in with the root account, and the login is shown in Figure 1.12 after success.
Figure 1.12 Nanopi neo via ssh login Ubuntu Core
2.6 View System Status
We can use the top command to view the operation of the system, press "1" to expand CPU statistics. As shown in Figure 1.13, you can see that the CPU is r
1. Preparatory work:
1.1 Development environment System Ubuntu 16 (64-bit)
1.2 Download Source: Https://github.com/raspberrypi
Linux: Raspberry Pi kernel source
Tools: Raspberry Pi cross-compilation tool
Download mode:
(1) Web download
Download zip directly
(2) Command download
git clone--depth=1 Https://github.com/raspberrypi/linux
git clone https://github.com/raspberrypi/tools
Save path is ~/raspberry/under 2. Determine version
2.1 View information about the current Raspberry Pi compiler
root
"1" Get the source codeDownload the SQLite source package and unzip it in the free user folder. "SQLite Download Link" July 2014 the latest SQlite3 source package name is sqlite-autoconf-3080500.tar.gz."2" Create a new folderCreate a new directory Opt/sqlite-rpi in the user directory. This directory is used to store files that are obtained after cross-compilation mkdir-p Opt/sqlite-rpi"3" Write an installat
After reading the eighth chapter of this book, I Learned:
A buzzer is a hardware device that comes with a development board that controls the sound of a buzzer by writing a specific value to the register. The PWM driver differs from the LED driver, which consists of multiple files that are compiled at compile time.
The buzzer is also called PWM (pulse width modulation), and the basic principle
The PWM,PWM driver can be opened and stopped by having an I/O command consisting of 3 files: pwm.c, Pwm_fun.h, pwm_fun.c. Where PWM.C is the driver main program. Pwm_fun.h refers to the corresponding header file and defines some macros. The Pwm_fun.c file contains two functions (Pwm_start and Pwm_stop) that open and stop the PWM. After running, from the contents
Brushless motor, and has the characteristics of simple control, large power, with 5V power output and so on. With the MPU-6050 integrated 3-axis gyroscope, 3-axis accelerator, and a Digital motion processing (dmp:digital motion Processor) hardware acceleration engine that connects other card accelerators, magnetic sensors, or other sensors via a second i²c port, The system uses MPU-6050 internal DMP to calculate the four-dollar number, through the formula converted to Euler angle, through the C
(tim1, enable );}
Step 5. Interrupt Service subroutineVoid tim1_cc_irqhandler (void){2017-11-capture;If (tim_getitstatus (tim1, tim_it_pc3) = set){Tim_clearitpendingbit (tim1, tim_it_pc3 );Capture = tim_getcapture1 (tim1 );Tim_setcompare1 (tim1, capture plus 2000 );// Here is an explanation:// Increase the value of timereccr1 by 2000, so that the next tim event requires 2000 pulses,// Another method is to reset the Pulse counter.// Tim_setcounter (tim2, 0x0000 );}}
For Tim operations, note that
adopts three-phase PWM control scheme of Y-type Permanent Magnet Square wave brushless motor, and the power-on mode is power-on. Figure 1 shows the schematic diagram of the control system. It adopts full digital three closed loop control. Among them, the current ring uses PI AdjustmentThe PID control algorithm of integral separation is adopted for the speed loop, and the output polarity determines the direction of forward and reverse, so that the fou
Introduction to advanced clock control timer tim1 tim8:
The advanced control timer of ikef4 contains an automatic reload counter. The input of the counter is a system clock that is pre-divided.
This timer can be used for multiple purposes, including vehicle input signal length (input capture mode) or waveform output (output capture, PWM, complementary PWM output with dead zone insertion)
The pulse le
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.