Changes between Version 1 and Version 2 of azure_iot_hub_riscv


Ignore:
Timestamp:
Aug 21, 2020, 9:20:11 AM (4 years ago)
Author:
coas-nagasima
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • azure_iot_hub_riscv

    v1 v2  
    11= TOPPERS BASE PLATFORM (RISC-V) とESPのATコマンドでAzure IoTに接続するサンプルプログラム
    22
    3 TOPPERS BASE PLATFORM (RISC-V) を使い ESP32 のATコマンドのTCPを通して、Azure IoTに接続するサンプルアプリ。
     3[https://www.toppers.jp/edu-baseplatform.html TOPPERS BASE PLATFORM (RISC-V)]を使い ESP32 のATコマンドのTCPを通して、Azure IoTに接続するサンプルアプリ。
    44[https://dl.sipeed.com/MAIX/HDK/Sipeed-Maix-Bit Sipeed Maix Bit]を使用。ESP32とはIO6とIO7のUARTで通信します。
     5
     6ソースコードは[https://dev.toppers.jp/svn/ecnl/2013/branches/base_platform_rv_azure_iot ここ]にあります。
     7
     8== 開発環境
     9
     10ビルドはGCCとGNU makeを使用します。
     11ここではWindowsでの開発環境について説明します。
     12GCCは[https://github.com/xpack-dev-tools/riscv-none-embed-gcc-xpack/releases/ ここ]で、
     13GNU makeは[https://www.msys2.org/ MSYS2]のものを使います。
     14IDEとして、[https://code.visualstudio.com/ Visual Studio Code]を使います。
     15
     16MSYS2とVisual Studio Codeの環境構築は、下記を参照してください。
     17https://qiita.com/takasehideki/items/fa0a1a6567a22f469515
     18ARM GCCの環境構築ですので、RISC-V GCCに置き換えて読んでください。
     19Visual Studio Codeの設定は、GCCが「C:\xpack-riscv-none-embed-gcc-8.3.0-1.2」に展開してある設定になっています。
     20
     21Sipeed Maix BitのCPU Kendryte K210向けのGCCも使用できますが、下記の違いを直す必要があります。
     22||-||xpack||Kendryte||備考||
     23||インストールしたフォルダ||C:\xpack-riscv-none-embed-gcc-8.3.0-1.2||C:\kendryte-toolchain||各自の環境に合わせる||
     24||コマンドプリフィックス||riscv-none-embed||riscv64-unknown-elf||-||
     25||marchオプション||-march=rv64imafdc||-march=rv64imafc||-||
     26||mabiオプション||-mabi=lp64d||-mabi=lp64f||-||
     27
     28TOPPERS BASE PLATFORMのリリースに合わせてxpackを使用しています。
     29
     30== ビルド
     31
     32ルートフォルダにある「azure_iothub.code-workspace」を、Visual Studio Codeで開きます。
     33初回の起動では下記の手順が必要です。
     34「Ctrl+@」でターミナルを開きます。この時警告のポップアップが出るので、「許可」してください。
     35Visual Studio Codeを一度終了して、もう一度起動します。
     36「Ctrl+Shift+B」でビルドが始まります。
     37「app_iothub_client\Debug\app_iothub_client.bin」が出力ファイルで、これを書き込みます。
     38
     39== 書き込み
     40
     41[https://github.com/kendryte/kendryte-flash-windows/releases K-Flash]を使って書き込みます。
     42ボーレートは115200が安定して書き込めます。
    543
    644== Lisence
    745
    846||フォルダ||名称||ライセンス||
    9 ||app_iothub_client||アプリ||ファイルヘッダー参照||
     47||app_iothub_client/src||アプリ||ファイルヘッダー参照||
     48||app_iothub_client/kendryte||[https://github.com/kendryte/kendryte-standalone-sdk Kendryte K210 standalone SDK]||Apache-2.0 License||
    1049||asp_baseplatform||[https://www.toppers.jp/edu-baseplatform.html TOPPERS BASE PLATFORM]||[https://www.toppers.jp/license.html TOPPERS License]||
    1150||azure_iot_sdk||[https://github.com/Azure/azure-iot-sdk-c Azure IoT C SDKs and Libraries]||MIT License||