查看: 533|回复: 1

【瑞萨RA4系列开发板体验】基于Renesas FSP配置USART

[复制链接]

116

主题

133

帖子

3768

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3768
发表于 2023-2-1 10:01:59 | 显示全部楼层 |阅读模式
【瑞萨RA4系列开发板体验】基于Renesas FSP配置USART
作者:大菠萝Alpha

串口通讯 (Serial Communication) 是一种设备间非常常用的串行通讯方式,因为它简单便捷,因此大部分电子设备都支持该通讯方式,电子工程师在调试设备时也经常使用该通讯方式输出调试信息。
Renesas SCI包括USART、SPI等规格的串行通信技术,具体包括:
Asynchronous interfaces (UART and Asynchronous Communications Interface Adapter (ACIA))
● 8-bit clock synchronous interface
● Simple IIC (master-only)
● Simple SPI
● Smart card interface
● Manchester interface
● Extended Serial interface


在keil工程中,打开FSP配置:

之后跳出FSP工具的界面,选择R7FA4M2AD3CFP MCU,配置USART9,可以知道对应的Pin是109和110。

配置串口,之后推出FSP工具并保存。

执行编译:
  1. Build started: Project: RA4M2_CoreMark
  2. *** Using Compiler 'V6.18', folder: 'D:\Keil_v537\ARM\ARMCLANG\Bin'
  3. Build target 'Target 1'
  4. compiling hal_entry.c...
  5. linking...
  6. Program Size: Code=9440 RO-data=1204 RW-data=8 ZI-data=4972  
  7. After Build - User command #1: cmd /c "start "Renesas" /w cmd /c ""D:/Keil_v537/Packs/Renesas/RA_DFP/4.1.0/launcher\rasc_launcher.bat" "4.1.0" -nosplash --gensmartbundle --compiler ARMv6 "D:\RA\ra4m2-coremark-main\configuration.xml" "D:\RA\hello\Objects\hello.axf" 2> "%TEMP%\rasc_stderr.out"""
  8. ".\Objects\hello.axf" - 0 Error(s), 0 Warning(s).
  9. Build Time Elapsed:  00:00:01
  10. Load "D:\RA\hello\Objects\hello.axf"
  11. Erase Done.
  12. Programming Done.
  13. Verify OK.
  14. Application running ...
  15. Flash Load finished at 20:39:33
复制代码
下载固件,使用的是CMSIS-DAP:


程序跑起来:

Log如下:


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

3

主题

195

帖子

1191

积分

金牌会员

Rank: 6Rank: 6

积分
1191
发表于 2023-3-14 11:15:04 | 显示全部楼层

不错,学习一下
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

用户排行榜

RA助手

主题: 116帖子:133精华:0

RA_Lance

主题: 92帖子:132精华:9

lugl

主题: 38帖子:126精华:0

xujiwei263

主题: 16帖子:73精华:0

books咦

主题: 11帖子:11精华:2

Juggernaut

主题: 9帖子:95精华:0
快速回复 返回顶部 返回列表