Skip to content

VSCode extension for prototyping of embedded-boards

License

Notifications You must be signed in to change notification settings

kimushu/rubic-vscode

Repository files navigation

Rubic

AppVeyor Travis CI

This extension makes it easy to develop embedded-board such as PERIDOT and GR-CITRUS from VSCode.
To start development with Rubic, open the work folder in VSCode, press F1 to open command palette and type "rubic". Find "Show Rubic board catalog" in command pallete and select it. See Quick Start for detail.

Quick Start

  1. Open a folder to place files in VSCode
  2. Press F1 and type "Rubic"
  3. Select "Show Rubic board catalog"
  4. Select the board which you want to use
  5. Select the firmware which has features what you want to use
  6. Select the release. Normally, you can use the newest one which is located at the top of the release list.
  7. Select the variation if the chosen firmware has multiple varations.
  8. Save your board configuration
  9. Write your code in main.rb (for mruby engine) or main.js (for Duktape engine)
  10. Press F5 and select "Rubic Debugger" to create debug configuration.
  11. Press F5 again to launch your program on the board!

Features

  • Compiling Ruby source (*.rb) into mruby binary (*.mrb)
  • Communicate with boards via VCP (Serial port)
  • Reading and writing files on internal storage of the board
  • Updating firmware of the board
  • Launching program on the board

Supported boards and programming languages

Known Issues

Because this extension includes executable binary of mruby compiler (mrbc.exe on Windows, mrbc on mac/Linux), some anti-virus software may detect it as a suspicious program. Please configure that binary is safe.

Extension Settings

  • rubic.catalog.showPreview (Default value: false)
    • If true, preview versions will be listed in Rubic board catalog.
    • This is for Rubic maintainers and firmware developers.
    • Preview version firmwares may not be well-tested.

Feedback

License

MIT


Rubic (日本語)

この拡張機能は、PERIDOTやGR-CITRUSなどの組み込みボードをVSCode上で開発するためのものです。
Rubicを使った開発を始めるには、作業用のフォルダをVSCodeで開き、F1でコマンドパレットを開いて「rubic」と入力します。そして「Rubicのボードカタログを開く」を選択してください。詳しい手順についてはクイックスタートをご覧下さい。

クイックスタート

  1. VSCodeで、作業するフォルダを開きます。
  2. F1を押し、「Rubic」と入力します。
  3. 「Rubicのボードカタログを開く」を選びます。
  4. 使用したいボードをカタログ内のリストから選択してください。
  5. 使用したい機能を持つファームウェアをカタログ内のリストから選択してください。
  6. リリースを選択してください。通常はリストの一番上にある最新版を使うとよいでしょう。
  7. 選んだファームウェアが複数のバリエーションを持つ場合、使用するバリエーションを選んでください。
  8. ボード設定を保存してください。
  9. 実行したいコードを、main.rb(mrubyの場合)/main.js(Duktapeの場合)に記述してください。
  10. F5を押し、「Rubicデバッガ」を選ぶと、デバッグ設定が作成されます。
    (このとき「launch.json」が自動的に開かれますが、編集する必要はありませんので閉じて下さい。)
  11. もう一度F5を押すと、あなたの書いたプログラムがボードに転送され、実行されます。

機能

  • Rubyソースコード(*.rb)をmrubyバイナリ(*.mrb)に変換する機能
  • シリアルポート(VCP)経由でボードと通信する機能
  • ボード内のストレージにファイルを読み書きする機能
  • ボードのファームウェアを書き換える機能
  • ボード上でプログラムを実行する機能

対応しているボードおよびプログラミング言語

既知の問題

この拡張機能はmrubyコンパイラのバイナリファイル(Windowsの場合mrbc.exe、mac/Linuxの場合mrbc)を含んでいるため、一部のアンチウイルスソフトウェアが疑わしいプログラムとして検出する場合があります。その場合、これらのバイナリファイルは安全であると例外設定してください。

拡張機能の設定

  • rubic.catalog.showPreview (デフォルト値: false)
    • プレビュー版を表示するか否か。trueにすると、一般向け公開していないファームウェアがカタログに列挙されます。
    • Rubic自体の開発者ならびにファームウェア開発者向けの機能です。
    • プレビュー版のファームウェアは十分なテストがされてない場合があります。

フィードバック

ライセンス

MIT