Files
Artery-AT32-PlatformIO/README.md

37 lines
1.7 KiB
Markdown
Raw Normal View History

2021-11-25 09:05:26 +08:00
# Artery-AT32-PlatformIO
2021-12-06 10:51:26 +08:00
PlatformIO platform and framework for Artery AT32 MCU.
2021-11-25 09:19:39 +08:00
2021-12-06 10:51:26 +08:00
Released specifically for the latest [AT32F403A MCU](https://www.arterychip.com/en/product/AT32F403A.jsp) with Visual Studio Code & PlatformIO.
2021-11-25 09:19:39 +08:00
2021-12-06 10:31:09 +08:00
## Why ST32F403A
![MCU Comparison](Docs/MCU_Comparison.jpg "MCU Comparison")
2021-11-25 09:19:39 +08:00
## Instructions
2021-11-27 07:44:26 +08:00
1) Copy the folders under .platformio into your .platformio folder (ie: C:\Users\(username)\.platformio)
2021-11-25 09:19:39 +08:00
2) Open Visual Studio Code, you should see AT32 Platform among the available platforms
3) Open one of the example folder and try to compile / upload
# Upload on MCU
2021-12-06 10:51:26 +08:00
Available upload methods: serial bootloader (PA9, PA10), dfu
1) Set it in the file platformio.ini in the project folder, complete configuration options as in example project *cmsis-blink*
2021-11-27 07:44:26 +08:00
2) Run the Upload
2021-11-25 09:19:39 +08:00
2021-12-06 10:51:26 +08:00
Notes:
1) Serial bootloader speed seems to work up to 115200 (at higher speed it often doesn't work)
2) Serial bootloader works only when USB port is disconnected (otherwise the MCU starts in DFU mode). So, in case you put this MCU on a Bluepill PCB, you need to power the MCU from 5V or 3V3 pin and not with USB cable.
2021-11-27 07:44:26 +08:00
# Supported
- Hardware Floating point unit (FPU)
2021-12-06 10:51:26 +08:00
- C/C++ compilation
2021-11-27 07:44:26 +08:00
# TO-DO List
2021-12-06 10:51:26 +08:00
- Add more examples (USB)
- Provide Bluepill board example?
2021-11-25 09:19:39 +08:00
# AT32F403A on Bluepill PCB
2021-12-06 10:51:26 +08:00
You can replace the MCU on the Bluepill board with the AT32F403A. It is pin fully compatible.
2021-12-06 14:22:32 +08:00
Just need to replace BOOT0 resistor from the present value of 100K with the value of 10K. This will allow the MCU to enter in Bootloader mode and flash it via UART1.
# Screenshots
![VSCode Platform](Docs/VSCode_PlatformIO_2.jpg "VSCode Platform")
![VSCode Platform](Docs/VSCode_PlatformIO_1.jpg "VSCode Platform")