Skip to content

Commit dfc7dd9

Browse files
pqcfoxalevy
authored andcommitted
tutorials: root_of_trust: modify SRAM dump application to use memop syscall
1 parent 629fcfc commit dfc7dd9

File tree

1 file changed

+3
-3
lines changed
  • examples/tutorials/root_of_trust/suspicious_service_milestone_one

1 file changed

+3
-3
lines changed

examples/tutorials/root_of_trust/suspicious_service_milestone_one/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
#define ENCRYPTION_SRAM_START 0x2000A000
1313
#define ENCRYPTION_SRAM_END 0x2000BFFF
14-
#define SELF_SRAM_START 0x2000C000
15-
#define SELF_SRAM_END 0x2000CFFF
1614

1715
#define LOG_WIDTH 32
1816

@@ -110,7 +108,9 @@ int main(void) {
110108
if (ret < 0) {
111109
printf("ERROR: cannot log to screen\n");
112110
}
113-
dump_memory((uint32_t*)SELF_SRAM_START, (uint32_t*)SELF_SRAM_END, "SELF");
111+
112+
uint32_t* start = (uint32_t*)tock_app_memory_begins_at();
113+
dump_memory(start, start + 0x1000, "SELF");
114114
ret = log_to_screen("Dumping own SRAM complete!");
115115
if (ret < 0) {
116116
printf("ERROR: cannot log to screen\n");

0 commit comments

Comments
 (0)