We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2e0911 commit 5f444a8Copy full SHA for 5f444a8
1 file changed
Sming/Wiring/FakePgmSpace.h
@@ -12,6 +12,7 @@
12
13
#include "m_printf.h"
14
#include "c_types.h"
15
+#include <esp_attr.h>
16
17
#ifdef __cplusplus
18
extern "C"
@@ -57,7 +58,7 @@ typedef uint32_t prog_uint32_t;
57
58
#ifdef ICACHE_FLASH
59
60
#ifndef PROGMEM
-#define PROGMEM __attribute__((aligned(4))) __attribute__((section(".irom.text")))
61
+#define PROGMEM __attribute__((aligned(4))) ICACHE_FLASH_ATTR
62
#endif
63
64
// flash memory must be read using 32 bit aligned addresses else a processor exception will be triggered
0 commit comments