News
>
>
>
How to develop Hangshun HK32F030M microprocessor with IAR EWARM?
Check category

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?

(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.

  • 2022-01-19
Information

 

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.

 

 

HK32F030M
 

 

 

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/

 

HK32F030M
 

 

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

 

HK32F030M
 

 

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

 

HK32F030M
 

 

Powering the development board: Connect the CN2 port on the board with a USB T-head cable to supply power to the board.

 

HK32F030M
 

 

3

Program loading and debugging

First, open IAR EWARM 8.22.1/9.20.2, select File->Open Workspace,

 

HK32F030M
 

 

Choose:

H:\hk32f030m\HK32F030Mxx_ExampleV1.0.5\HK32F030Mxx_ExampleV1.0.5\project\10 GPIO\1_GPIO_Toggle\EWARM\HK32F030M_Demo.eww file open

 

HK32F030M
 

 

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.

 

IAR EWARM
 

 

Observe the C\C++ Compiler settings again, especially whether the two parts under Preprocessor are correct or not.

 

IAR EWARM
 

 

Look at the link location file again,

 

IAR EWARM
 

 

Finally set up the emulator, because we are using the J-Link emulator and the default is the ST-Link emulator.

 

IAR EWARM
 

 

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.

 

IAR EWARM
 

 

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.

 

 IAR EWARM
 

 

Next, we can choose Download and Debug under Project on the menu or on the toolbar.

 

 IAR EWARM
 

 

Since J-Link does not officially support this chip, you may also select the core Cortex-M0 in the J-Link chip selection box,

 

 IAR EWARM
 

 

At this time, the J-Link emulator will download the program to the chip. You can use IAR EWARM for normal debugging.

 

 IAR EWARM
 

 

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.
 

Keyword:

返回列表
A solution for automotive gear shift switch based on Hangshun chip automotive grade MCU HK32A040C8T3
2024.04.07
A solution for automotive gear shift switch based on Hangshun chip automotive grade MCU HK32A040C8T3
Throughout the global development of passenger cars, automatic transmission has been widely adopted. Its simple and easy to learn, convenient and intelligent characteristics bring drivers a more comfortable driving experience, and also better adapt to urban traffic. The implementation of the automatic shift function actually uses a gear shift switch instead of manual operation. The gear shift switch will control the shift fork and gear shift based on different engine speeds, vehicle speeds, and the driver's intention to press the accelerator. To achieve these automated operations, a shift switch requires a brain. The Hangshun chip M0 series automotive grade MCU HK32A040C8T3 is such a "brain", applied in gear shift switch schemes. Its main function is to receive signals from the gear shift switch and convert these signals into electrical signals that can control the car's engine, transmission, and other parts, thereby simplifying driving operations and providing great convenience for the driver. In the process of developing its new generation of electric vehicles, in order to ensure that the vehicle's performance, reliability, and safety reach the optimal level, after in-depth technical evaluation and multiple rounds of screening, Selis New Energy Vehicles finally chose a gear shift switch scheme based on the Hangshun chip HK32A040C8T3. The Selis engineering team has conducted a rigorous review of the functional characteristics, processing speed, power consumption performance, environmental adaptability, and cost-effectiveness of the Hangshun HK32A040C8T3 MCU in multiple dimensions. Hangshun's MCU has successfully conquered the engineering team with its outstanding performance, especially in high reliability and strong anti-interference ability. In addition, HK32A040C8T3 has high integration and flexible peripheral interfaces, providing engineers with greater design freedom and optimization space, making the entire electronic control system more compact and efficient. HK32A040 using ARM ®  Cortex ®- M0 core, with a maximum operating frequency of 96MHz, built-in up to 124 Kbyte Flash and 10 Kbyte SRAM. By configuring the Flash controller registers, the remapping of interrupt vectors within the main Flash area can be achieved. And it supports traditional Flash Level 0/1/2 read-write protection and Flash code encryption (patented by Hangshun). Strong scalability 32-bit ARM CPU architecture, good ecological environment Rich peripheral resources to meet platform expansion Multiple packaging options available for LQFP64, LQFP48, QFN32, and QFN28 high reliability Car specification quality, compliant with AEC-Q100 Grade 1 Complies with ISO 9001 and IATFT 16949 quality management systems Supports -40 ℃~125 ℃ High cost performance ratio Equal performance/resources, with higher cost-effectiveness Quality service Complete ecological supporting facilities 15 years of design life, with a supply chain guarantee of over 15 years The gear shift switch scheme based on the Hangshun Vehicle Class MCU HK32A040C8T3 has been successfully applied in the Sailis new energy vehicle, which not only improves the electronic control efficiency of the entire vehicle, but also achieves lower energy consumption and better user experience. The Hangshun chip series vehicle grade MCU HK32A040 can be widely used in vehicle domain controllers, such as doors and windows, tail lights, wipers, anti-theft alarms, car keys, air conditioning, electric seats, etc. Hangshun Chip adheres to the strategy of SoC+32-bit high-end MCU in automotive standards. In recent years, it has invested a large amount of research and development resources in the field of automotive electronics, committed to providing the market with higher reliability and more cost-effective automotive chip solutions, helping customers achieve a win-win situation in cost control and user experience.
More >
Hangshun chip has obtained the highest ASIL D certification in ISO 26262, and the automotive functional safety management system has been further upgraded
2023.10.10
Hangshun chip has obtained the highest ASIL D certification in ISO 26262, and the automotive functional safety management system has been further upgraded
Recently, the international independent third-party testing, inspection, and certification agency SGS has issued the ISO 26262:2018 ASIL D process certification certificate for the highest level of automotive functional safety to Shenzhen Hangshun Chip Technology Research and Development Co., Ltd. (hereinafter referred to as "Hangshun Chip"). This marks that Hangshun Chip has established a comprehensive chip product software and hardware development process management system that meets the highest level of automotive functional safety requirements. It also confirms that Hangshun Chip's automotive MCU products and services can fully meet the automotive functional safety requirements of top automotive manufacturers in the product design and integration stage, greatly reducing the workload of customer self verification and certification, and accelerating product launch. With the development of electrification and intelligence in automobiles, safety is becoming increasingly important. These new technologies have introduced more electronic control systems and sensors, thus increasing the risk of system failures. The ISO 26262 standard is currently recognized globally as the functional safety process standard for automobiles. It is aimed at automotive OEMs and their global suppliers, covering the entire product lifecycle, including functional safety management, system stage development, software and hardware stage development, supporting all aspects such as processes, safety analysis, and product release. Through the guidance and application of standardized technical specifications, the risk of automotive electrical or electronic system failures is minimized, ultimately reducing related traffic accidents. During this certification process, SGS highly recognizes that the development process and quality management system of Hangshun chips fully comply with the requirements of ISO26262:2018 standard. At the same time, through this process, Hangshun Chip further sorted out the development process of functional standards throughout the entire lifecycle, improved the management ability of the functional safety team, and comprehensively forged a vehicle specification MCU chip team with both soft and hard strength, professional skills, and management capabilities. Starting from 2021, multiple families such as Hang Shun Chip SoC HK32AUTO39A and HK32A04AA have passed the AEC-Q100 standard certification, providing cost-effective and reliable development options for various automotive scenarios such as body control, automotive lighting, entertainment systems, and in car navigation. These products have been widely used in mainstream products of multiple top automotive brands. As a leading "automotive SoC+high-end MCU" design enterprise, Hangshun Chip always adheres to the product design concept of high performance and high safety, and actively establishes a quality management system that meets international standards. At present, Hangshun chip is accelerating the development of high-end automotive MCU to meet the ASIL-D level functional security and hardware encryption network security requirements, and new products will gradually serve automotive customers. About Hangshun chips Shenzhen Hangshun Chip Technology R&D Co., Ltd. was established in 2013, with branches and offices in Chengdu and Shanghai. It is committed to the dual strategy of "vehicle standard SoC+high-end MCU supermarket, making everything more intelligent and a better smart life", and realizing the great vision of "HK32MCU as the core, creating a boundaryless ecological platform level enterprise for Hangshun". The Hangshun HK32MCU is divided into economy type, mainstream type, low energy consumption type, high-performance type, specialized type, and innovative type, and is mass-produced and applied to thousands of customers in automotive, industrial, household appliances, IoT, and other industries. A total of eight rounds of strategic financing totaling hundreds of millions of yuan have been completed, and have successively won titles such as Forbes/Hurun Global Unicorn, China IC Unicorn, National Specialized and New Key "Little Giant" Enterprise, National Key Integrated Circuit Design Enterprise, and National High tech Enterprise. About SGS Global Functional Safety Technology Center SGS is an internationally recognized inspection, appraisal, testing, and certification agency, serving as a benchmark for quality and integrity. The SGS Global Functional Safety Technology Center is an automotive functional safety training, consulting, and certification organization authorized by DaKKS in Germany. It is a functional safety partner for many well-known domestic and foreign automotive companies and component suppliers. Martin Schimt, the head of the technical center, is the initiator and drafter of ISO 26262. Currently, SGS has over 80 automotive functional safety experts and has issued over 335 ISO 26262 functional safety certification certificate
More >

推荐新闻

×

Product Center

Solution

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