laitimes

AT32F microcontroller

author:APPLE频道

Loading...

I. Preface

  The purchased AT32F421 MCU arrived. Let's put this microcontroller to the test. Test to see if it is compatible with ST. Is there consistency in including hardware and software development?

AT32F microcontroller

2. Circuit design

  Design the test board. AT32F421 components are exported from the Jialichuang website. Software download and debugging via SWD port. Add an LED as a work indicator. This circuit board can test whether the MCU can download the software, and test whether the MCU software is working properly through the LED and serial port. Design a single-sided circuit suitable for one-minute plate making.

AD\Test\2024\April\TestAT32F421G8U7.PcbDoc
AT32F microcontroller

▲ Figure 1.2.1 Test circuit board PCB

AT32F microcontroller

▲ Figure 1.2.2 Schematic diagram of the test circuit board

  Get the board after a minute. The board is perfectly made.

AT32F microcontroller

  The circuit board is soldered, cleaned and then debugged. Use the probe clip to connect the ST-LINK to the circuit. Test if you are able to connect. Unfortunately, ST-LINK is not able to debug microcontrollers via the SWD interface.

AT32F microcontroller

  Re-soldering the chip. TEST THE ST-LINK READ AGAIN. This time, it can be connected. The type of microcontroller shown is F10X series. FOR THE DATA IN FLASH, ALL READS ARE 0, WHICH IS DIFFERENT FROM ORDINARY MICROCONTROLLERS THAT READ 0xff DATA BY DEFAULT IN FLASH. Therefore, it is not yet possible to determine whether the microcontroller can be programmed.

AT32F microcontroller
AT32F microcontroller

  There is a problem with programming directly. Let's do a full erase of the chip first. Then, download one of the previous test programs. You can see that there is no problem with the whole downloading process.

AT32F microcontroller

  In the Keil environment, the program download and debugging of the microcontroller can be done via ST-LINK. After the program is downloaded, observe whether the microcontroller is running. Unfortunately, the microcontroller was not able to light up the LEDs in the end, nor did it send any information through the serial port.

AT32F microcontroller

※Summary※

  This article tests the design of AT32F421 microcontroller minimum, which can be programmed and debugged using ST-LINK. However, it is not possible to directly download the original F103 microcontroller program framework generated by CubeMX. This shows that in terms of software, the AT32 microcontroller cannot directly run the program of the ST microcontroller.

AT32F microcontroller

Resources

[1]

Data sheet for AT32F421 series: https://www.arterytek.com/download/DS/DS_AT32F421_V2.02_CH.pdf

[2]

Technical Manual for the AT32F421 Series: https://www.arterytek.com/download/RM/RM_AT32F421_CH_V2.03.pdf