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 ca591a4 commit 35919e9Copy full SHA for 35919e9
source/daplink/settings/settings.c
@@ -66,7 +66,12 @@ typedef struct __attribute__((__packed__)) cfg_ram {
66
COMPILER_ASSERT((offsetof(cfg_ram_t, hexdump) % sizeof(uint32_t)) == 0);
67
68
// Configuration RAM
69
+#if defined(__ARMCC)
70
+static cfg_ram_t config_ram __attribute__((section("cfgram"), zero_init));
71
+#else
72
static cfg_ram_t config_ram __attribute__((section("cfgram")));
73
+#endif
74
+
75
// Ram copy of RAM config
76
static cfg_ram_t config_ram_copy;
77
0 commit comments