lowRISC / lowRISC/epic-c-example
Loading flash at address 0x0ABCD000 causes example to hang
オープン
まだ誰も着手していません。
- 主要言語
- C
- スター
- 14
- フォーク
- 5
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Applying this patch causes the example to hang:
diff --git a/kernel.c b/kernel.c
index be748fd..07da912 100644
--- a/kernel.c
+++ b/kernel.c
@@ -18,7 +18,7 @@ int start() {
// (0 - 0x2000) are reserved by spike and the third page contains the
// host-target interface symbols defined in the kernel (0x2000, 0x2008).
uint32_t sram_addr = 0x12340000;
- uint32_t flash_addr = 0x81234000;
+ uint32_t flash_addr = 0x0ABCD000;
const void* elf_data = cm; // App to load.
It may just be that this causes two memory regions to overlap but by my calculations there is enough space.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
sram_addr と flash_addr が代入される kernel.c の start() から始め、flash_addr を 0x0ABCD000 に設定してハングを再現してください。リージョンが重複または競合しているかどうかを判断するため、example のメモリレイアウトとロード経路を追跡してください。そのアドレスで example がハングせずにロードされ、実行されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- c
- 領域
- embedded-iot
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100