本页内容

C

EK-RA8D1 套件

本主题提供了关于Renesas' EK-RA8D1主板的具体信息。

电路板特性

  • R7FA8D1BHECBD 微控制器,搭载 ARM Cortex-M85 处理器、2 MB 闪存、1 MB SRAM
  • 4.5 英寸 480x854 LCD 触摸屏
  • 64 MB SDRAM
  • 64 MB 外部 Octo-SPI 闪存

支持的色深

该板的参考端口支持 16bpp 色深。有关更多信息,请参阅QUL_COLOR_DEPTH 和“色深”部分。

使用预编译的Qt Quick Ultralite库构建应用程序

  1. 打开要构建的示例对应的 CMake 项目文件。
  2. 在“Configure Project ”窗口中:
    1. 选择您之前创建的套件。例如, Qt for MCUs 2.12.3 - Desktop 32bpp.
    2. 选择“Configure Project ”。

使用 Qt Creator 配置 MCU 项目。

项目配置完成后,选择“Run ”,或按键盘上的Ctrl+r 键,以构建二进制文件并将其烧录到目标设备上。

读取调试信息

默认情况下,日志数据会被重定向到 JLink CDC UART 端口(USB COM 端口)。

端口设置

设置值
每秒位数115200
数据位8
奇偶校验None
停止位1
流量控制None

调试

Renesas e2studio

Renesas e2studio 允许您使用自定义配置来调试项目。

  1. 创建一个 EK-RA8D1 的“Bare Metal - Minimal”项目。
  2. 构建该项目。
  3. 将Qt Quick Ultralite的.elf文件复制到e2studio项目的Debug文件夹中。
  4. 复制原始的 .sbd 文件,并将其重命名为与Qt Quick Ultralite .elf 文件相同的名称。
  5. 从顶部菜单中选择“运行”。
  6. 选择“调试配置...”
  7. 选择“Renesas GDB 硬件调试”。
  8. 将Qt Quick Ultralite .elf文件设置为“C/C++应用程序:”。
  9. 选择“应用”并“关闭”。
  10. 选择以“调试”模式启动。

Renesas e2studio 中的默认 FSP 配置

您可以在platform/boards/renesas/ek-ra8d1-common/3rdparty/e2_project/configuration.xml 上找到用于生成以下配置的 FSP 配置 .xml 文件。

注意: 如果表格中未指定该属性,请使用 其默认值。

BSP

属性值
RA Common > Main stack size (bytes)65536
RA Common > Heap size (bytes)262144

时钟

Clock setting价值
SCICLK SrcPLL1P
PLL2 SrcXTAL
PLL2 Mulx40.0
LCDCLK SrcPLL2P
OCTASPICLK SrcPLL2P

注:SCICLK 应为 120MHz

注:LCDCLK 应为 200MHz

注意:OCTASPICLK 应为 100MHz

堆栈

添加以下堆栈并进行配置:

模拟 > ADC(r_adc )

属性值
Module > General > Nameg_adc0
Module > Input > Channel Scan Mask > Channel 2Selected
Pins > AN02P006

连接性 > I2C 主设备 (r_iic_master)

属性值
Module > Nameg_i2c_touch
Module > Channel1
Module > RateStandard
Module > Rise Time (ns)120
Module > Fall Time (ns)120
Module > Duty Cycle (%)50
Module > Slave Address0x00
Module > Address Mode7-bit
Module > Timeout ModeShort Mode
Module > Callbacktouch_i2c_callback
Module > Interrupt Priority LevelPriority 6
Pins > SCL1P512
Pins > SDA1P511

连接性 > UART (r_sci_b_uart)

属性值
Module > General > Nameg_uart0
Module > General > Channel9
Module > General > Data Bits8bits
Module > General > ParityNone
Module > General > Stop Bits1bit
Module > Interrupts > Callbackuser_uart_callback
Pins > RXD9PA15
Pins > TXD9PA14

图形 > D/AVE 2D 端口接口 (r_drw)

属性值
Common > Allow Indirect ModeEnabled
Common > Memory AllocationCustom
Module D/AVE 2D Port Interface (r_drw) > D2 Device Handle Named2_handle0
Module D/AVE 2D Port Interface (r_drw) > DRW Interrupt PriorityPriority 2

图形 > 图形液晶显示器 (r_glcdc)

属性值
Module > General > Nameg_display0
Module > Interrupts > Callback Functionglcdc_callback
Module > Interrupts > Line Detect Interrupt PriorityPriority 12
Module > Input > Graphics Layer 1 > General > Horizontal size480
Module > Input > Graphics Layer 1 > General > Vertical size854
Module > Input > Graphics Layer 1 > Framebuffer > Number of framebuffers2
Module > Input > Graphics Layer 1 > Framebuffer > Section for framebuffer allocation.sdram
Module > Output > Timing > Horizontal total cycles559
Module > Output > Timing > Horizontal active video cycles480
Module > Output > Timing > Horizontal back porch cycles5
Module > Output > Timing > Horizontal sync signal cycles2
Module > Output > Timing > Horizontal sync signal polarityLow active
Module > Output > Timing > Vertical total lines894
Module > Output > Timing > Vertical active video lines954
Module > Output > Timing > Vertical back porch lines20
Module > Output > Timing > Vertical sync signal cycles3
Module > Output > Timing > Vertical sync signal polarityLow active
Module > Output > Timing > Data Enable Signal PolarityHigh active
Module > Output > Timing > Sync edgeFalling edge
Module > Output > Format > Color format24bits RGB888
Module > TCON > Hsync pin selectLCD_TCON1
Module > TCON > Vsync pin selectLCD_TCON0
Module > TCON > Panel clock division ratio1/8

MIPI 显示屏 (r_mipi_dsi)

属性值
Module > General > Nameg_display0
Module > Low Power > Ultra Low Power State Wakeup Period290

MIPI 物理层(r_mipi_phy )

属性值
Module > DSI PLL Frequency560

输入 > 外部中断 (r_icu)

属性值
Module > Nameg_touch_irq
Module > Channel3
Module > TriggerFalling
Module > Digital FilteringEnabled
Module > Digital Filtering Sample ClockPCLK / 64
Module > Callbacktouch_irq_cb
Module > Pin Interrupt PriorityPriority 5

注意:请确保 引脚P510 的模式为Output mode (Initial Low) 。在 GT911 初始化过程中,该模式将更改为Input mode 。

存储 > OSPI 闪存 (r_ospi_b)

属性值
Common > Memory-mapping Support > Prefetch FunctionEnable
Common > Memory-mapping Support > Combination Function64 Byte
Common > Memory-mapping Support > XiP SupportDisable
Common > DMAC SupportEnable
Common > Autocalibration SupportEnable
Common > DOTF SupportDisable
Module > General > Nameg_ospi_b
Module > General > Channel1
Module > General > Initial Protocol ModeSPI (1S-1S-1S)
Module > General > Initial Address Bytes4
Module > General > Write Status Bit0
Module > General > Write Enable Bit1
Module > General > Sector Erase Size4096
Module > General > Block Erase Size262144
Module > General > Command Set Table(empty)
Module > General > Command Set Table Length0
Module > Defaults > Command Definitions > Page Program Command0x12
Module > Defaults > Command Definitions > Read Command0x0B
Module > Defaults > Command Definitions > Write Enable Command0x06
Module > Defaults > Command Definitions > Status Command0x05
Module > Defaults > Erase Command Definitions > Sector Erase Command0x2121
Module > Defaults > Erase Command Definitions > Block Erase Command0xDCDC
Module > Defaults > Erase Command Definitions > Chip Erase Command0x6060
Module > Defaults > Dummy Cycles > Memory Read Dummy Cycles3
Module > Defaults > Dummy Cycles > Status Read Dummy Cycles0
Module > High-speed Mode > Auto-Calibration > Data latching delay0
Module > High-speed Mode > Auto-Calibration > Auto-Calibration Address0x90002000
Module > High-speed Mode > Command Definitions > Page Program Command0x1212
Module > High-speed Mode > Command Definitions > Dual Read Command0xEEEE
Module > High-speed Mode > Command Definitions > Write Enable Command0x0606
Module > High-speed Mode > Command Definitions > Status Command0x0505
Module > High-speed Mode > Command Definitions > Sector Erase Command0x2121
Module > High-speed Mode > Command Definitions > Block Erase Command0xDCDC
Module > High-speed Mode > Command Definitions > Chip Erase Command0x6060
Module > High-speed Mode > ProtocolDual data rate OPI (8D-8D-8D)
Module > High-speed Mode > Command Length Bytes2
Module > High-speed Mode > Memory Read Dummy Cycles10
Module > High-speed Mode > Status Read Dummy Cycles4
Module > Chip Select Timing Setting > Command Interval2
Module > Chip Select Timing Setting > Pull-up TimingNo Extension
Module > Chip Select Timing Setting > Pull-down TimingNo Extension
Pins > OM_CS1P104
Pins > OM_DQSP801
Pins > OM_ECSINT1P105
Pins > OM_RESETP106
Pins > OM_SCLKP808
Pins > OM_SIO0P100
Pins > OM_SIO1P803
Pins > OM_SIO2P103
Pins > OM_SIO3P101
Pins > OM_SIO4P102
Pins > OM_SIO5P800
Pins > OM_SIO6P802
Pins > OM_SIO7P804

定时器 > 定时器,通用 PWM(r_gpt )

属性值
Common > Pin Output SupportEnabled
Module > General > Nameg_timer_for_qul_tick
Module > General > Channel0
Module > General > ModePeriodic
Module > General > Period1000
Module > General > Period UnitMicroseconds
Module > Output > GTIOCA Output EnabledFalse
Module > Output > GTIOCB Output EnabledFalse
Module > Interrupts > Callbackqul_tick_interrupt_cb
Module > Interrupts > Overflow/Crest Interrupt PriorityPriority 2
Module > Interrupts > Capture A Interrupt PriorityDisabled
Module > Interrupts > Capture B Interrupt PriorityDisabled
Module > Interrupts > Underflow/Trough Interrupt PriorityDisabled

定时器 > 定时器,通用 PWM(r_gpt )

属性值
Common > Pin Output SupportEnabled
Module > General > Nameg_timer_PWM
Module > General > Channel7
Module > General > ModeSaw-wave PWM
Module > General > Period10
Module > General > Period UnitMilliseconds
Module > Output > Duty Cycle Percent75
Module > Output > GTIOCB Output EnabledTrue
Pins > GTIOCBP404

注意: 设置GTIOCB 引脚时, 请确保GPT定时器的Operation Mode 为GTIOCA or GTIOCB ,且引脚P404 处于Peripheral mode 状态。

资源存储部分

默认情况下,应用程序的图像资源数据存储在内部闪存中。不过,您可以选择将资源数据存储在外部闪存中。在使用ImageFiles.files 向应用程序添加资源时,请将 QmlProject 的ImageFiles.MCU.resourceStorageSection属性配置为QulResourceDataInExternalFlash 。

同样地,字体资源数据默认也存储在内部闪存中。您可以通过将 QmlProject 属性MCU.Config.fontFilesStorageSection设置为QulFontResourceDataInExternalFlash ,选择将字体资源数据存储在外部闪存中。

在某些 Qt 许可下可用。
了解更多。