Thanks to visit codestin.com Credit goes to github.com
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.
2 parents a2b7521 + 68e0a80 commit f5116ecCopy full SHA for f5116ec
components/esp8266/include/esp_attr.h
@@ -46,4 +46,7 @@
46
// Forces read-only data into RTC memory.
47
#define RTC_RODATA_ATTR __attribute__((section(".rtc.rodata")))
48
49
+// Forces to put some user defined data in the binary file header, the offset is 0x10.
50
+#define USER_DATA_ATTR __attribute__((section(".user.data")))
51
+
52
#endif /* __ESP_ATTR_H__ */
components/esp8266/ld/esp8266.common.ld
@@ -230,6 +230,7 @@ SECTIONS
230
.irom0.text : ALIGN(4)
231
{
232
_irom0_text_start = ABSOLUTE(.);
233
+ *(.user.data)
234
*(.rodata.* .rodata .irom0.literal .irom.literal .irom.text.literal .irom0.text .irom.text)
235
*(.literal.* .text.*)
236
0 commit comments