We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 629fcfc commit dfc7dd9Copy full SHA for dfc7dd9
examples/tutorials/root_of_trust/suspicious_service_milestone_one/main.c
@@ -11,8 +11,6 @@
11
12
#define ENCRYPTION_SRAM_START 0x2000A000
13
#define ENCRYPTION_SRAM_END 0x2000BFFF
14
-#define SELF_SRAM_START 0x2000C000
15
-#define SELF_SRAM_END 0x2000CFFF
16
17
#define LOG_WIDTH 32
18
@@ -110,7 +108,9 @@ int main(void) {
110
108
if (ret < 0) {
111
109
printf("ERROR: cannot log to screen\n");
112
}
113
- dump_memory((uint32_t*)SELF_SRAM_START, (uint32_t*)SELF_SRAM_END, "SELF");
+
+ uint32_t* start = (uint32_t*)tock_app_memory_begins_at();
+ dump_memory(start, start + 0x1000, "SELF");
114
ret = log_to_screen("Dumping own SRAM complete!");
115
116
0 commit comments