Using the Rikirobot robot to do the navigation experiment under ROS is careless to burn down the bottom control Panel and buy a new circuit board to start over./ARM-NONE-EABI-GCC/BIN/LD is always present under Ubunt when compiling STM32 source code throughout the merchant: Cannot find-lstdc++ error, which is a link error, is always not connected to libstdc++ when using the ARM-NONE-EABI-GCC compiler. First try using a method that is given online, The
Turn from: http://www.ichanging.org/stm32_usart.html
Although the serial communication in today's computer use fewer and less, because of its communication rate, distance has not adapted to the requirements of the PC, replaced by a USB port. But in the embedded field, Usart is still widely used. Stm32 can provide a maximum of 5-way serial port, there is a fractional baud rate generator, support synchronous single line communication and Half-duplex si
Today there is nothing to do, think that the small project running a lot of tasks, coupled with STM32 can not run Linux and other large systems, I think ucos should be good. On the internet to find a stm32 transplant data is really a lot of ^ ^. So from the internet down a transplant good stm32 source code package, the inside of the source code, to run the task t
First, in the STM32, there are five clock sources for HSI,HSE,LSI,LSE,PLL.
The ①HSI is a high-speed internal clock with an RC oscillator at a frequency of 8MHz.
The ②HSE is a high-speed external clock that can be connected to a quartz/ceramic resonator or to an external clock source with a frequency range of 4mhz~16mhz.
The ③LSI is a low-speed internal clock, an RC oscillator with a frequency of 40kHz.
The ④LSE is a low-speed external clock with a qua
STM32 Timer PWM mode input capture
The timers in the Stm32, in addition to the TIM6 and TIM7, have input capture capabilities for other timers. This mode is usually used in the calculation of the input signal frequency frequency, the duty ratio duty, the high and low pulse width, has the very wide use.
STM32 input capture, simply means by detect
Example: STM32 F 103 C 8 T 6
"F" that one refers to the product type, now it seems that only the general type is "F"
"103" refers to the product sub-series, 101 = basic type, 102 = USB BASIC, USB 2.0 full-speed device, 103 = enhanced, 105 or 107 = Interconnect type
"C" that refers to the number of pins, t=36 feet, c=48 feet, r=64 feet, v=100 feet, Z = 144 feet
"8" refers to the size of Flash, 4=16k,6=32k,8=64k,b=128k,c=256k,d=384k,e=512k
"T" m
address is a and its bit number is n (0 The address in the alias area is:Aliasaddr = 0x42000000 + (a‐0 x 40000000) * 8 + n) * 4 = 0x42000000 + (a‐0 x 40000000) * 32 + N * 4In the above formula, "* 4" indicates that a word is 4 bytes, and "* 8" indicates that one byte contains 8 bytes.*/// Convert "bit with address + bit serial number" to an alias address macro# Define bitband (ADDR, bitnum) (ADDR 0xf0000000) + 0x2000000 + (ADDR 0 xfffff) // Convert the address into a pointer# Define mem_addr
How to configure data transmission using printf in stm32 Serial Communication (Development Environment Keil rvmdk)It is very convenient to use printf to send data in the stm32 serial communication program. You can always encounter problems when using it at the beginning. The common problem is that you cannot enter the main function when accessing the hardware. In fact, you only need to simply configure it.T
(1) Open the main interface of keilmdk and you will see a default project in the project. Click the project name and select project> close project to close the project! In this way, the entire MDK is empty. Next we will create our project template.
(2) Before creating a project, we recommend that you create a directory under a directory on your computer. All the projects created later can be placed under this directory. Here, we create a directory named development code.
(3) Click the "project"
Generally, after the stm32 project is compiled using Keil, the output information appears under the build output column of Keil, showing the code size ro-data, RW-data, and Zi-data. Generally, others do not care much about the size.
Out of curiosity, I gave an introduction to these segments on Baidu. I quoted the introduction from http://mcuos.com/thread-2843-1-1.html:
Arm Program CompositionThe "arm program" mentioned here refers to the program being
The stm32 series CPU has up to 8 timers;
1. Among them, tmi1 and tim8 are advanced timers that can generate three pairs of PWM complementary outputs, which are commonly used in the drive of Three-Phase Motors. Their clock is generated by apb2 output;
2. The other six are common timers, and the clock is generated by the apb1 output;
Timer function:
1. Timing function 2. Counting Function 3. Input capture 4. Matching output 5. PWM pulse wave outputOverv
1. bkp can be used to save data
Bkp contains 42 16-bit registers that can store 84 bytes of content. They are powered by vbat for dimension mounting.
2. Data stored in bkp can be destroyed (if someone wants to maliciously obtain the data, it is more important to lose it than to protect it ). Stm32 provides a mechanism called tamper. Intrusion detection, which occupies an external pin (pc13 ).
3. If no intrusion detection function is required, the exte
DMA:
1. Why can I configure the I/O port to enable the input mode when I/O port is used to output the converted analog signal through the I/O port?
PS: The stm32 Manual defines that pa4 and pa5 are connected to the dac1 channel and the dac2 channel respectively;
Dma1 and dma2 use the following channels:
How is DMA used to transmit waveform data from memory with DAC? :
/* Configure dma2 */Dma_initstructure.dma_peripheralbaseaddr = dac_dhr12rd_address
Stm32 port notes:
In the project configuration, remember to add include paths, debug selects the corresponding download loader according to the compiler used, and utilities selects the corresponding download loader.
Compilation error after Project Build: STM32-uCOSii.sct (7): Error: l6236e: No section matches selector-No section to be first/last.
Please refer to the following link for more information: h
In the Stm32 can filter configuration, the document indicates that the 2-bit 16-bit filter-identifier masking mode is configured asBut in actual use, this mode of configuration of the register simply can not achieve the desired filtering purposes, I have been tested to determine that the St's document should be wrong, the correct configuration is as followsI don't know if there's a correction in the errata, I don't see errata.Can filter 16-bit identif
Today in the commissioning of a company's products when the 8M crystal oscillator was used up, so found a 16M replacementThe pit daddy's right here, obviously already has the clock to follow the clock tree to configure, but the serial port and so on peripheral has been unable to work normallyTossing the whole afternoon, finally found this man's article http://www.eeworld.com.cn/mcu/article_2016101130348.htmlThe code for 91-97 lines in Stm32f10x.h is as follows:#if !defined hse_value #ifdef stm
Serial peripheral interface (SPI ). Initialization steps:1. Connect to the SPI peripheral clock and set it through RCC-> apb2enr.2. Connect the peripheral clock of the reused gpio, which is also set through RCC-> apb2enrFor more information about how to connect the gpio clock, see section 8.1.4 of the stm32 reference manual.As mentioned in the manual: For the multiplexing output function, the port must be configured as the multiplexing output mode (pu
degrees on the right or hit 30 degrees on the left. When you return to the rudder, the response is very slow. You also need to add 50 to 60 to start the first time to return to the rudder. Then it is normal.
I'm going to change the steering gear. Let's try it.
Question 3:
After the camera adds a filter, the camera automatically enters the white balance adjustment. Remove the filter, adjust the white balance, and then put on the filter.
Software problems:
Question 1:
Problem: The Code of each mo
The stm32 chip manual shows clearly that there are four clock sources:
1. HSI (Internal High-Speed clock 8 MHz) provides a clock source that supports BIT system clock
2. HSE (external high-speed clock) provides system clock and RTC clock source
3. LSE (low-speed external clock 32.768 kHz) can provide a clock source for rtc
4. LSI (low-speed internal clock) can provide the clock source for the independent watchdog
First, let's analyze the database fu
For a few days, I used QT to write a serial IAP tool.
Before use, you need to convert axf to a binfile. You can use the fromelf of Keil to produce binfiles. Load the file, open the serial port, and click Download.
Tool features: 1 K is used to send files. Less than 1 K, complete 0xff to 1 K at the end
Transfer in the following format
Data_len_l data_len_h data (no more than 1 k) index_l index_h CRC
2b Data Length
Valid data up to 1 kb (real burned data)
2b Data Index (indicating the numbe
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.