Loading flash at address 0x0ABCD000 causes example to hang
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- c
- Domain
- embedded-iot
Research direction
Start in kernel.c at start(), where sram_addr and flash_addr are assigned, and reproduce the hang with flash_addr set to 0x0ABCD000. Trace the example's memory layout and loading path to determine whether the regions overlap or conflict. Done means the example loads and runs without hanging at that address.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- C
- Stars
- 14
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lowRISC/epic-c-example
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
lowRISC/epic-c-example#1 · 1 comment ·
All issues in lowRISC/epic-c-example
Similar issues
-
internal.h中,漏掉了1个定义。 Open
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
kovidgoyal/kitty#10516 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 80/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
zephyrproject-rtos/zephyr#120011 ·