Skip to content

How to use the Smart Configurator

ShunichiroNakamura edited this page Sep 16, 2022 · 5 revisions

Purpose

  • Give an outline of how to use Smart Configurator for RX
  • Describe based on the operation of e2 studio 2020-07 and CS+ V8.03(Recheck in CS+ 64-bit version)
  • Call Smart Configurator "SC" in this page

Outline of Smart Configurator

What is Smart Configurator?

  • SC is a utility with the concept of "Enables to combine Software freely"
  • SC mainly provides the following functions.
    • Introduce and set driver software and middleware utilizing RX MCU peripheral functions
      (These soft/middleware are provided as the following components)

      • Firmware Integration Technology (FIT) module
      • Code generation(CG)module
    • Clock and pin setting with GUI

    • Function to generate source

  • Refer to the following applications for details

In Timer system represented by CMT and communication system represented by SCI, its setting values need to be adjusted by software according to the clock speed of clock signal wired to each.

  • Users originally need to perform the coding of this software by referring to the MCU manual. However, as it has a wide variety of setting items, we have prepared a mechanism to support this by tools like SC.
  • Users (especially application designer) can instruct from software to hardware without worrying about what MHz the clock source is or how the setting inside PLL is, for example “baud rate is 115200bps” with API level, thereby improving software development efficiency.
  • In addition, designers with full knowledge of RX family products perform development and maintenance (continuous bug fix) of the driver software for RX family-mounted circuit, such as CMT, SCI, Ether, USB and SDHI with API design in “FIT module” format for major RX group and distribute FIT module packaged by one as “RX Driver Package”
  • Therefore, users can focus on the application development without worrying about detailed hardware differences in RX family products and hardware errata information.

Generic document

How to use

Create project with SC and boot SC

In the case of e2 studio

  1. Create project from scratch
    • File -> New -> Project
    • Wizard -> C/C++ -> C/C++ Project -> Next
      • All -> Renesas CC-RX C/C++ Executable Project
        • Enter any name on Project name -> Next *Select device in Device Settings -> Target device
          • Select RTOS and version in Toolchain Settings -> RTOS
          • Configuration -> Generate Hardware Debug configuration ->Select emulator you use
          • Select other setting as you like -> Next
            • Use Smart ConfiguratorにCheck -> Exit
  2. Double click [Project name].scfg of newly created project
    • SC is booted

In the case of CS+

  1. Create new project
    • File -> Create new project
    • Wizard -> Microcontroller -> RX
      • Microcontroller which is used -> Select device which is used
      • Project type -> Application (CC-RX)
      • Enter any name in Project name -> Next
      • Select other setting as you like -> Create
  2. Double click Smart Configurator (Design tool) of newly created project
    • SC is booted

Set board

  1. Press Board tab on the bottom of the SC screen
  2. Select board you want to use from Board category (Read Board Configuration File(BDF) into project)
    • By reading BDF, "pin setting" on Smart Configurator is automated.
      • ★Future improvement★ The settings of component and clock will be fully automated.
    • If your intended board does not appear as option, BDF can be installed from Download board information.
      • ★Future improvement★ BDF will be able to be selected and installed with project creation wizard.

Set clock

  • ★Future improvement★ In tandem with BDF The setting will be unnecessary in e2 studio 2020-xx (Future version) (necessary before e2 studio 2020-07)
  1. Press Clocktab on the bottom of SC
  2. By changing the values of check box and pulldown menu, perform clock setting
  1. Check build error(Not required but recommended)
    1. Execute Generate code temporarily, and skeleton program according to the content which is set with SC is outputted.
    2. Execute the build of project, and check that an error is not displayed on the console. In the case of * e2 studio ,execute Project -> Build all on the top screen of e2 studio to build.

Embed component

Add component

  1. Press Componenttab on the bottom of SC screen
  2. Press Add component in Component pane on the left of SC screen
  3. Select component (FIT or CG)you want to add in the added window
    (Can select several components by clicking while pressing Ctrl key)
  4. Check that the component which you added in the above step is displayed on Component pane on the left of SC screen.

How to solve the situation when your intended FIT module is not displayed

How to import FIT module manually

Official document:Firmware Integration Technology (FIT) -> RX Family Manually Importing Firmware Integration Technology Modules

  1. Obtain your intended FIT module from RX Driver Package (RDP)
  2. Copy the FIT module obtained in the above step to Save destination folder of FIT module.
  3. After closing SC, boot IDE and check again if your intended module is displayed or not.

Save destination folder of FIT module

  • FIT module displayed in component adding operation refers to the following folder (Save destination folder of FIT module)
    • The file path which is set in Add component -> Basic setting -> Module Download -> Location (RX)
      • Default of e2 studio: C:\Users\[User name]\.eclipse\org.eclipse.platform_download\FITModules
    • One FIT module consists of the following files(x: Function name, n: version)
      • r_xxx_vn.nn.zip:Module itself in which source code and documents are compressed.
      • r_xxx_vn.nn.xml:Module information file necessary to SC liaison
      • r_xxx_vn.nn.mdf:Definition file which is used for SC component setting(Only some FIT modules)
      • r_xxx_vn.nn_extend.mdf:Definition file which is used for SC component setting(Only some FIT modules)
  • Right after manually adding FIT module, it is not recognized by Smart Configurator.
    • Reboot e2 studio or CS+ temporarily

RX Driver Package (RDP)

  • RX Driver Package (RDP) is a free package including BSP for RX MCUs, driver and middleware.
  • The above software is provided as FIT module.
  • The version of included FIT module varies with that of RDP.
    • By clicking previous version information of bottom of the page, you can refer to a link destination of the previous versions of RDP.
    • To have Smart Configurator recognize the FIT module included in the previous RDP versions, you need to operate manually ⇒ [Save destination folder of #FIT module ](Save destination folder of #FIT module)
  • You can download RDP from SC(Note: only the latest version)
    1. Add component -> Download other software
    2. When region selection window is displayed, select the region you live in such as Japan -> OK
    3. Select RDP -> Specify Module folder―・Path as an option -> Download -> Agree
      • The FIT module included in RDP is automatically expanded in Module folder―・Path
  • For the MCUs before RX64M model such as RX63N, use FIT module with RDP V1.19
    • These MCUs do not support the latest FIT module.

Set component

  1. Press Componenttab on the bottom of SC screen
  2. Select a component you want to set in Componentpane on the left of SC screen.
  3. Change the setting in setting pane on the center of SC screen.

Change the version of component

  • Execute according to the situation
  1. Press Component tab on the bottom of SC screen
  2. Right-click a component of which you want to change the version in component pane on the left of SC screen.
  3. Press Change version in the context menu which is displayed
  4. In the displayed window、Specify the version of the change destinationVersion after the change -> Next
  5. Check setting items which are changed in the screen of changed setting which will be displayed next. -> If there is no problem,Exit
  6. Generate code is automatically executed, and component version is changed.
  7. Right-click the component of which version was changed in Component pane on the left of SC screen. -> Press Change version and check that the version has been automatically changed.

Delete component

  • Execute according to the situation
  1. Press Component tab on the bottom of SC screen
  2. Select a component you want to delete in Componentpane on the left of SC screen
  3. Press Delete component in Component pane on the left of SC screen
  4. Press Yes in the displayed window for checking.
  5. Check that your intended component is deleted in Component pane on the left of SC screen.

Pin setting

  1. Press Pin tab on the bottom of SC screen
  2. Select the resource of a pin you want to set inHardware resource pane on the left of SC screen.
  3. Check the box of Use in Pin function pane on the center of SC screen to select pins which you want to use.
  4. Change pulldown menu of Pin assignment in Pin function pane on the center of SC screen to set the port number of a pin you want to use.
    • Customize the number of pins and ports which you use, by referring to the circuit diagram.

Set interrupt

  • [Note] not linked with FIT interrupt setting
  1. Press Interrupttab on the bottom of SC screen
  2. Select an interrupt you want to use to set the function of Interrupt and priority level.
  3. Select an interrupt you want to use and press Move upward and Move downward to change vector number

Generate code

  1. Press Generate codebutton on the upper right of SC screen.
  2. Program code according to the content which is set on SC is automatically generated.
  3. Execute build of the project and check that an error is not displayed on the console. In the case of * e2 studio, execute Project -> Build all on the top of e2 studio screen to build.
  • The source code subject of SC control (Source program under .\src\smc_gen\) right before source generation is backed up in .\trash\folder right after executing source generation.

Home

  1. Home

Quick Start Guide

  1. Confirm factory image behavior
  2. Update firmware from SD card
  3. Revert to factory image

Functions that is available with updated F/W

  1. OTA via AWS with FreeRTOS
  2. Network Benchmark
  3. How to use Tracealyzer
  4. D2 audio
  5. MEMS mic
  6. ESP32
  7. SSL acceleration by Trusted Secure IP(TSIP)

Command list

  1. Command list

For Developer

initial firmware base

  1. How to debug
  2. Custom firmware
  3. Design memo
  4. Trouble Shooting

new project base (bare metal)

  1. Generate new project (bare metal)
  2. 1+SCI_
  3. 1+Trusted Secure IP Driver
  4. 1+QSPI+Serial flash driver (for Macronix)
  5. 1+Ether+TCP/IP_
  6. 1+Ether+TCP/IP+Web Server_
  7. 1+SDHI+SD Card Driver+Filesystem_
  8. 1+GLCDC+DRW2D+emWin(Segger GUI Middleware)
  9. 1+SSI+Audio playback and recording

new project base (FreeRTOS(Kernel Only))

  1. Generate new project (FreeRTOS(Kernel Only))
  2. Application of queue Serialization of print debug
  3. How to implement Tracealyzer Recorder
  4. How to implement Tracealyzer Recorder for complex system

new project base (FreeRTOS(with IoT Libaries))

  1. Generate new project (FreeRTOS(with IoT Libaries))

development tool

  1. How to use the Smart Configurator
  2. How to use the Audacity

ホーム

  1. ホーム

クイックスタートガイド

  1. 初期ファームウェア動作確認方法
  2. SDカードを用いたファームアップデート方法
  3. 初期ファームウェアに戻す方法

F/W更新で利用可能な機能

  1. AWSとFreeRTOSを用いたOTAによるファームアップデート方法
  2. ネットワークベンチマーク
  3. Tracealyzer使用方法
  4. D2オーディオ活用
  5. MEMSマイク活用
  6. ESP32活用
  7. Trusted Secure IP(TSIP)によるSSLの加速

コマンドリスト

  1. コマンドリスト

開発者向け

初期ファームウェアベース

  1. デバッグ方法
  2. ファームウェアをカスタムする方法
  3. 設計メモ
  4. トラブルシューティング

新規プロジェクトベース(ベアメタル)

  1. 新規プロジェクト作成方法(ベアメタル)
  2. 1+SCI
  3. 1+Trusted Secure IPドライバ
  4. 1+QSPI+シリアルフラッシュドライバ(Macronix用)
  5. 1+Ether+TCP/IP
  6. 1+Ether+TCP/IP+Webサーバ
  7. 1+SDHI+SDカードドライバ+ファイルシステム
  8. 1+GLCDC+DRW2D+emWin(Segger GUIミドルウェア)
  9. 1+SSI+音声再生録音

新規プロジェクトベース(FreeRTOS(Kernel Only))

  1. 新規プロジェクト作成方法(FreeRTOS)
  2. queueの活用 printデバッグのシリアライズ
  3. Tracealyzer Recorderの実装方法
  4. 複雑なシステムのTracealyzer Recorder実装方法

新規プロジェクトベース(FreeRTOS(with IoT Libaries))

  1. 新規プロジェクト作成方法(FreeRTOS(with IoT Libraries))

開発ツール

  1. スマート・コンフィグレータの使用方法
  2. Audacityの使用方法
Clone this wiki locally