forked from WeActStudio/ArduinoCore-AT32F4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4686b8
commit 64269c4
Showing
9 changed files
with
139 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,68 @@ | ||
# ArduinoCore-AT32F4 | ||
## Using this core with the Arduino IDE | ||
## Introduction | ||
|
||
To compile for this core with the Arduino IDE, add the following URL to the boards manager. | ||
This repository is a fork of the original work by [WeActStudio](https://github.com/WeActStudio/ArduinoCore-AT32F4). | ||
|
||
`https://raw.githubusercontent.com/WeActStudio/ArduinoCore-AT32F4/main/package_at32_index.json` | ||
![image](https://user-images.githubusercontent.com/57818792/180649925-ed366423-5f76-42d5-b801-dd5ed2923825.png) | ||
The purpose of this fork is to extend support for compiling and uploading Arduino code to WeAct AT32F4-based boards. It's important to note that this fork does not aim to introduce improvements or fixes to the original work by WeActStudio. | ||
|
||
### Changes for macOS M1 | ||
|
||
This fork includes the following changes specifically for macOS M1: | ||
|
||
- Addition of the ARM64 version of the GCC compiler (`xpack-arm-none-eabi-gcc-11.2.1-1.2-darwin-arm64`). | ||
- Inclusion of the Artery OpenOCD port, which provides versions for Windows, Linux, and macOS. | ||
- Addition of a shell script for the Artery ISP Console upload method. This script prints a message indicating that this upload method is currently not available for macOS. | ||
|
||
### Supported Upload Methods | ||
|
||
Currently, the following upload method is supported: | ||
|
||
- OpenOCD via a DAPLink adapter. | ||
- OpenOCD via a ST-Link adapter | ||
|
||
For testing purposes, the [WeActStudio Mini Debugger](https://github.com/WeActStudio/WeActStudio.MiniDebugger) (ST-Link STM32F103CBT6 and DAPLink APM32F103CBT6) was used. | ||
|
||
### Adding the Core to Arduino | ||
|
||
To add the core to Arduino, follow these steps: | ||
|
||
1. Add the following URL to the Arduino Boards Manager: | ||
|
||
`https://raw.githubusercontent.com/KenjutsuGH/ArduinoCore-AT32F4/main/package_at32_index.json` | ||
|
||
2. Proceed to **Tools** -> **Boards Manager** in the Arduino IDE and search for **AT32**. | ||
|
||
<img src="images/BoardsManagerAT32.png" alt="Boards Manager" width="70%" height="70%"> | ||
|
||
3. After the installation is complete, you'll be able to select the WeActStudio board. | ||
|
||
<img src="images/BoardSelected.png" alt="Select Board" width="70%" height="70%"> | ||
|
||
## Uploading to the WeActStudio board | ||
|
||
For the purpose of this demonstration, navigate to **Files** -> **Examples** -> **01.Basics** -> **Blink**. Under the **Tools** menu, the following upload methods are available: | ||
|
||
<img src="images/UploadMethods.png" alt="Select Board" width="70%" height="70%"> | ||
|
||
- The default option, **Artery DFU ISP**, is currently not supported on macOS and will produce the following error when attempting to upload to the board: | ||
|
||
<img src="images/DFU.png" alt="Artery DFU ISP" width="70%" height="70%"> | ||
|
||
- The next option is **Artery OpenOCD DAPLink**. Ensure that the DAPLink adapter is correctly connected to the AT32F4 board before proceeding with the upload. Now the upload should proceed as expected: | ||
|
||
<img src="images/OpenOCD.png" alt="Artery OpenOCD DAPLink" width="70%" height="70%"> | ||
|
||
- The next option is **Artery OpenOCD ST-Link**. Ensure that the ST-Link adapter is correctly connected to the AT32F4 board before proceeding with the upload. Now the upload should proceed as expected: | ||
|
||
<img src="images/OpenOCD.png" alt="Artery OpenOCD DAPLink" width="70%" height="70%"> | ||
|
||
|
||
## Disclaimer | ||
|
||
The code and information provided in this repository are for educational and informational purposes only. While efforts have been made to ensure the accuracy and reliability of the content, no warranty, express or implied, is provided regarding the completeness, accuracy, reliability, suitability, or availability of the code or information contained herein. | ||
|
||
Usage of the code and information from this repository is at your own risk. The author(s) and contributors of this repository shall not be liable for any loss, damage, or injury arising from the use of or reliance on the code or information provided, including but not limited to direct, indirect, incidental, consequential, or punitive damages. | ||
|
||
Furthermore, the code and information provided in this repository may be subject to change without notice. The author(s) and contributors reserve the right to modify, update, or remove any content from this repository at their discretion. | ||
|
||
By accessing and using the code and information from this repository, you agree to indemnify and hold harmless the author(s) and contributors from any claims, damages, losses, liabilities, costs, and expenses arising from or related to your use of or reliance on the code or information provided herein. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters