This application note guides beginners to understand APM32F4xx series, and quickly learn to carry out development, operation, debugging and other related tasks.
It mainly contains:
Product overview, document description, development board resource description, functional description of firmware package, and use of development tools.
All materials involved in this application note can be obtained and downloaded from the website of www.geehy.com.
2 Documentation2.1 DatasheetIncluding:
1.Product characteristics;
2.Product information
3. Pin information
4. Functional description
5. Electrical characteristics;
6. Sub-packaging information‘’
7. Packaging information;
8. Ordering Information
9. Common function module naming;
10. Revision history
2.2 User ManualAccording to the chip model difference and sub-packaging types, two kinds of MINI BOARD are designed for users, which are respectively:
3.1 APM32F0xx MINIBOARDSchematic Diagram Refer to <<APM32F0xx MINIBOARD Vx.x.PDF>>,and downloaded from the website of www.geehy.com.
3.2 APM32F0xx MINIBOARDSchematic Diagram Refer to <<APM32F0xx EVAL Board Vx.x.PDF>>and downloaded from the website of www.geehy.com.
3.3 IDEIn order to enrich product models and give full play to chip performance, our company has developed the following kinds of firmware for users to select:
1. “Geehy.APM32F0xx_DFP Pack.x.x.x.pack”
2. “APM32F0xx_SDK_Vx.x.zip”
3. “APM32F0xx_EVAL_SDK_Vx.x.rar”
4. “APM32_USB_SDK_Vx.x.rar”
4.1 MDK5 PacksThe MDK software package provides additional software components and support for
microcontroller devices, DFP for short (Device Family Pack).
Users can choose to download the latest version of pack from www.geehy.com.
Or you can choose to download the historical version of pack of Geehy directory from
www.keil.com.
Installation method:
1. Double-click Install
After successful installation, we can see that APM32F0 series:
The Geehy Semiconductor APM32F0xx MINI board software development kit includes a series driver library, a group of example applications that demonstrate key peripheral functionality, and other development files.
The example applications can be found in the Examples directory.
The examples provided are built for APM32F0xx MINI board compatibility. For other user
development board use, some minor modifications may be required.
Refer to “APM32F0xx_SDK_Vx.x - Readme”
5 Tool Chain1. Geehy-Link
2. APM32 PROG
3. DFU
4. ISP
5.1Geehy-Link
Geehy-LINK is a development tool integrating simulator and programmer, which can debug and simulate the APM32 full-range MCU products online in Keil, IAR and other integrated development environments.Support full-speed operation, single-step debugging, breakpoint setting and other debugging methods. Refer to the document of GEEHY-LINKUserManualV1.0.0.pdf on the official website
Keil MDK IDE:
a) Use the USB cable to connect Geehy-LINK to the computer. After they are connected successfully, Geehy DAP USB Device will appear on the device manager
b) Open the project file and select "Options for Target" tab.
c) In the "Debug" option, download and select the simulator as "CMSIS-DAP Debugger" and then select "Setting".
d) In the "CMSIS-DAP Cortex-M Driver Setup" interface, select "Geehy CMSIS-DAP" (the old version is "Apex CMSIS-DAP") and click "OK".
IAR EW for Arm IDE:
a) Open the project file and select "Options" tab.
b) Select "CMSIS DAP" simulator in "Debugger" and click "OK".
APM32-PROG is a tool developed for APM32 series chips. It can be used together with the upper computer software to complete the software programming of MCU chips, supports in-system and offline programming, supports JTAG and SWD programming of the upper computer, and supports WIN7/8/10 drive-free use.
For detailed operation, refer to APM32_PROG User Manual V1.0.pdf on the official website.
Download the upper computer software Apex-APM32-Setup.msi, and then install it (the installation interface is omitted). Open the software and connect APM32PROG. After successful connection, the upper computer will read the firmware version of the current APM32PROG, as shown in the red box at the bottom of the figure below. If the firmware version of the current APM32PROG is lower than the latest version, you will be prompted to update the firmware version.
The functional area of the APM32PROG upper computer is divided into the file opening area, configuration area (including serial number configuration and configuration writing), and offline or online operation area.
APM32PROG, together with the upper computer, can realize such functions as programming, reading, encryption and decryption of the target MCU.
5.3 DFUThe full name of DFU is Device Firmware Upgrade.
It mainly supports USB BootLoader, and can implement programming of chip FLASH and modification of
option bytes. The upper computer of Geehy DFU Programmer is used for DFU upgrade of APM32 series MCU.
The operation flow is shown below:
a) Connect DFUProgrammer connects to MCU
Open DFUProgrammer software. If the computer has been connected to an "APM32 Bootloader" device, the initial interface is shown below. If no device is found, click the "Search device" button to search for the device. Click the "Connect a device" button to connect to the target MCU.
b) After the target MCU is successfully connected, we can see the corresponding prompt in the log interface.
c) DFU Programmer read program
Click the "Read a chip" button on the left to enter the chip content reading interface. In interface, you can set the content and size of read chip, click the "Read chip" button t
o read the corresponding data, and click the "Save data" button to save the data to PC.
d) After the data is saved successfully, you can get the information of data successfully saved in the log window.
ISP is In-System-Programming. Chips with ISP function can write or erase programs directly on the circuit. board through a simple download cable, can be rewritten by the software of the upper computer through the serial port, and supports online debugging. So that users can test and develop the chips without programmers.
ISP Multiport Programmer is a graphical interface application developed to make it easier for users to use Geehy's MCU. Using this application, users can configure and operate multiple MCU devices of Geehy at the same time through UART port. For details, refer to Geehy-ISP Multiport Programmer User Manual.
Comments
Please log in or sign up to comment.