1919
2020该开发板常用 ** 板载资源** 如下:
2121
22- - MCU:R7FA6E10F2CFM,200MHz,Arm Cortex®-M33 内核,512kB 代码闪存, 2560kB SRAM
22+ - MCU:R7FA6E10F2CFM,200MHz,Arm Cortex®-M33 内核,1-MB 代码闪存, 256kB SRAM
2323- 调试接口:板载 J-Link 接口
2424- 扩展接口:两个 PMOD 连接器
2525
6767
6868** 硬件连接**
6969
70- 使用 USB 数据线连接开发板到 PC,使用 J-link 接口下载和 DEBUG 程序。使用 USB 转串口工具连接 UART0:P411(TXD)、P410(RXD)。
70+ 使用 USB 数据线连接开发板到 PC,使用 J-link 接口下载和 DEBUG 程序。使用 USB 转串口工具连接 UART0:P101(TXD)、P100(RXD)。
71+
72+
7173
7274** 编译下载**
7375
7476- 编译:双击 project.uvprojx 文件,打开 MDK5 工程,编译程序。
7577
76- > 注意:此工程需要使用 J-Flash Lite 工具烧录程序。建议使用 V8.10 及以上版本烧录工程。[ J-Link 下载链接] ( https://www.segger.com/downloads/jlink/ )
78+ ![ image-20250930112238070] ( G:\testRTT\rt-thread\bsp\renesas\re6e1-fpb\docs\picture\image-20250930112238070.png )
79+
7780
78- - 下载:打开 J-Flash lite 工具,选择芯片型号 R7FA6E2BB,点击 OK 进入工具。选择 BSP 目录下 MDK 编译出的 /object/rtthread.hex 文件,点击 Program Device 按钮开始烧录。具体操作过程可参考下图步骤:
7981
80- ![ image-20211011181555421 ] ( docs/picture/jflash1.png )
82+ - 下载:具体操作过程可参考下图步骤:
8183
82- ![ image-20211011182047981 ] ( docs/ picture/jflash2 .png )
84+ ![ image-20250930112518592 ] ( G:\testRTT\rt-thread\bsp\renesas\re6e1-fpb\ docs\ picture\image-20250930112518592 .png)
8385
84- ![ image-20211011182434519 ] ( docs/ picture/jflash .png )
86+ ![ image-20250930112622622 ] ( G:\testRTT\rt-thread\bsp\renesas\re6e1-fpb\ docs\ picture\image-20250930112622622 .png)
8587
86- ![ image-20211011182949604] ( docs/picture/jflash3.png )
88+ ![ image-20250930112711356] ( G:\testRTT\rt-thread\bsp\renesas\re6e1-fpb\docs\picture\image-20250930112711356.png )
89+
90+ ![ image-20250930113003433] ( G:\testRTT\rt-thread\bsp\renesas\re6e1-fpb\docs\picture\image-20250930113003433.png )
8791
8892** 查看运行结果**
8993
9094下载程序成功之后,系统会自动运行并打印系统信息。
9195
9296连接开发板对应串口到 PC , 在终端工具里打开相应的串口(115200-8-1-N),复位设备后,可以看到 RT-Thread 的输出信息。输入 help 命令可查看系统中支持的命令。
9397
94- ``` bash
95- \ | /
96- - RT - Thread Operating System
97- / | \ 5.2.0 build Oct 28 2024 02:29:19
98- 2006 - 2024 Copyright by rt-thread team
99-
100- Hello RT-Thread!
101- msh >
102- msh > help
103- RT-Thread shell commands:
104- pin - pin [option]
105- reboot - Reboot System
106- help - RT-Thread shell help
107- ps - List threads in the system
108- free - Show the memory usage in the system
109- clear - clear the terminal screen
110- version - show RT-Thread version information
111- list - list objects
112- backtrace - print backtrace of a thread
113-
114- msh >
115- ```
98+ ![ image-20250930114454018] ( G:\testRTT\rt-thread\bsp\renesas\re6e1-fpb\docs\picture\image-20250930114454018.png )
99+
100+
116101
117102** 应用入口函数**
118103
119- 应用层的入口函数在 ** bsp\ra6e2 -fpb\src\hal_emtry.c** 中 的 ` void hal_entry(void) ` 。用户编写的源文件可直接放在 src 目录下。
104+ 应用层的入口函数在 ** bsp\ra6e1 -fpb\src\hal_emtry.c** 中 的 ` void hal_entry(void) ` 。用户编写的源文件可直接放在 src 目录下。
120105
121106``` c
122- void hal_entry (void)
107+ #define LED1_PIN BSP_IO_PORT_04_PIN_07 /* Onboard LED1 pins */
108+ #define LED2_PIN BSP_IO_PORT_04_PIN_08 /* Onboard LED2 pins */
109+
110+ void hal_entry ( void )
123111{
124- rt_kprintf( "\nHello RT-Thread!\n");
112+ rt_kprintf ( "\nHello RT-Thread!\n" );
125113
126- while (1 )
114+ while ( 1 )
127115 {
128- rt_pin_write( LED1_PIN, PIN_HIGH);
129- rt_pin_write( LED2_PIN, PIN_HIGH );
130- rt_thread_mdelay(500 );
131- rt_pin_write( LED1_PIN, PIN_LOW);
132- rt_pin_write( LED2_PIN, PIN_LOW );
133- rt_thread_mdelay(500 );
116+ rt_pin_write ( LED1_PIN, PIN_HIGH );
117+ rt_pin_write ( LED2_PIN, PIN_LOW );
118+ rt_thread_mdelay ( 1000 );
119+ rt_pin_write ( LED1_PIN, PIN_LOW );
120+ rt_pin_write ( LED2_PIN, PIN_HIGH );
121+ rt_thread_mdelay ( 1000 );
134122 }
135123}
136124```
@@ -139,21 +127,21 @@ void hal_entry(void)
139127
140128**资料及文档**
141129
142- - [开发板官网主页](https://www.renesas.cn/zh/products/microcontrollers-microprocessors/ra-cortex-m-mcus /fpb-ra6e2-fast-prototyping-board-ra6e2-mcu-group )
143- - [开发板用户手册](https://www.renesas.cn/zh/document/mat/fpb-ra6e2-v1- users-manual?r=25433341 )
130+ - [开发板官网主页](https://www.renesas.cn/zh/design-resources/boards-kits /fpb-ra6e1 )
131+ - [开发板用户手册](https://www.renesas.cn/zh/document/mat/fpb-ra6e1- users-manual?r=1529471 )
144132- [瑞萨RA MCU 基础知识](https://www2.renesas.cn/cn/zh/document/gde/1520091)
145133- [RA6 MCU 快速设计指南](https://www2.renesas.cn/cn/zh/document/apn/ra6-quick-design-guide)
146- - [RA6E2_datasheet ](https://www.renesas.cn/zh/document/dst/ra6e2-group-datasheet ?language=en)
147- - [RA6E2 Group User’s Manual: Hardware](https://www.renesas.cn/zh/document/mah/ra6e2-group-users-manual-hardware ?language=en)
134+ - [RA6E1_datasheet ](https://www.renesas.cn/zh/document/dst/1532701 ?language=en)
135+ - [RA6E1 Group User’s Manual: Hardware](https://www.renesas.cn/zh/document/mah/1532711 ?language=en)
148136
149137**FSP 配置**
150138
151139需要修改瑞萨的 BSP 外设配置或添加新的外设端口,需要用到瑞萨的 [FSP](https://www.renesas.cn/zh/software-tool/flexible-software-package-fsp#documents) 配置工具。请务必按照如下步骤完成配置。配置中有任何问题可到[RT-Thread 社区论坛](https://club.rt-thread.org/)中提问。
152140
1531411. [下载灵活配置软件包 (FSP) | Renesas](https://www.renesas.cn/zh/software-tool/flexible-software-package-fsp),请使用 FSP 5.5.0 版本
154- 2. 下载安装完成后,需要添加 FPB-RA6E2 开发板的官方板级支持包
155- > 打开[ FPB-RA6E2 开发板详情页](https://www.renesas.cn/zh/products/microcontrollers-microprocessors/ra-cortex-m-mcus /fpb-ra6e2-fast-prototyping-board-ra6e2-mcu-group ),在**“下载”**列表中找到 **”FPB-RA6E2板级支持包 “**,点击链接即可下载
156- 3. 如何将 **”FPB-RA6E2板级支持包 “**添加到 FSP 中,请参考文档[如何导入板级支持包](https://www.renesas.cn/zh/software-tool/flexible-software-package-fsp)
142+ 2. 下载安装完成后,需要添加 FPB-RA6E1 开发板的官方板级支持包
143+ > 打开[ FPB-RA6E1 开发板详情页](https://www.renesas.cn/zh/design-resources/boards-kits /fpb-ra6e1 ),在**“下载”**列表中找到 **”FPB-RA6E1板级支持包 “**,点击链接即可下载
144+ 3. 如何将 **”FPB-RA6E1板级支持包 “**添加到 FSP 中,请参考文档[如何导入板级支持包](https://www.renesas.cn/zh/software-tool/flexible-software-package-fsp)
1571454. 请查看文档:[使用瑞萨 FSP 配置工具](./docs/使用瑞萨FSP配置工具.md)。在 MDK 中通过添加自定义命名来打开当前工程的 FSP 配置。
158146
159147**ENV 配置**
@@ -169,13 +157,6 @@ void hal_entry(void)
1691574. 输入`scons --target=mdk5` 命令重新生成工程。
170158
171159
172- ## FAQ
173-
174- ### 使用 MDK 的 DEBUG 时如果遇到提示 “Error: Flash Download failed Cortex-M33” 怎么办?
175-
176- 可按照下图操作,修改 Utilities 中的选项:
177-
178- 
179160
180161## 联系人信息
181162
0 commit comments