The board has been made, and its function is: accurate positioning using sensors and GPS. The board uses the debugging STM32F4 VCP, which is USB to serial port. The problems and solutions that occurred when transplanting ST official programs are listed below:
1. Because the download interface is 5-pin SWD, and the downloader is st-link v2 ST-LINK/V2 . First of all, we need to figure out how to connect the SWD interface and st-link v2. The key point here is to connect the VCC pin of SWD to the first pin of st-link v2. If it is not connected in this way, an internal command error will occur. This error sometimes occurs because of a reset problem. If the download can be carried out normally, then the following problems will be easy to solve! I was entangled here for a long time.
2. Check whether the crystal oscillator of the board is oscillating, and measure it with an oscilloscope. The modification places are HSE_VAlUE and PLL_M in system_stm32f4xx.c.
3. Because the default USB configuration of ST company uses high-speed USB port, we need to remove the macro definition of HS in the c/c++ option of keil options. As shown below:
4. When configuring your own serial port, pay attention to which serial port to use, the baud rate (LINE_CODING linecoding), the serial port clock enable function, and the serial port interrupt. There must be an interrupt program. If there is no interrupt program, the program will freeze when it runs to B.ENDP ALIGN of startup_stm32f4xx.s.
5. If the program cannot run after jumping to 0x08001460 BEAB BKPT 0xAB, you need to set the microlibrary Use MicroLIB.
Previous article:STM32F4 serial IAP firmware update
Next article:STM32F4 TIM1 7-channel PWM signal output
Recommended ReadingLatest update time:2024-11-16 14:34
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- MSP432P401R manually realizes the breathing light
- 【NXP Rapid IoT Review】 + WEB IDE usage experience and improvement suggestions
- Can you please help me analyze the principle of this circuit? Thank you.
- EEWORLD University Hall----Live Replay: ON Semiconductor's advanced packaging and driver technologies help silicon carbide energy applications
- EEWORLD University Hall----Robotics Visual Control Matlab Simulation
- MSP430FR2111 cannot send data
- EEWORLD University Hall----Intelligent Building Wireless Solutions
- [ATmega4809 Curiosity Nano Review] Serial port key control light (IoT Led Part 1)
- Can STM32G431 perform "bit-band operation"?
- Big news - TI launches the smallest data converter with high integration and high performance!