1702 views|2 replies

46

Posts

0

Resources
The OP
 

[Atria AT32WB415 Series Bluetooth BLE 5.0 MCU] Part 1: Environment Construction and Burning Method [Copy link]

This post was last edited by lingxin_yuhe on 2022-8-9 17:23

Preface: Thank you very much for EEWORLD's trust. The Bluetooth processor project uses Qinheng. When I saw the AT32WB415 processor of Artly, I decisively applied for testing. But the environment is always not fixed during non-working hours. My idea: Since it can be compiled with KEIL and there is SWD on the board, can't I find JLINK's SWD in KEIL and download it directly? But after trying various methods, I still get download flash error. I can only download with AT-Link. How can I debug online?

1. KEIL5 is already installed on your computer

1. Install the AT32WB415 PACK package

If you have KEIL5 software, just find the AT32WB415 PACK package and install it. As shown in the picture.

2. Download AT routines

Download the Firmware Library in the BSP in the above picture, which contains various MCU demos, as shown in the figure below.

3. Compile the project

Open the project code, as shown in the figure below. After installing the AT32WB415 PACK, open the led_toggle project file and it will be automatically configured. You can compile it directly. First, modify the light delay. Because the demo running when the board is powered on is this led_toggle, you need to modify the time to verify whether the download is successful.

  1. AT-Link Download

Download the AT-Link that I am currently using for testing, and download the ICP from the official website. As shown in the picture, there is ICP under Tool in the first link, which includes the driver and burning software.

  1. Install ATLink Driver

Turn off the antivirus software, open Artery_ATLink_DriverInstall.exe as an administrator, and the installation will be completed in a few minutes. My installation is completed as shown in the figure.

  1. Download the program

Open ArteryICPProgrammer.exe, find a Micro-USB data cable to connect to the CN1 AT-Link port, click connect. You need to upgrade the AT-Link software for the first time, directly confirm the interface, and after the connection is completed, the connection program information, processor information, etc. will be displayed.

Then click the Add button, insert the led_toggle.hex file you just compiled, click Download, and the interface shown in the figure below will appear. Click Start Downloading, a pop-up window will appear to confirm, and the download will be completed soon.

  1. MCU Reset Restart Program

One second after LED2 lights up, LED3 lights up. LED2 lights up for 2 seconds. One second after LED3 lights up, LED4 lights up. LED2 and LED3 light up in turn. One second after LED4 lights up, LED2 is turned off. One second later, both LED2 and LED3 go out. The next second, all three lights go out. Then the cycle starts again, that is, LED2 starts to light up until all three lights light up, and then LED2 starts to go out until all three lights go out, and this cycle continues.

2. There is no KEIL5 on the computer

Because the software required for compiling the Bluetooth part is an ARM9 program, you need to install the ARM9 MDK software. Download address: https://www2.keil.com/mdk5/legacy/

I downloaded and installed it, and it overwrote the original MDK version. There was a problem compiling the ble project. As shown in the figure below, I looked for various problems, but it said that there was no corresponding compiler.

RAMCC is removed from the new version of MDK. You need to download Legacy Arm Compilers – Arm Developer. I didn’t go in, so I provided a Baidu network disk download address from a netizen: https://pan.baidu.com/s/1ND3vKLzqxanWVP304txRtQ, extraction code: idvc. I installed it according to his method and compiled it successfully.

Next, write down the steps:

1. Install ARM Compiler

After downloading the file, double-click it and the interface shown in the figure will appear.

Click next, enter the path selection, click browse, select the directory, and be sure to install it to the KEIL path as shown below.

Then click Next to install the software until the installation is successful, as shown in the figure below.

  1. Configure KEIL

Open manage project item, as shown in the figure, switch to the Folders/Extensions tab, click Add ARM Compiler, select the folder we just installed, return and click OK, and you're done.

  1. Compile ble

The compilation was completed perfectly. I made various changes during the test, which caused the demo configuration to not find the path. After re-decompression, it was OK. The compilation screenshot is shown below.

3. Burn ble later, the environment is basically OK.

This post is from RF/Wirelessly

Latest reply

I haven't started testing the Bluetooth program yet, and I don't plan to change the firmware. I should be able to use AT commands directly.  Details Published on 2022-8-10 11:33
 

46

Posts

0

Resources
2
 

Forgot to upload the video

This post is from RF/Wirelessly
 
 

5998

Posts

6

Resources
3
 

I haven't started testing the Bluetooth program yet, and I don't plan to change the firmware. I should be able to use AT commands directly.

This post is from RF/Wirelessly
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

快速回复 返回顶部 Return list