Skip to content

Loading flash at address 0x0ABCD000 causes example to hang #2

Description

@mundaym

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions