当前位置:网站首页>[cpk-ra6m4 development board environment construction based on RT thread studio]
[cpk-ra6m4 development board environment construction based on RT thread studio]
2022-07-07 03:10:00 【2345VOR】
be based on RT-Thread Studio Of CPK-RA6M4 Build the development board environment
1. CPK-RA6M4 Development board features
Based on Reza RA6M4 MCU Developed CPK-RA6M4 MCU Evaluation board , adopt Flexible configuration of software packages and IDE, It can help users to RA6M4 MCU The characteristics of the group can be easily evaluated , And develop the embedded system application .
1.1 Carrying resources
1.2 Appearance front
1.3 Appearance reverse
1.4 System diagram
1.5 On board schematic diagram
source :
《 Development board user manual 》
Schematic diagram :
This article will use Renesas's CPK-RA6M4 The development board describes how to RA series MCU Up let RT-Thread Run up . The construction of the development environment will be divided into the following parts :
- RA Development environment construction
- be based on RT-Thread Studio Development environment construction
2. RA Development environment construction
2.1 Essential tools
2.1.1 Flexible configuration software package (FSP) :
It can quickly configure the peripheral functions of the development board , Please use v3.5.0 edition , It's available at github Upload and download 3.5.0 edition ( Download address :https://github.com/renesas/fsp/releases/tag/v3.5.0 , Note that the file name is :setup_fsp_v3_5_0_rasc_v2021-10.exe)
< Note that the official website is 3.8.0 edition , Not forward compatible , Use 3.8.0 Version will make the project unavailable >
2.1.2 CPK-RA6M4 Board level support package :
coordination FSP Use it together , It is the graphical configuration support package of the development board , Please use v3.5.0 edition
Can be found in Renesas Download from the official website :
Online disk download link :https://cowtransfer.com/s/b9eddec169d544
Included Above FSP Software and FSP Board level support package , Download from this link in one step .
2.2 Environment building
Flexible configuration software package (FSP)
1、 Open the link to download FSP, Please confirm the downloaded 3.5.0 edition , This download step can be ignored when downloading from the network disk .
at present RT-Thread in CPK-RA6M4 Of BSP The supported versions are 3.5.0. Can be in BSP Of README Confirm the currently supported FSP edition .
2、 Find the downloaded file and open ( Note that the file name contains rasc):setup_fsp_v3_5_0_rasc_v2021-10.exe
3、 Configure the installation path , Find this path after installation , Then add CPK-RA6M4 Board level support package You will use
4、 Check Licenese
5、 Click on install Wait for installation to complete .
6、 function rasc.exe, Verify that the installation was successful . route :\eclipse\rasc.exe
7、 After successful startup, it can be closed , Continue with the next operation
2.3 CPK-RA6M4 Board level support package
1、 This part , You can refer to Renesas Official document 《 towards FSP Add CPK Evaluation Board BSP 》
download 3.5.0 Version support package . This download step can be ignored when downloading from the network disk .
2、 The following three files can be found in the downloaded support package
3、 Now find FSP Installation path for , Get into \internal\projectgen\ra\ , Copy the file to the corresponding folder .
4、 Open again rasc.exe, See if it is added successfully . Click on next Enter project creation
5、 Confirm whether there are added CPK-RA6M4 Development board support package , This step is only to verify whether the addition is successful , There is no need to continue creating the project , Can be closed .
6、 So far, the environment related to the Reza development board has been basically set up . The debugger J-link Installation , In the following steps .
3. RT-Thread Development environment construction
3.1 be based on RT-Thread studio
Download and install the prerequisite software environment
- Download and install RT-Thread studio
- open RT-Thread studio, Enter the package manager , download RT-Thread Of bsp Support package and related tools .
download BSP Support package , Check the latest version .
PS:BSP The support package will automatically download the dependent resource package :
- RT-Thread System source code package
- GCC Tool chain : edition 10.2.1
- The debugger J-link: edition 7.50a
3.2 Create engineering test results
1、 open RT-Thread studio, newly build RT-Thread project —> Based on the development board , establish CPK-RA6M4 The engineering of
2、 Open the created project , double-click RA Smart Configurator You can open the just installed FSP Configuration tool picture
3、 The first time you open it, you need to configure FSP route , Select the installation path . Confirm to open FSP You can shut down , Do not make any changes to continue with the subsequent operations .
4、 Compiler Engineering , Confirm that the tool chain is configured correctly
5、 connection : Connect serial port tools 、USB-Jlink ( Jump cap back to normal operation as well as device mode)
6、 Connect UART7 (TX:P613; RX:P614), Baud rate 115200. This serial port is used for RT-Thread System command line interaction .
7、 Download the program to the development board , Note that the download is HEX file .
- View the run results
After downloading the program successfully , The system will automatically run and print system information . Connect the corresponding serial port of the development board to PC , Open the corresponding serial port in the terminal tool (115200-8-1-N), After resetting the device , You can see RT-Thread Output information of . Input help Command to view the commands supported in the system .
On board LED3 Will 1Hz Frequency flicker
- Turn on the oscilloscope
- On board reset, View relevant built-in information
- The results are as follows
\ | /
- RT - Thread Operating System
/ | \ 4.1.0 build Jan 18 2022 18:48:37
2006 - 2021 Copyright by rt-thread team
Hello RT-Thread!
msh >
RT-Thread shell commands:
icu_sample - icu sample
list - list all commands in system
list_device - list device in system
list_timer - list timer in system
list_msgqueue - list message queue in system
list_mailbox - list mail box in system
list_mutex - list mutex in system
list_event - list event in system
list_sem - list semaphore in system
list_thread - list thread
version - show RT - Thread version information
clear - clear the terminal screen
hello - say hello world
free - Show the memory usage in the system.
ps - List threads in the system.
help - RT - Thread shell help.
reboot - Reboot System
msh >
8、 Application entry function
- The entry function of the application layer is in bsp\ra6m4-cpk\src\hal_emtry.c in Of void hal_entry(void) . The source file written by the user can be directly placed in src Under the table of contents .
void hal_entry(void)
{
rt_kprintf("\nHello RT-Thread!\n"); while (1)
{
rt_pin_write(LED3_PIN, PIN_HIGH);
rt_thread_mdelay(500);
rt_pin_write(LED3_PIN, PIN_LOW);
rt_thread_mdelay(500);
}
}
- main.c In the project folder re_ge Next
/* generated main source file - do not edit */
#include "hal_data.h"
int main(void) {
hal_entry();
return 0;
}
About RA series MCU Relevant resources can be seen :
《 Development board user manual 》
RA series MCU:
CPK-RA6M4 Evaluation board page :
RA series MCU RT-Thread BSP:
RA series RT-Thread Driver Introduction :
RA series BSP Peripheral driver tutorial :
RA Series use FSP Configure peripheral drivers
reference :
be based on RT-Thread Studio Of CPK-RA6M4 Development environment building guide
边栏推荐
- How-PIL-to-Tensor
- 【2022国赛模拟】多边形——计算几何、二分答案、倍增
- Le tube MOS réalise le circuit de commutation automatique de l'alimentation principale et de l'alimentation auxiliaire, et la chute de tension "zéro", courant statique 20ua
- [secretly kill little partner pytorch20 days] - [Day1] - [example of structured data modeling process]
- leetcode-02(链表题)
- mos管实现主副电源自动切换电路,并且“零”压降,静态电流20uA
- centerX: 用中国特色社会主义的方式打开centernet
- Shell 编程基础
- Redis入门完整教程:复制原理
- How to find file accessed / created just feed minutes ago
猜你喜欢
How to write test cases for test coupons?
The 8 element positioning methods of selenium that you have to know are simple and practical
Redis introduction complete tutorial: client case analysis
Household appliance industry under the "retail is king": what is the industry consensus?
【基于 RT-Thread Studio的CPK-RA6M4 开发板环境搭建】
The solution of unable to create servlet file after idea restart
The annual salary of general test is 15W, and the annual salary of test and development is 30w+. What is the difference between the two?
mos管實現主副電源自動切換電路,並且“零”壓降,靜態電流20uA
Intelligent static presence detection scheme, 5.8G radar sensing technology, human presence inductive radar application
MySQL is an optimization artifact to improve the efficiency of massive data query
随机推荐
[software test] the most complete interview questions and answers. I'm familiar with the full text. If I don't win the offer, I'll lose
Redis入门完整教程:复制原理
Andrews - multimedia programming
Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (initial assignment part)
如何分析粉丝兴趣?
Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (time synchronization part)
Redis入门完整教程:问题定位与优化
The first symposium on "quantum computing + application of financial technology" was successfully held in Beijing
New benchmark! Intelligent social governance
Centerx: open centernet in the way of socialism with Chinese characteristics
Kubernetes源码分析(二)----资源Resource
Summary of research status of inertial navigation calibration at home and abroad (abridged version)
Oracle中日期的使用方法实例
Cloud Mail . NET Edition
MOS transistor realizes the automatic switching circuit of main and auxiliary power supply, with "zero" voltage drop and static current of 20ua
Unity使用MaskableGraphic画一条带箭头的线
How-PIL-to-Tensor
Qt蓝牙:QBluetoothDeviceInfo
C language string sorting
Read fast RCNN in one article