Proposal: first-class RT-Thread / Edgi-Talk host (M55, shared ESP UI stack)

オープン
#577 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
8/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
c, rust, typescript
領域
embedded-iot

調査の方向性

This is a design proposal, not a task to start on. The maintainers must first answer the five open questions: the host directory name, the native target policy, the docs page, the host profile path, and how to handle the esp_err and heap_caps coupling. The existing hosts/esp-idf/components sources are the code to share rather than fork. Done means a maintainer decision on those questions, not a patch.

索引モデルが issue の本文から書いたものです。

説明

Summary

Proposal to add a first-class RT-Thread / Edgi-Talk host tree to PocketJS, proven on PSoC E84 (Cortex-M55 + HyperRAM, 800×480). Product firmware still owns LCD, touch, Wi-Fi, and BT — same philosophy as hosts/esp-idf.

Full write-up (on our fork):
https://github.com/1024971823/pocketjs/blob/main/hosts/rt-thread-edgitalk/docs/upstream-proposal.md

Ready-to-paste PR body:
https://github.com/1024971823/pocketjs/blob/main/hosts/rt-thread-edgitalk/docs/upstream-pr-body.md

Working fork (merged): https://github.com/1024971823/pocketjs
Board/product overlay (out of monorepo scope): https://github.com/1024971823/PocketJS_for_Edgi-Talk

Motivation

Edgi-Talk already runs package / guest / ui_core / ui_qjs / render_rgb565 on M55 via an overlay that consumes the ESP-IDF component C sources and rebuilds Rust for thumbv8m.main-none-eabihf. Promoting the reusable host pieces into the monorepo avoids a forever private fork and gives pocket-nexus a documented third native target (or an explicit source-build-only policy).

In scope for upstream

  • hosts/rt-thread-edgitalk/ (or a generic hosts/rt-thread/) — docs, native glue, SCons include, shared-component policy
  • Tooling analogous to esp-idf-native / contracts for M55
  • Optional in-tree example app (apps/edgitalk-m55-smoke) if desired
  • Share existing hosts/esp-idf/components/{package,guest,ui_*,render_rgb565} — do not fork those C sources

Explicitly out of scope

  • BSP patches, CYW BT firmware blobs, KitProg3 / flash scripts
  • Full RT-Thread board project / Infineon-specific bring-up
  • Product Wi-Fi / BT / game / __edgi bridges

Asks for maintainers

  1. Host directory name: rt-thread-edgitalk vs generic rt-thread
  2. Native target: document thumbv8m.main-none-eabihf or mark source-build only (no Registry archives)
  3. Docs page like /docs/rt-thread/
  4. Host profile path toward pocket-rtt-host-1 / platform: "rt-thread" (today apps still borrow pocket-idf-host-1)
  5. Preference: reduce esp_err / heap_caps coupling upstream vs bless a thin host OSAL

Hardware note

We have run clean build + KitProg3 flash of the overlay firmware on Edgi-Talk hardware; PocketJS reports frames= / ui= / lcd= over serial with Wi-Fi and BT advertising. Hardware gates (frame hash, heap steady-state, present cadence @ 800×480) would be a follow-up, not a blocker for reviewing the proposal.

Happy to open a draft PR from https://github.com/1024971823/pocketjs when you want code in review, or adjust scope first.

主要言語
TypeScript
スター
1.6k
フォーク
88
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pocket-stack/pocketjs のほかの issue

pocket-stack/pocketjs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。