当前位置:网站首页>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 .
边栏推荐
- Exercise: store department information
- Day 014 2D array exercise
- [academic related] why can't many domestic scholars' AI papers be reproduced?
- Unity - default rendering pipeline - sculpt shader
- [beauty of software engineering - column notes] "one question and one answer" issue 2 | 30 common software development problem-solving strategies
- "Swiss Army Knife" -nc in network tools
- Unity beginner 4 - frame animation and protagonist attack (2D)
- Some simple uses of crawler requests Library
- Alibaba political commissar system - Chapter 1: political commissars are built on companies
- Jiamusi Market Supervision Bureau carried out special food safety network training on epidemic and insect prevention
猜你喜欢

Unicode私人使用区域(Private Use Areas)

Do you want to meet all the needs of customers
![[lecture notes] how to do in-depth learning in poor data?](/img/7d/5767c078600bd88b7d2146069f4f40.jpg)
[lecture notes] how to do in-depth learning in poor data?

Tle5012b+stm32f103c8t6 (bluepill) reading angle data
![[beauty of software engineering - column notes] 26 | continuous delivery: how to release new versions to the production environment at any time?](/img/65/79f876b62fa3db421e5038a2445b83.png)
[beauty of software engineering - column notes] 26 | continuous delivery: how to release new versions to the production environment at any time?
![[beauty of software engineering - column notes] 25 | what methods can improve development efficiency?](/img/c8/c2d45abbf36b898040f9f1cf6274ff.png)
[beauty of software engineering - column notes] 25 | what methods can improve development efficiency?

Dynamic thresholds buffer management in a shared buffer packet switch paper summary
![[deep learning] data preparation -pytorch custom image segmentation data set loading](/img/7d/61be445febc140027b5d9d16db8d2e.png)
[deep learning] data preparation -pytorch custom image segmentation data set loading

Why don't you like it? It's easy to send email in cicd

Effective learning of medical image segmentation annotation based on noise pseudo tags and adversarial learning
随机推荐
C language data type
[cryoelectron microscope] relation4.0 - subtomogram tutorial
As long as flutter is data, it will be judged null
C# 之 volatile关键字解析
【NOI模拟赛】计算几何(凸包,暴力,并查集)
[memo] summary of the reasons why SSH failed? Remember to come next time.
Realize the effect of changing some colors of a paragraph of text
Shell script - global variables, local variables, environment variables
[paper reading | cryoet] gum net: fast and accurate 3D subtomo image alignment and average unsupervised geometric matching
[beauty of software engineering - column notes] 22 | how to do a good job in technology selection for the project?
Research on autojs wechat: the final product of wechat automatic information sending robot (effective demonstration)
阿里巴巴政委体系-第一章、政委建在连队上
Day 014 2D array exercise
Simplefoc+platformio stepping on the path of the pit
Rotation in model space and rotation in world space
QT connects two qslite databases and reports an error qsqlquery:: exec: database not open
Effective learning of medical image segmentation annotation based on noise pseudo tags and adversarial learning
Keyboard processing in jetpack compose
Autojs微信研究:微信自动发送信息机器人最终成品(有效果演示)
Go 事,如何成为一个Gopher ,并在7天找到 Go 语言相关工作,第1篇