Abov A31G324RLN User manual

Contents A31G324RLN shield board implementation guide
2
Contents
1Introduction ....................................................................................................................................5
2User requirements..........................................................................................................................6
2.1 Hardware.............................................................................................................................6
2.2 Software ..............................................................................................................................7
2.3 Reference documents .........................................................................................................7
2.4 System requirements ..........................................................................................................8
2.5 ABOV website .....................................................................................................................8
3Building and running project (Shield board)...................................................................................9
3.1 Prepare the Starter Kit and Shield board ..........................................................................10
3.1.1 Hardware components of the Starter Kit ..............................................................10
3.1.2 Hardware components of the Shield board ..........................................................11
3.2 Set up the Starter Kit and Shield board ............................................................................12
3.2.1 Set jumpers to control the Starter Kit ...................................................................12
3.2.2 Connect to Starter Kit to use Shield board ...........................................................13
3.3 Connect the Starter Kit to your PC....................................................................................14
3.3.1 PC connection via USB on the Starter Kit ............................................................14
3.4 EBI_LCD (user switch) ......................................................................................................15
3.4.1 Running the EBI_LCD project ..............................................................................15
3.4.2 Compiling EBI_LCD..............................................................................................18
3.4.3 Downloading EBI_LCD.........................................................................................19
3.4.4 Debugging EBI_LCD ............................................................................................20
3.4.5 Checking the EBI_LCD operation ........................................................................21
3.5 Buzzer (user switch)..........................................................................................................22
3.5.1 Running the Buzzer project ..................................................................................22
3.5.2 Compiling Buzzer .................................................................................................25
3.5.3 Downloading Buzzer.............................................................................................26
3.5.4 Debugging Buzzer ................................................................................................27
3.5.5 Checking the Buzzer operation ............................................................................28
3.6 EEPROM (use SPI in USART)..........................................................................................29
3.6.1 Running the EEPROM project..............................................................................29
3.6.2 Compiling EEPROM .............................................................................................32
3.6.3 Downloading EEPROM ........................................................................................33
3.6.4 Debugging EEPROM............................................................................................34
3.6.5 Checking the EEPROM operation ........................................................................35
Revision history .....................................................................................................................................36

A31G324RLN shield board implementation guide List of figures
3
List of figures
Figure 1. A31G324RLN Starter Kit Board (Hardware) ............................................................................6
Figure 2. A31G324RLN Shield Board (Hardware) ..................................................................................6
Figure 3. Compiler (Software) .................................................................................................................7
Figure 4. Reference Documents .............................................................................................................7
Figure 5. Window PC & Mini-B Cable .....................................................................................................8
Figure 6. ABOV Semiconductor Website ................................................................................................8
Figure 7. Starter Kit Board ....................................................................................................................10
Figure 8. A31G324RLN Shield Board Description ................................................................................11
Figure 9. Starter Kit Jumper & Switch ...................................................................................................12
Figure 10. Connect to Starter Kit to use Shield Board ..........................................................................13
Figure 11. Starter Kit and USB Connection ..........................................................................................14
Figure 12. USB Input Device at Device Manager .................................................................................14
Figure 13. Execute Keil uVision5 for ARM ............................................................................................15
Figure 14. Select EBI_LCD Project from Pack Installer........................................................................15
Figure 15. Create EBI_LCD Project from Pack Installer .......................................................................16
Figure 16. Open EBI_LCD Project from Pack Installer .........................................................................16
Figure 17. Download Evaluation Kit (Example Source) from ABOV Website.......................................17
Figure 18. Compile Result on uVision5 (EBI_LCD Project) ..................................................................18
Figure 19. Check to EBI_LCD Project Setting ......................................................................................19
Figure 20. Download EBI_LCD Project on A-Link ................................................................................19
Figure 21. Debugging in Keil Debugger Software ................................................................................20
Figure 22. Check LCD Operation..........................................................................................................21
Figure 23. Execute Keil uVision5 for ARM ............................................................................................22
Figure 24. Select Buzzer Project from Pack Installer ...........................................................................22
Figure 25. Create Buzzer Project from Pack Installer...........................................................................23
Figure 26. Open Buzzer Project from Pack Installer.............................................................................23
Figure 27. Download Evaluation Kit (Example Source) from ABOV Website.......................................24
Figure 28. Compile Result on uVision5 (Buzzer Project)......................................................................25
Figure 29. Check to Buzzer Project Setting ..........................................................................................26
Figure 30. Download Buzzer Project on A-Link ....................................................................................26
Figure 31. Debugging in Keil Debugger Software ................................................................................27
Figure 32. Check Buzzer Operation......................................................................................................28
Figure 33. Execute Keil uVision5 for ARM ............................................................................................29
Figure 34. Select EEPROM Project from Pack Installer .......................................................................29
Figure 35. Create EEPROM Project from Pack Installer ......................................................................30
Figure 36. Open EEPROM Project from Pack Installer ........................................................................30
Figure 37. Download Evaluation Kit (Example Source) from ABOV Website.......................................31
Figure 38. Compile Result on uVision5 (EEPROM Project) .................................................................32
Figure 39. Check to EEPROM Project Setting......................................................................................33
Figure 40. Download EEPROM Project on A-Link................................................................................33
Figure 41. Debugging in Keil Debugger Software ................................................................................34
Figure 42. Check EEPROM Operation .................................................................................................35

List of tables A31G324RLN shield board implementation guide
4
List of tables
Table 1. Shield Board Description .........................................................................................................11
Table 2. LCD & User Switch Operation.................................................................................................21
Table 3. Buzzer & User Switch Operation.............................................................................................28

A31G324RLN shield board implementation guide 1. Introduction
5
1Introduction
This document introduces software environment and development recommendations for the ABOV 32-
bit Cortex-Mx Starter Kit. In this document, an easy method how to develop the ABOV 32-bit Cortex-
M0x MCUs on a Starter Kit board.
The Starter Kit board contains a CMSIS-DAP debugger which is called “A-Link”. This is the interface
firmware for a debug unit that connects the debug port to USB. The debug unit connects via JTAG or
SW to the target device. Using this CMSIS-DAP debugger (A-Link), you can eliminate the needs for
additional devices when programming and debug the MCU.
In this document, you can learn a method how to operate the A31G324RLN Shield board, as an
example, step by step.

2. User requirements A31G324RLN shield board implementation guide
6
2User requirements
2.1 Hardware
In this section, you will see the Starter Kit board and Shield board of A31G324RLN in Figure 1 and
Figure 2 respectively.
Figure 1. A31G324RLN Starter Kit Board (Hardware)
Figure 2. A31G324RLN Shield Board (Hardware)

A31G324RLN shield board implementation guide 2. User requirements
7
2.2 Software
Keil compiler in the Starter Kit board features the followings:
Keil complier (uVision5)
Keil MDK5 software pack (including Starter Kit sample code) or EVK software
Figure 3. Compiler (Software)
2.3 Reference documents
1. Starter Kit quick guide
2. Starter Kit HW manual
3. Starter Kit schematic
4. Product user’s manual
5. Example code
Figure 4. Reference Documents

2. User requirements A31G324RLN shield board implementation guide
8
2.4 System requirements
1. Windows PC (7, 8, 10)
2. USB mini-B type cable
Figure 5. Window PC & Mini-B Cable
2.5 ABOV website
For detailed information about corresponding software and documents, you can visit our website at
https://www.abovsemi.com.
Figure 6. ABOV Semiconductor Website

A31G324RLN shield board implementation guide 3. Building and running project (Shield board)
9
3Building and running project (Shield board)
Running application code makes it easier to start the Shield board. Following the steps below:
Step 1. Prepare the Starter Kit & Shield Board
Step 2. Set up the Starter Kit & Shield Board
Step 3. Connect the Starter Kit to your PC
Step 4. Run the application Project
Step 5. Compiling application Code
Step 6. Download application Code
Step 7. Debugging application Code
Step 8. Check the application Code Operation

3. Building and running project (Shield board) A31G324RLN shield board implementation guide
10
3.1 Prepare the Starter Kit and Shield board
3.1.1 Hardware components of the Starter Kit
1. The Starter Kit board is comprised of a device board and an A-Link (CMSIS-DAP) board. The
two boards can be separated if necessary.
2. Device board configuration
A. ABOV 32-bit MCU, X-TAL (optional)
B. Pin Headers connected to MCU
C. LED, switch and jumper to check input/output, reset, and debugger pins
3. A-Link (CMSIS-DAP/UART) board configuration
A. A-Link for programming and debugging with ABOV 32-bit MCU(connected to USB port of
PC)
B. Supports UART
Figure 7. Starter Kit Board

A31G324RLN shield board implementation guide 3. Building and running project (Shield board)
11
3.1.2 Hardware components of the Shield board
Table 1. Shield Board Description
Function
Description
Remark
SW1
User SW
PA0
SW2
User SW
PA5
SW3
User SW or EBI Reset Pin
PB9
Buzzer
PWM
PA7 / TIMER40OUT
LCD
EBI to LCD
EBI 8bit bus
AT25080B-SSHL-B
EEPROM
SPI(20MHz, 8bit)
Figure 8. A31G324RLN Shield Board Description

3. Building and running project (Shield board) A31G324RLN shield board implementation guide
12
3.2 Set up the Starter Kit and Shield board
3.2.1 Set jumpers to control the Starter Kit
1. The Starter Kit uses USB power-①
A. Choose 3.3V and 5.0V (check the maximum operation voltage by referring to the
specification sheet).
2. Boot mode selection-②
A. Open : User Program operation mode (As a default mode)
B. Short : Boot operation mode (Debugger always enabled)
3. Power switch selection-③
A. Jumper to use UART through the USB of the A-Link board
B. Used to connect UART Tx/Rx
Figure 9. Starter Kit Jumper & Switch

A31G324RLN shield board implementation guide 3. Building and running project (Shield board)
13
3.2.2 Connect to Starter Kit to use Shield board
Connect the header socket of the Shield board to the header pin of the Starter Kit board as shown in
Figure 10.
Figure 10. Connect to Starter Kit to use Shield Board

3. Building and running project (Shield board) A31G324RLN shield board implementation guide
14
3.3 Connect the Starter Kit to your PC
3.3.1 PC connection via USB on the Starter Kit
Connect the USB 2.0 (mini-B type) cable to the Starter Kit as shown in Figure 11.
1. If the PC is properly connected, the power LED on the device board will be turned on. -①
2. The status LED on the A-Link board (debugger) will be turned on. -②
Figure 11. Starter Kit and USB Connection
When the A-Link is connected, it is displayed as USB Input Device in Device Manager.
1. The A-Link is of the USB human interface device (HID) class and does not require driver
installation on Microsoft Windows.
Figure 12. USB Input Device at Device Manager

A31G324RLN shield board implementation guide 3. Building and running project (Shield board)
15
3.4 EBI_LCD (user switch)
3.4.1 Running the EBI_LCD project
Before downloading the EBI_LCD example, Keil uVision5 for ARM must be installed on your PC.
1. Execute “Keil uVision5”.
2. Click the Pack Installer icon to run the installer.
A. Pack Installer is a utility to install/update software packs.
Figure 13. Execute Keil uVision5 for ARM
3. Select the Starter Kit device and example in Pack Installer.
A. Select the EBI_LCD Project by referencing Figure 14 with other devices.
Figure 14. Select EBI_LCD Project from Pack Installer

3. Building and running project (Shield board) A31G324RLN shield board implementation guide
16
4. Create a Starter Kit example in Pack Installer.
A. When the selected example is copied (①), a dialog box (②) appears to prompt you to
choose a destination folder.
B. Select a destination folder and click OK to run uVision5.
Figure 15. Create EBI_LCD Project from Pack Installer
5. The example is copied to the destination folder, and displayed as shown in Figure 16.
A. The destination folder contains a Keil project and the example files.
Figure 16. Open EBI_LCD Project from Pack Installer
②
①

A31G324RLN shield board implementation guide 3. Building and running project (Shield board)
17
6. If you want to use Evaluation Kit (example source), you can download it from ABOV official
website.
A. Once downloading is complete, unzip the file and run EBI_LCD uVision5 in the example
directory.
B. See the Keil Setting Guide for detailed instructions.
Figure 17. Download Evaluation Kit (Example Source) from ABOV Website

3. Building and running project (Shield board) A31G324RLN shield board implementation guide
18
3.4.2 Compiling EBI_LCD
Execute “Rebuild all target files” on the created uVision5 (EBI_LCD Project).
1. Select Rebuild (①) to proceed with compilation.
2. The compile result can be checked in Build Output (②). Make sure there are no errors in the
project.
Figure 18. Compile Result on uVision5 (EBI_LCD Project)
②Check compile result in
Build Output
①Select Rebuild to compile the project

A31G324RLN shield board implementation guide 3. Building and running project (Shield board)
19
3.4.3 Downloading EBI_LCD
If the compilation finishes without any error, you can begin programming the Starter Kit.
1. Check the followings if errors occur during the setup process.
A. Check that CMSIS-DAP Debugger (①) is selected in the Debug tab (use CMSIS-DAP for
A-Link).
B. Click Settings and check that A-Link CMSIS-DAP (②) is selected in the Debug tab.
C. Check that the correct flash loaders of the device (③) are displayed in the Flash Download
tab.
Figure 19. Check to EBI_LCD Project Setting
2. Downloading is enabled since the Starter Kit is connected to the USB port of the PC.
3. Click Download (①) to download. Check the settings if you encounter errors.
Figure 20. Download EBI_LCD Project on A-Link
①
②
③
①Download

3. Building and running project (Shield board) A31G324RLN shield board implementation guide
20
3.4.4 Debugging EBI_LCD
Debugging in Keil uVision5
1. Run Start/Stop Debugger Session (①) to enter debugger mode.
A. The Starter Kit must be connected for real-time, interactive debugging.
B. In Keil debugger mode, the program can be executed by run/step.
Figure 21. Debugging in Keil Debugger Software
①Start/Stop
Debugger Session
Table of contents
Other Abov Computer Hardware manuals