C
EK-RA8D1キット
このトピックでは、Renesas' EK-RA8D1 に関するボード固有の情報を提供します。
ボードの特徴
- ARM Cortex-M85、2 MBフラッシュ、1 MB SRAMを搭載したR7FA8D1BHECBD MCU
- 4.5インチ480x854 LCDタッチ・ディスプレイ
- 64MB SDRAM
- 64MB外部オクトSPIフラッシュ
対応色深度
このボードのリファレンス・ポートは16bppの色深度をサポートしています。詳細については、QUL_COLOR_DEPTHおよび色深度を参照してください。
ビルド済みQt Quick Ultralite ライブラリを使用したアプリケーションのビルド
- ビルドしたいサンプルのCMakeプロジェクトファイルを開きます。
- Configure Project :
- 先ほど作成したキットを選択します。例えば Qt for MCUs 2.12.0 - Desktop 32bpp.
- Configure Project を選択します。

プロジェクトが設定されたら、Run を選択するか、キーボードのCtrl+rを押してバイナリをビルドし、ターゲットにフラッシュします。
デバッグ・メッセージの読み込み
デフォルトでは、ログデータはJLink CDC UARTポート(USB COMポート)にリダイレクトされます。
ポート設定
| 設定値 | 設定値 |
|---|---|
| ビット/秒 | 115200 |
| データビット | 8 |
| パリティ | None |
| ストップ・ビット | 1 |
| フロー制御 | None |
デバッグ
Renesas e2スタジオ
Renesas e2studio では、カスタム設定を使用してプロジェクトをデバッグすることができます。
- Bare Metal -EK-RA8D1 用のMinimalプロジェクトを作成します。
- プロジェクトをビルドします。
- Qt Quick Ultralite .elfファイルをe2studioプロジェクトのDebugフォルダにコピーします。
- 元の.sbdファイルをコピーし、Qt Quick Ultralite .elfファイルと同じ名前に変更します。
- トップメニューからRun を選択します。
- Debug Configurations...を選択します。
- Renesas GDB Hardware Debuggingを選択します。
- Qt Quick Ultralite .elfをC/C++ Application:に設定します。
- ApplyandClose (適用して 閉じる)を選択します。
- デバッグ」モードで起動を選択します。
Renesas e2studioのデフォルトFSP構成
コンフィギュレーションの生成に使用したFSPコンフィギュレーション.xmlファイルは、platform/boards/renesas/ek-ra8d1-common/3rdparty/e2_project/configuration.xml 。
注: 表で指定されていない場合は、プロパティのデフォルト値を使用します。
BSP
| プロパティ | 値 |
|---|---|
| RA Common > Main stack size (bytes) | 65536 |
| RA Common > Heap size (bytes) | 262144 |
時計
| Clock setting | 価値 |
|---|---|
| SCICLK Src | PLL1P |
| PLL2 Src | XTAL |
| PLL2 Mul | x40.0 |
| LCDCLK Src | PLL2P |
| OCTASPICLK Src | PLL2P |
注: SCICLKは120MHzでなければならない
注: LCDCLKは200MHzであるべきである
注 : OCTASPICLKは100MHzであるべきである
スタック
以下のスタックを追加し、設定する:
アナログ > ADC (r_adc)
| プロパティ | 値 |
|---|---|
| Module > General > Name | g_adc0 |
| Module > Input > Channel Scan Mask > Channel 2 | Selected |
| Pins > AN02 | P006 |
接続性 > I2Cマスター (r_iic_master)
| プロパティ | 値 |
|---|---|
| Module > Name | g_i2c_touch |
| Module > Channel | 1 |
| Module > Rate | Standard |
| Module > Rise Time (ns) | 120 |
| Module > Fall Time (ns) | 120 |
| Module > Duty Cycle (%) | 50 |
| Module > Slave Address | 0x00 |
| Module > Address Mode | 7-bit |
| Module > Timeout Mode | Short Mode |
| Module > Callback | touch_i2c_callback |
| Module > Interrupt Priority Level | Priority 6 |
| Pins > SCL1 | P512 |
| Pins > SDA1 | P511 |
コネクティビティ > UART (r_sci_b_uart)
| プロパティ | 値 |
|---|---|
| Module > General > Name | g_uart0 |
| Module > General > Channel | 9 |
| Module > General > Data Bits | 8bits |
| Module > General > Parity | None |
| Module > General > Stop Bits | 1bit |
| Module > Interrupts > Callback | user_uart_callback |
| Pins > RXD9 | PA15 |
| Pins > TXD9 | PA14 |
グラフィックス > D/AVE 2D ポートインターフェース (r_drw)
| プロパティ | 値 |
|---|---|
| Common > Allow Indirect Mode | Enabled |
| Common > Memory Allocation | Custom |
| Module D/AVE 2D Port Interface (r_drw) > D2 Device Handle Name | d2_handle0 |
| Module D/AVE 2D Port Interface (r_drw) > DRW Interrupt Priority | Priority 2 |
グラフィックス > グラフィックスLCD (r_glcdc)
| プロパティ | 値 |
|---|---|
| Module > General > Name | g_display0 |
| Module > Interrupts > Callback Function | glcdc_callback |
| Module > Interrupts > Line Detect Interrupt Priority | Priority 12 |
| Module > Input > Graphics Layer 1 > General > Horizontal size | 480 |
| Module > Input > Graphics Layer 1 > General > Vertical size | 854 |
| Module > Input > Graphics Layer 1 > Framebuffer > Number of framebuffers | 2 |
| Module > Input > Graphics Layer 1 > Framebuffer > Section for framebuffer allocation | .sdram |
| Module > Output > Timing > Horizontal total cycles | 559 |
| Module > Output > Timing > Horizontal active video cycles | 480 |
| Module > Output > Timing > Horizontal back porch cycles | 5 |
| Module > Output > Timing > Horizontal sync signal cycles | 2 |
| Module > Output > Timing > Horizontal sync signal polarity | Low active |
| Module > Output > Timing > Vertical total lines | 894 |
| Module > Output > Timing > Vertical active video lines | 954 |
| Module > Output > Timing > Vertical back porch lines | 20 |
| Module > Output > Timing > Vertical sync signal cycles | 3 |
| Module > Output > Timing > Vertical sync signal polarity | Low active |
| Module > Output > Timing > Data Enable Signal Polarity | High active |
| Module > Output > Timing > Sync edge | Falling edge |
| Module > Output > Format > Color format | 24bits RGB888 |
| Module > TCON > Hsync pin select | LCD_TCON1 |
| Module > TCON > Vsync pin select | LCD_TCON0 |
| Module > TCON > Panel clock division ratio | 1/8 |
MIPIディスプレイ (r_mipi_dsi)
| プロパティ | 値 |
|---|---|
| Module > General > Name | g_display0 |
| Module > Low Power > Ultra Low Power State Wakeup Period | 290 |
MIPI物理層 (r_mipi_phy)
| プロパティ | 値 |
|---|---|
| Module > DSI PLL Frequency | 560 |
入力 > 外部IRQ (r_icu)
| プロパティ | 値 |
|---|---|
| Module > Name | g_touch_irq |
| Module > Channel | 3 |
| Module > Trigger | Falling |
| Module > Digital Filtering | Enabled |
| Module > Digital Filtering Sample Clock | PCLK / 64 |
| Module > Callback | touch_irq_cb |
| Module > Pin Interrupt Priority | Priority 5 |
注: ピンP510 のモードがOutput mode (Initial Low) であることを確認してください。モードは GT911 の初期化プロセス中にInput mode に変更される。
ストレージ > OSPI フラッシュ (r_ospi_b)
| プロパティ | 値 |
|---|---|
| Common > Memory-mapping Support > Prefetch Function | Enable |
| Common > Memory-mapping Support > Combination Function | 64 Byte |
| Common > Memory-mapping Support > XiP Support | Disable |
| Common > DMAC Support | Enable |
| Common > Autocalibration Support | Enable |
| Common > DOTF Support | Disable |
| Module > General > Name | g_ospi_b |
| Module > General > Channel | 1 |
| Module > General > Initial Protocol Mode | SPI (1S-1S-1S) |
| Module > General > Initial Address Bytes | 4 |
| Module > General > Write Status Bit | 0 |
| Module > General > Write Enable Bit | 1 |
| Module > General > Sector Erase Size | 4096 |
| Module > General > Block Erase Size | 262144 |
| Module > General > Command Set Table | (empty) |
| Module > General > Command Set Table Length | 0 |
| Module > Defaults > Command Definitions > Page Program Command | 0x12 |
| Module > Defaults > Command Definitions > Read Command | 0x0B |
| Module > Defaults > Command Definitions > Write Enable Command | 0x06 |
| Module > Defaults > Command Definitions > Status Command | 0x05 |
| Module > Defaults > Erase Command Definitions > Sector Erase Command | 0x2121 |
| Module > Defaults > Erase Command Definitions > Block Erase Command | 0xDCDC |
| Module > Defaults > Erase Command Definitions > Chip Erase Command | 0x6060 |
| Module > Defaults > Dummy Cycles > Memory Read Dummy Cycles | 3 |
| Module > Defaults > Dummy Cycles > Status Read Dummy Cycles | 0 |
| Module > High-speed Mode > Auto-Calibration > Data latching delay | 0 |
| Module > High-speed Mode > Auto-Calibration > Auto-Calibration Address | 0x90002000 |
| Module > High-speed Mode > Command Definitions > Page Program Command | 0x1212 |
| Module > High-speed Mode > Command Definitions > Dual Read Command | 0xEEEE |
| Module > High-speed Mode > Command Definitions > Write Enable Command | 0x0606 |
| Module > High-speed Mode > Command Definitions > Status Command | 0x0505 |
| Module > High-speed Mode > Command Definitions > Sector Erase Command | 0x2121 |
| Module > High-speed Mode > Command Definitions > Block Erase Command | 0xDCDC |
| Module > High-speed Mode > Command Definitions > Chip Erase Command | 0x6060 |
| Module > High-speed Mode > Protocol | Dual data rate OPI (8D-8D-8D) |
| Module > High-speed Mode > Command Length Bytes | 2 |
| Module > High-speed Mode > Memory Read Dummy Cycles | 10 |
| Module > High-speed Mode > Status Read Dummy Cycles | 4 |
| Module > Chip Select Timing Setting > Command Interval | 2 |
| Module > Chip Select Timing Setting > Pull-up Timing | No Extension |
| Module > Chip Select Timing Setting > Pull-down Timing | No Extension |
| Pins > OM_CS1 | P104 |
| Pins > OM_DQS | P801 |
| Pins > OM_ECSINT1 | P105 |
| Pins > OM_RESET | P106 |
| Pins > OM_SCLK | P808 |
| Pins > OM_SIO0 | P100 |
| Pins > OM_SIO1 | P803 |
| Pins > OM_SIO2 | P103 |
| Pins > OM_SIO3 | P101 |
| Pins > OM_SIO4 | P102 |
| Pins > OM_SIO5 | P800 |
| Pins > OM_SIO6 | P802 |
| Pins > OM_SIO7 | P804 |
タイマ > タイマ、一般PWM (r_gpt)
| プロパティ | 値 |
|---|---|
| Common > Pin Output Support | Enabled |
| Module > General > Name | g_timer_for_qul_tick |
| Module > General > Channel | 0 |
| Module > General > Mode | Periodic |
| Module > General > Period | 1000 |
| Module > General > Period Unit | Microseconds |
| Module > Output > GTIOCA Output Enabled | False |
| Module > Output > GTIOCB Output Enabled | False |
| Module > Interrupts > Callback | qul_tick_interrupt_cb |
| Module > Interrupts > Overflow/Crest Interrupt Priority | Priority 2 |
| Module > Interrupts > Capture A Interrupt Priority | Disabled |
| Module > Interrupts > Capture B Interrupt Priority | Disabled |
| Module > Interrupts > Underflow/Trough Interrupt Priority | Disabled |
タイマ > タイマ、一般PWM (r_gpt)
| プロパティ | 値 |
|---|---|
| Common > Pin Output Support | Enabled |
| Module > General > Name | g_timer_PWM |
| Module > General > Channel | 7 |
| Module > General > Mode | Saw-wave PWM |
| Module > General > Period | 10 |
| Module > General > Period Unit | Milliseconds |
| Module > Output > Duty Cycle Percent | 75 |
| Module > Output > GTIOCB Output Enabled | True |
| Pins > GTIOCB | P404 |
注: GTIOCB ピンを設定する場合は、GPT タイマのOperation Mode がGTIOCA or GTIOCB であり、ピンP404 がPeripheral mode であることを確認してください。
リソース記憶セクション
デフォルトでは、アプリケーションのイメージ・リソース・データは内蔵フラッシュ・メモリーに保存されます。ただし、リソース・データを外部フラッシュ・メモリに保存することもできます。ImageFiles.files.MCU.resourceStorageSectionプロパティを使用してアプリケーションにリソースを追加する場合は、QulResourceDataInExternalFlash 。
同様の方法で、フォント・リソース・データもデフォルトでは内部フラッシュ・メモリに保存されます。MCU.Config.fontFilesStorageSectionのQmlProjectプロパティでQulFontResourceDataInExternalFlash 、フォント・リソース・データを外部フラッシュ・メモリに保存することもできます。
特定の Qt ライセンスの下で利用可能です。
詳細をご覧ください。