2547 views|1 replies

227

Posts

0

Resources
The OP
 

How to use Segger Embedded Studio to develop the HPM6750? [Copy link]

RISC-V is an open source instruction set architecture (ISA) based on the Reduced Instruction Set (RISC). It is a completely open instruction set that can be freely used by academic institutions or commercial organizations. Many domestic companies, such as Pioneer Semiconductor, have launched microcontrollers with RISC-V cores. In March this year, Pioneer Semiconductor reached a cooperation with Segger to provide all customers using its HPM6000 series RISC-V microcontrollers with free Segger's cross-platform integrated development environment "Embedded Studio", jointly promoting the development of the RISC-V ecosystem.

This article will introduce how to use Embedded Studio to develop programs based on the HPM6750EVKMINI development board. HPM6750 is a dual RISC-V core microcontroller with a main frequency of 816Mhz. The chip has a maximum of 2M bytes of continuous on-chip RAM and integrates a variety of storage interfaces and multiple audio and video interfaces. The development board has an onboard FT2232 chip, and the code of the development board can be debugged through OpenOCD.

Development environment preparation

1. Download Segger Embedded Studio

Segger Embedded Studio for RISC-V software can be downloaded from the Segger official website. The download link is as follows:

https://www.segger.com/downloads/embedded-studio/

2. Download the SDK provided by Pioneer Semiconductor for the HPM6750EVKMINI development board. The download link is as follows:

https://pan.baidu.com/s/1vJDZWEBqnsosFNeedX6Nww Extraction code: cmd5

3. Install the FT2232 driver in the tools directory of the SDK.

After the driver is installed, use a USB cable to connect the type C interface at the J4 position of the development board. If the computer device manager shows that two serial ports are detected, it means that the driver installation failed and you need to continue according to the steps below.

Next, you need to go to the FTDI official website to download the green driver, install the downloaded green driver first, and then reinstall the FT2232 driver provided in the SDK file. https://ftdichip.com/wp-content/uploads/2021/08/CDM212364_Setup.zip

The result of the driver being correctly installed and the development board being accurately identified should be as follows.

Open the SDK script file to generate the Embedded Studio project

1. Double-click to open the start_cmd.cmd script file in the SDK directory . The script will open a Windows command line window. If the previous steps are configured correctly, you will see a prompt similar to the following:

2. There are many examples in the sdk_env_v0.9.0\hpm_sdk\samples directory. Select an example you want to generate and enter its path name in the command line to switch the path to a specific sample program. Take hello_world as an example:

Enter the command: cd %HPM_SDK_BASE%\samples\hello_world

3. Run the following command to query the target board supported by the routine

Enter the command: generate_project -list

4. After confirming the supported target board name (taking hpm6750evkmini as an example), you can run the following command to build the project. If the build is successful, you will see a prompt similar to the following:

Build command: generate_project -b hpm6750evkmini

5. Open the samples\hello_world\hpm6750evkmini_build\segger_embedded_studio directory , which contains the Embedded Studio project files generated by command line build.

Use Embedded Studio to debug the target project

Open Embedded Studio and open the previously generated project file through the File->open solution option.

The default debugging option for projects generated by SDK is to use the onboard FT2232 chip for debugging via openOCD. The openOCD debugging configuration file has also been configured in the generated project. Therefore, if the FT2232 driver is installed correctly, click Debug->go to enter the debugging state.

You can open the serial port debugging window provided in Embedded Studio through Tools->Terminal Emulator option, and you can see the information printed in the example.

The operation of debugging the HPM6750EVKMINI development board using Embedded Studio is not complicated. In addition to using the onboard FT2232 chip for debugging, Segger J-Link also officially supports the HPM6000 series chips of the HPM6750EVKMINI development board. However, the development board does not provide a standard JTAG debugging interface, so customers need to connect the J-Link by welding the corresponding debugging pins. For specific operations, please refer to the following link:

https://wiki.segger.com/HPMicro_HPM6750EVKMINI

This post is from Embedded System

Latest reply

Embedded Studio is worth promoting vigorously, and it would be even better if the threshold for the free version was removed.   Details Published on 2022-7-27 18:37
Personal signature

欢迎关注“麦克泰技术”


7422

Posts

2

Resources
2
 

Embedded Studio is worth promoting vigorously, and it would be even better if the threshold for the free version was removed.

This post is from Embedded System
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list