このページでは

C

EK-RA8D1 キット

このトピックでは、Renesas の「EK-RA8D1」に関するボード固有の情報を提供します。

ボードの特長

  • ARM Cortex-M85、2 MBのフラッシュメモリ、1 MBのSRAMを搭載したR7FA8D1BHECBD MCU
  • 4.5インチ、480×854のLCDタッチディスプレイ
  • 64 MB SDRAM
  • 64MBの外部Octo-SPIフラッシュ

対応カラー深度

このボードのリファレンスポートは、16bppの色深度に対応しています。詳細については、「QUL_COLOR_DEPTH」および「色深度」を参照してください。

Qt Quick Ultraliteの事前ビルド済みライブラリを使用したアプリケーションの構築

  1. ビルドしたい例のCMakeプロジェクトファイルを開きます。
  2. Configure Project 」ウィンドウで:
    1. 先ほど作成したキットを選択します。例えば、 Qt for MCUs 2.12.2 - Desktop 32bpp.
    2. Configure Project 」を選択します。

Qt Creator を使用した MCU プロジェクトの設定。

プロジェクトの設定が完了したら、「Run 」を選択するか、キーボードのCtrl+rキーを押して、バイナリをビルドし、ターゲットに書き込みます。

デバッグメッセージの読み取り

デフォルトでは、ログデータは JLink CDC UART ポート(USB COM ポート)にリダイレクトされます。

ポート設定

設定
1秒あたりのビット数115200
データビット8
パリティNone
ストップビット1
フロー制御None

デバッグ

Renesas e2studio

Renesas e2studio では、カスタム設定を使用してプロジェクトのデバッグを行うことができます。

  1. Bare Metal を作成します-EK-RA8D1用の最小構成プロジェクトです。
  2. プロジェクトをビルドします。
  3. Qt Quick Ultralite の .elf ファイルを、e2studio プロジェクトの Debug フォルダにコピーします。
  4. 元の .sbd ファイルのコピーを作成し、Qt Quick Ultralite .elf ファイルと同じ名前に変更します。
  5. トップメニューから「実行」を選択します。
  6. [Debug Configurations...] を選択します。
  7. Renesas GDB Hardware Debugging」を選択します。
  8. C/C++ アプリケーション:」に「Qt Quick Ultralite」の .elf ファイルを指定します
  9. [適用] および [閉じる] を選択します。
  10. 「デバッグ」モードで起動を選択します。

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 SrcPLL1P
PLL2 SrcXTAL
PLL2 Mulx40.0
LCDCLK SrcPLL2P
OCTASPICLK SrcPLL2P

注:SCICLKは 120MHzである必要があります

注:LCDCLKは 200MHzにする必要があります

注:OCTASPICLK は100MHzにする必要があります

スタック

以下のスタックを追加し、設定を行ってください:

Analog > 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

グラフィックス > グラフィックスLCD (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

入力 > 外部IRQ (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 ModeGTIOCA or GTIOCB に設定されており、ピンP404Peripheral mode になっていることを確認してください。

リソースストレージセクション

デフォルトでは、アプリケーションの画像リソースデータは内部フラッシュメモリに保存されます。ただし、リソースデータを外部フラッシュメモリに保存するように設定することも可能です。ImageFiles.files を使用してアプリケーションにリソースを追加する際は、QmlProject プロパティImageFiles.MCU.resourceStorageSectionQulResourceDataInExternalFlash に設定してください。

同様に、フォントリソースデータもデフォルトでは内部フラッシュメモリに保存されます。QulFontResourceDataInExternalFlash を指定して、QmlProjectプロパティのMCU.Config.fontFilesStorageSectionを使用することで、フォントリソースデータを外部フラッシュメモリに保存するように設定できます。

特定のQtライセンスの下で利用可能です。
詳細はこちら。