Compiler-Precautions for IAR configuration when MCU runs at 32 kHz

Source: Internet
Author: User

When the MCU clock speed is switched to 32 kHz, IAR can download the Code but cannot debug it. the following error occurs.

It indicates that the IAR cannot establish a connection with the target MCU. The specific cause is that the communication speed of SWD is much higher than the MCU clock speed, which leads to communication failure.

IAR can be debugged in this case, but you need to change the following:

Options-> J-Link/J-Trace-> Setup-> JTAG/SWD speed-> Fixed 32Hz. The default value is Auto 32 KHz. As shown in:

 

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.