How to develop Hangshun HK32F030M microprocessor with IAR EWARM?
- Categories:Group news
- Author:
- Origin:mactech technology
- 2022.01.19
(Summary description)When you execute this program by single step, you can see that Led2 on the board will be on and off for a while. When you execute this program, Led2 will flash.
How to develop Hangshun HK32F030M microprocessor with IAR EWARM?
- 2022-01-19
Hangshun Chip Company is a domestic MCU R&D and production supplier. It provides more than 300 types of MCUs in 29 categories, such as ARM Cortex-M0, M0+, M3, M4 and RISC-V, and has established a certain industrial scale. Tool suppliers such as ARM-Keil and IAR have reached long-term ecological plans and strategic cooperation. Below we will introduce how to develop Hangshun HK32F030M microprocessor with IAR EWARM development environment and J-Link simulator.
“
1
Development environment
· Support IAR EWARM 8.22.1 (original version for creating project) and above
· IAR's Hangshun patch library HKMicrochip_IAR_SupportPack_V1.1.2.exe.7z (Currently IAR EWARM 9.20.2 already supports HK processors, so this patch file is not needed.)
· Hangshun's experimental routine HK32F030Mxx_ExampleV1.0.5.rar
· J-Link Base v10.1 Emulator
“
2
Ready to work
1. The download address of IAR's Hangshun patch library HKMicrochip_IAR_SupportPack_V1.1.2.exe.7z:http://www.hsxp-hk.com/companyfile/97/
After the download is complete, please unzip it to the installation directory of IAR EWARM (IAR EWARM 9.20.2 is already supported and not needed)
Hangshun's experimental routine HK32F030Mxx_ExampleV1.0.5.rar download address:
https://bbs.21ic.com/forum.php?mod=viewthread&tid=3003370&page=1#pid11351696
After the download is complete, please unzip it to the Example directory of IAR EWARM or any directory.
2. Connection between J-Link and HK32F030M development board
Powering the development board: Connect the CN2 port on the board with a USB T-head cable to supply power to the board.
“
3
Program loading and debugging
First, open IAR EWARM 8.22.1/9.20.2, select File->Open Workspace,
Choose:
H:\hk32f030m\HK32F030Mxx_ExampleV1.0.5\HK32F030Mxx_ExampleV1.0.5\project\10 GPIO\1_GPIO_Toggle\EWARM\HK32F030M_Demo.eww file open
We select HK32F030M_Demo-Debug*, right-click or select Project from the menu, then select Options, observe General Option in the Category box, select the tab Target on the right, and check whether the selected debugging device is correct.
Observe the C\C++ Compiler settings again, especially whether the two parts under Preprocessor are correct or not.
Look at the link location file again,
Finally set up the emulator, because we are using the J-Link emulator and the default is the ST-Link emulator.
Select the J-Link/J-Trace option, then select the J-Link/J-Trace option under Category, look at the Connecttion tab on the right, and see if the Interface section below is SWD, and press OK to end the setup. At this time, we see the main interface, and the J-Link menu option appears on the menu bar.
We select the project file HK32F030M_Demo-Debug*, right-click on the pop-up menu or select Make under Project on the main menu to compile the project. During the compilation process, the Build window below displays the compilation results and problems. After the compilation is completed, errors and The number of warnings, and zero errors means the compilation was successful.
Next, we can choose Download and Debug under Project on the menu or on the toolbar.
Since J-Link does not officially support this chip, you may also select the core Cortex-M0 in the J-Link chip selection box,
At this time, the J-Link emulator will download the program to the chip. You can use IAR EWARM for normal debugging.
When you execute this program by single step, you can see that Led2 on the board will be on and off for a while. When you execute this program, Led2 will flash.
-
-
-
Contact information
Service hours: 9:30 — 6:30
Contact number :
-
-
About Us
Technical Support
Please let us know your contact details
Contact us
No. 159, North Pingji Avenue, Pinghu Street, Longgang District, Shenzhen
Heng Road E Times Hangshun Chip Headquarters Building 22nd Floor
86-0755-88917820(Shenzhen)
2880948126
Copyright © 2021 Shenzhen Hangshun Chip Technology R&D Co., Ltd. 粤ICP备13075796号-2