Duanxx stm32 learning: Error no cortex-M device found in JTAG chain cause and Solution

Source: Internet
Author: User
Tags jlink

I reported this error when I gave the stm32 program today. I searched the internet for a long time and found a reason and a solution. The online statement is as follows:

 

Cause:

Burned programsDisable the JTAG function.,JTAG interfaces are reused..

 

Solution 1:

Find boot1 and boot0, lower boot1 and boot0 to 3.3 V, and download a program through the serial port. This program does not close JTAG, and then you can normally re-use JTAG, set both boot0 and boot1 to a lower value.

 

Solution 2:

The JTAG port function can be restored when the chip code is erased. Start with -- segger -- jlink arm -- open J-flash AR (find the installed J-Link driver, I am using segger's jlink connector, installed with the v4.12 driver)-OK-then select the target option-connect-and then select eraser chip.





The above is very reasonable, but I have not tried the above method. I found the solution directly on the official website. The official website explains the following:





The preceding figure shows that the JTAG pin is occupied by programs and can only be regarded as "Debug interface is notworking". The preceding solution is to download programs through serial ports, which is troublesome. Solution on the official website:SWD download, See.

Note that after selecting the SW mode,SW device should be identified by a deviceOtherwise, the connection between the download tool and the stm32 is incorrect.



Duanxx stm32 learning: Error no cortex-M device found in JTAG chain cause and Solution

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.