Page 1
AT32F421 Application note AN0024 Getting started guide for AT32F421 series Introduction This user manual provides information on how to use AT32F421 MCU for project development in a quickly manner. Applicable products: Part number AT32F421xx 2020.08.17 Rev 1.0.0 www.arterytek.com...
AT32F421 Application note Contents Development environment ..................5 Debug tools ......................5 Programming tools and software ................5 AT32 KEIL and IAR development environment ............6 How to quickly replace SXX ..................8 Enhanced functions of AT32F421 ................ 9 PLL output up to 120 MHz ..................9 Security library protection ..................
Page 3
AT32F421 Application note List of tables Table 1 Document revision history ........................17 2020.8.17 Rev 1.0.0...
AT32F421 Application note Development environment MCU resources download address: Visit Artery website: http://www.arterytek.com Debug tools At present, AT32F421 evaluation board are equipped with AT-Link-EZ debug tool, as shown in the red circle on the left side of the figure below. It can also be dissembled and used separately with other circuit boards, supporting IDE online debugging, online programming, USB-to-serial interface and other functions.
AT32F421 Application note AT32 KEIL and IAR development environment For Keil compiling system, Keil 4.74, 5.23 or above is recommended; The Pack in the Keil_AT32F4xx_AddOn.exe supports Keil_v4, and the Pack in the Keil.AT32F4xx_DFP.1.3.2.pack supports Keil_v5. Both use “double-click” to complete one-click installation.
AT32F421 Application note For IAR compiling system, IAR7.0, IAR6.1 or above is recommended; The Pack in the IAR_AT32F4xx_AddOn.exe supports IAR_v6 and IAR_v7, and uses “double click” to finish one-click installation. When using AT-Link-EZ in IAR environment, select “CMSIS-DAP” in “Debugger”. Figure 5.
Step 1: Based on peripheral specifications, Flash capacity, SRAM size, etc., de-solder SXX32F103 and replace it with the corresponding AT32F421 part no Step 2: Download the latest BSP and PACK file of AT32F421 series Step 3: Update the tool startup file: A.
Enhanced functions of AT32F421 PLL output up to 120 MHz The AT32F421 series embedded a PLL that can output up to 120 MHz clock. The AT32F421 and SXX32 F030 series have the same clock sources and configuration procedures. However, there are some differences related to the product voltage range, PLL configuration, maximum frequency and Flash wait state configuration.
Disable read protection: “enable/disable protection”---“disable-read protection”---“Next”— “Yes”, and then the Flash can be unencrypted. Figure 8. ISP disable read protection Artery ISP Multi-Port Programmer Read protection: “enable/disable protection”---“enable-read protection”---click on “Begin”, and then the program is encrypted. Figure 9. ISP Multi-Port Programmer enable read protection 2020.8.17...
AT32F421 Application note Disable read protection: “enable/disable protection”--- “disable-read protection”—click on “Begin”, then the Flash is unencrypted. The read protection cannot be disabled by the erase operation. Figure 10. ISP Multi-Port Programmer disable read protection 2020.8.17 Rev 1.0.0...
AT32F421 Application note How to distinguish AT and other ICs 2.5.1 Using the UID/PID to distinguish Read the Cortex-M series CPU ID to distinguish M0, M3 and M4 core. cortex_id = *(uint32_t *)0xE000ED00; //read cortex part number if((cortex_id == 0x410FC240) || (cortex_id == 0x410FC241)) printf("This chip is Cortex-M4.\r\n");...
64-bit data to distinguish which type of MCU is. PROJECT ID: the access address is 0x1FFF F7F3 [7:0], which defines the project model of Artery MCU. DEVICE ID: the access address is 0xE004 2000 [31:0], which defines the device model of MCU.
AT32F421 Application note FAQs during download and compiling The program enters Hard Fault Handler at startup 3.1.1 Abnormal circumstances triggering Hardfault The SRAM used exceeds the MCU SRAM size Access data out of boundary System clock setting out of specification Error occurred during download Error: Flash Download failed –...
AT32F421 Application note AT32 resume download When using AT32F421, users may not be able to download the program after the following operations: After the JTAG/SWD PIN is disabled, the program cannot be downloaded and the JTAG/SWD device cannot be found. ...
AT32F421 Application note Revision history Table 1. Document revision history Date Revision Changes 2020.8.17 1.0.0 Initial release 2020.8.17 Rev 1.0.0...
Page 18
Purchasers hereby agrees that Artery’s products are not authorized for use as, and purchasers shall not integrate, promote, sell or otherwise transfer any Artery’s product to any customer or end user for use as critical components in (a) any medical, life saving or life support device...
Need help?
Do you have a question about the AT32F421 Series and is the answer not in the manual?
Questions and answers