Skip to content

Commit

Permalink
[ottf,darjeeling] Fix the ottf_storage location
Browse files Browse the repository at this point in the history
The test code is stored in a RAM inside the CTN space at a fixed
offset.

Signed-off-by: Amaury Pouly <[email protected]>
  • Loading branch information
pamaury committed Mar 5, 2025
1 parent 8e2032c commit 7a5b81b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sw/device/lib/testing/test_framework/ottf_ld_top_config.ld
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@

/* TODO This configuration should be split into per-top headers */
#ifdef OPENTITAN_IS_DARJEELING
REGION_ALIAS("ottf_storage", ctn)
MEMORY {
/* There is a 1MiB RAM within the CTN at offset 16MiB to hold the
* firmware under test in DV. */
ctn_ram(rwx) : ORIGIN = ORIGIN(ctn) + 0x1000000, LENGTH = 0x100000
}
REGION_ALIAS("ottf_storage", ctn_ram)
#else
REGION_ALIAS("ottf_storage", eflash)
#endif
Expand Down

0 comments on commit 7a5b81b

Please sign in to comment.