当前位置:网站首页>STM32 MDK (keil5) contents mismatch error summary
STM32 MDK (keil5) contents mismatch error summary
2022-07-29 08:05:00 【BobBobBao】
STM32 Download validation error
Hardware 、 Software background
- ODrive Control panel :ODRIVE V3.6-56V
- Firmware version :fw-v0.5.1( The updated firmware is no longer completely open source , use odriveTool When an error )
- Equipped with dissipation resistor :2Ω
- Encoder :TLE5012B
- The motor :X2212-13 ( Install the radial magnet )
- KV:980
- Outer rotor
- Number of slots :12N14P
- Interphase internal resistance :92mΩ
- No load current :0.6A
- Maximum continuous power :385W
- Maximum continuous current :26A/30S
- It is recommended to use current :20~30A
- Downloader :
- STLink/V2
- PWLINK2
- USB To serial port :CH340
Problem description
test ODrive The program , The configured ODrive circuit 、 Motor parameters 、TLE5012 Magnetic encoder 、 Controller configuration 、 Trapezoidal acceleration and deceleration . Reference resources ODrive Step on the pit ( Two )3508 Motors and TLE5012B Magnetic encoder parameter configuration 、 calibration 、 Position closed-loop mode rotation motor (TLE5012B-E1000). When the configuration is complete , Start motor and encoder calibration , Input motor parameters after calibration ,odrivetool No response .
# Calibrate the motor parameters ( The motor will beep after operation ~ A voice )
odrv0.axis0.requested_state = AXIS_STATE_MOTOR_CALIBRATION
Perform the following tests :
- ODrive Power off and restart the circuit board ,odrivetool No response
- sign out odrivetool,ODrive After the circuit board is powered off and restarted , Restart odrivetool: Prompt to connect the device , explain ODrive Circuit board and odrivetool No connection established , There's something wrong with the hardware

- sign out odrivetool,ODrive The circuit board is powered off , Pull out USB head , Reconnect the USB,ODrive Power on the circuit board , open odrivetool. Still can't connect
- Check device manager , Plug USB head , The device manager did not respond . It means that the hardware is not started at all USB The driver .
- use STM32CubeProgrammer+STLink Back to the STM32F405 Burn firmware , Click burn , The software will flash back . Replace PowerWriter+PWLINK2 to STM32F405 Burn firmware , Burn successfully . Re plugging USB Head test , The device manager is still unresponsive .( doubt MCU Something went wrong. )
- Use... Again PWLink2 Download program , Unable to connect to the chip
- Write the simplest flash program , use MDK(keil5)+ STLink To test the burning program : Report errors Contents mismatch at: 0800D03AH (Flash=FFH Required=C2H) !Verify Failed!
- The same procedure , use MDK(keil5)+ PWLink2 Try downloading burning , Report the same mistake

error analysis
Contents mismatch at: 0800D03AH (Flash=FFH Required=C2H) !
Verify Failed!
This error explains STLink Download the program to STM32 In chip , When the download is complete STLink Would be right STM32 In chip Flash The content of ( Hexadecimal ) And MDK Corresponding .bin Verify the contents of the file (Verify). Found during verification STM32 chip Flash Address 0800D03AH The content of the section is similar to .bin The documents are inconsistent ,Flash=FFH( Empty space ,Flash After erasing it is FF), And the correct content is Required=C2H. So there's an error . To solve this problem, I tried the following methods , It is currently invalid :
stay MDK in ,Options for target–>Debug–>Settings–>
Flash Download in , Get rid of Verify, No validation . Although it won't be wrong , But use oscilloscope to test , The program is still not running . This is obviously a cover up o(╥﹏╥)o
Reference resources use KL16 Chips appear in other people's programs BUG_ resolved Ideas provided :
Reset circuit hardware error ? When downloading and burning , Try resetting several times . No effect
Erase the whole Flash. The test has no effect
use STM32 Cube Programmer Read STM32 chip Flash Chinese content , use PowerWriter Read .bin/hex file , Compare the differences .

keil Version is too low ? My current test is keil V5.23.0.0+STM32F4x_DFP V2.16.0;keil V5.36.0.0+STM32F4x_DFP V1.0.8, Neither version can be downloaded . Replace STM32F103 The chip can be burned normally , It shouldn't be about software 、DFP Package problem


Reference resources Keil : Contents missmatch at:08000E84H Verify Failed! Ideas provided :
- Whether the chip power supply pin is added with decoupling capacitance ? added
- Whether the message wave is too large , Is stable ? Stable
- Whether the circuit is faulty ? Replace F103RET6, The test can be downloaded and used normally
- The downloader cable is too long ( May cause voltage 、 Communication is unstable )? Lead wires should be as short as possible , Problems still exist

5. MDK in Options for target–>Target–>Memory Problems setting up the ? The whole project uses STM32CubeMX Generated , Default settings used , Tried two IRAM Address , But the problem remains 
summary
STM32 There is a problem downloading and burning , Direction of investigation :
- Burner problem : Confirm the connection of the burner , Replace the burner / Connecting line
- STM32 Chip power supply : Test the power supply pin for power supply 、 Ripple size 、 decoupling capacitors
- STM32 chip Flash Download setup problem : Check Target Tab IROM、RAM Address segment , Check Debug Tab erase full chip,erase sector,programming algorithm
- IDE Software version problem :MDK( Or other software ) edition 、STM32 PACK Package version
- chip Flash damage , Replace the chip
At present, all the problems you can think of have been tested , Only buy a new chip, replace it and try again . But the specific problem is still not found , I always think it's a hidden danger .
边栏推荐
- [cryoelectron microscope] relation4.0 - subtomogram tutorial
- [lecture notes] how to do in-depth learning in poor data?
- [skill accumulation] presentation practical skill accumulation, common sentence patterns
- C# 之 volatile关键字解析
- 阿里巴巴政委体系-第四章、政委建在连队上
- [cryoEM] Introduction to FSC, Fourier shell correlation
- Some tools, plug-ins and software links are shared with you~
- How to draw an excellent architecture diagram
- Unicode私人使用区域(Private Use Areas)
- 网络安全之安全基线
猜你喜欢
![[beauty of software engineering - column notes] 22 | how to do a good job in technology selection for the project?](/img/1a/72bfb3fef59c54188a823ead3a5390.png)
[beauty of software engineering - column notes] 22 | how to do a good job in technology selection for the project?

Realize the effect of changing some colors of a paragraph of text

The smallest positive number that a subset of an array cannot accumulate

Unity beginner 4 - frame animation and protagonist attack (2D)
![[cryoEM] Introduction to FSC, Fourier shell correlation](/img/01/6a4f6041444abfd1d3ca7e0c14b524.png)
[cryoEM] Introduction to FSC, Fourier shell correlation

How to draw an excellent architecture diagram
![[flask introduction series] installation and configuration of flask Sqlalchemy](/img/62/3d108561f2cfeb182f8241192a79ba.png)
[flask introduction series] installation and configuration of flask Sqlalchemy

亚马逊测评自养号是什么,卖家应该怎么做?
![[cryoelectron microscope | paper reading] interpretation of sub fault average m software: multi particle cryo EM refining with M](/img/5e/69987afcd1e50ba37bc49441dd3a50.png)
[cryoelectron microscope | paper reading] interpretation of sub fault average m software: multi particle cryo EM refining with M

Jianmu continuous integration platform v2.5.2 release
随机推荐
Dynamic thresholds buffer management in a shared buffer packet switch paper summary
[beauty of software engineering - column notes] 29 | automated testing: how to kill bugs in the cradle?
Volatile keyword parsing of C #
C language interview preparation I (about understanding Department)
[cryptography experiment] 0x00 install NTL Library
Effective learning of medical image segmentation annotation based on noise pseudo tags and adversarial learning
[skill accumulation] presentation practical skill accumulation, common sentence patterns
Dynamic Thresholds Buffer Management in a Shared Buffer Packet Switch论文总结
QT connects two qslite databases and reports an error qsqlquery:: exec: database not open
Resize2fs: bad magic number in super block
My entrepreneurial neighbors
[paper reading] tomoalign: a novel approach to correcting sample motion and 3D CTF in cryoet
阿里巴巴政委体系-第四章、政委建在连队上
Some thoughts on growing into an architect
[dry goods memo] 50 kinds of Matplotlib scientific research paper drawing collection, including code implementation
Processes and threads
[cryoelectron microscope] relion4.0 pipeline command summary (self use)
Jump from mapper interface to mapping file XML in idea
Greenplus enterprise deployment
In an SQL file, a test table and data are defined above, and you can select* from the test table below