2112 views|0 replies

1663

Posts

0

Resources
The OP
 

Analysis of the reasons why Lingdong MM32 cannot be burned [Copy link]

 

There are many reasons why Lingdong MM32 cannot be burned. We analyze it from two aspects: hardware and software:


Hardware reasons:


1. The debugger used does not support debugging and downloading of MM32 MCU. The emulator selection/configuration on IAR/KEIL is incorrect. MM32 MCU has been officially certified by Segger. On the Segger official website, J-Link driver version 6.40 and above supports the MM32 MCU series. MM32 MCU supports MM32-Link, U-link, J-Link, DAP-Link, etc. to access the kernel, peripherals, and FLASH using SWD/JTAG (M3).
2. The minimum system of MM32 MCU is incomplete, and the reset circuit design is wrong, the MCU power supply is abnormal, etc., which will also cause the device to be unable to be recognized. MM32 MCU supports a wide voltage of 2.0-5.5v power supply. When users design the product PCB themselves, it is recommended that users reserve VCC, SWDIO, SWCLK, GND, and NRST five-wire download port mode. Please refer to the demo board for design when designing the circuit.
3. The two pins PA13 and PA14 of SWD are poorly soldered, the external hardware is pulled up or down, the connection with the debugger is incorrect or not connected, etc.

Software reasons:


1. Program download error. MM32 MCU has five series: F, L, SPIN, W, and P. We have different libraries, startup files, and routines for different MCUs. Before downloading the program, please check whether your MCU version model corresponds to the program to be downloaded. For example, MM32F031C6T6 is divided into version q and version n. The two models have different clock domain configurations, so the program cannot be directly shared.

2. The MCU is in read/write protection state. When the MCU is in read protection state, the FLASH space is in write protection state. At this time, the SWD protocol cannot be used to access the core, peripherals, and FLASH, and download and debugging cannot be performed.

3. The MCU is in a low-power state. When the MCU is in a low-power state in different modes, the peripheral area of the MCU will be in a power-off state. The debugger recognizes that the MCU is in a power-off state and cannot be downloaded and debugged.

4. The two pins PA13 and PA14 of SWD are multiplexed as other functions or general IO, and PA13 and PA14 are configured as other working modes. At this time, PA13 and PA14 cannot work normally in SWD mode, and the debugger cannot download and debug through the SWD protocol.

5. An error occurred during program download. Due to reasons such as download speed and debugger version characteristics, an error occurred during the download process, causing the MCU to enter the HardFault state (program runaway), and download debugging is not possible at this time.

This post is from Domestic Chip Exchange
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
Xunwei-IMX6Q development board Android application test-AndroidStudio-recorder test

The supporting materials for this chapter are in the directory of "iTOP-i.MX6 development board data summary (excluding ...

[15th Anniversary] EE DIY--Wireless Multi-channel Serial Port

This post was last edited by RCSN on 2021-6-26 16:28 1. Design Intention Last year, when I was on a business trip, I ne ...

[Runhe Neptune Review] Five PWM

PWM: Pulse Width Modulation It is to periodically control the time (duty cycle) of IO pulling high and low to control th ...

EMC signal integrity test 1---get out of the metaphysics

EMC signal integrity test 1---get out of the metaphysics Whether we enter the industry of electronic engineers from 51 s ...

My own feelings about simulation software

The most annoying thing about using LTspice is that it does not support mixed analog and digital simulation. Although it ...

全志V853 NPU 转换部署 YOLO V5 模型

# NPU conversion and deployment of YOLO V5 model This article takes the YOLO v5s model as an example to detail the conve ...

CUK circuit combined with SEPIC circuit

Dear seniors: It feels like domestic power supply manufacturers are springing up like mushrooms after rain, but most of ...

AD24 Early Access

Automatic equal length effect Before equal length: 764228 Automatic equal length effect: 764229 The new constrain ...

"Electronic Hardware Engineer On-the-job Illustrated Manual Hardware Knowledge" Initial Book 2 Chapter 2

I like the second chapter better after reading the previous ones Let's take a look at the content of this second chapter ...

GPIO lighting in Python on the Allwinner H616 Walnut Pi 1B development board

Introduction Buttons are the simplest and most common input devices. Many products cannot do without buttons, including ...

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list