串口通讯 (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工具并保存。
执行编译:
Build started: Project: RA4M2_CoreMark
*** Using Compiler 'V6.18', folder: 'D:\Keil_v537\ARM\ARMCLANG\Bin'
Build target 'Target 1'
compiling hal_entry.c...
linking...
Program Size: Code=9440 RO-data=1204 RW-data=8 ZI-data=4972
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"""
".\Objects\hello.axf" - 0 Error(s), 0 Warning(s).
Build Time Elapsed: 00:00:01
Load "D:\RA\hello\Objects\hello.axf"
Erase Done.
Programming Done.
Verify OK.
Application running ...
Flash Load finished at 20:39:33
下载固件,使用的是CMSIS-DAP:
程序跑起来:
Log如下:
##感谢阅读##
|