Skip to content

Commit 5f444a8

Browse files
committed
Fix section conflict for flash strings (see SmingHub#1829)
1 parent b2e0911 commit 5f444a8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Sming/Wiring/FakePgmSpace.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#include "m_printf.h"
1414
#include "c_types.h"
15+
#include <esp_attr.h>
1516

1617
#ifdef __cplusplus
1718
extern "C"
@@ -57,7 +58,7 @@ typedef uint32_t prog_uint32_t;
5758
#ifdef ICACHE_FLASH
5859

5960
#ifndef PROGMEM
60-
#define PROGMEM __attribute__((aligned(4))) __attribute__((section(".irom.text")))
61+
#define PROGMEM __attribute__((aligned(4))) ICACHE_FLASH_ATTR
6162
#endif
6263

6364
// flash memory must be read using 32 bit aligned addresses else a processor exception will be triggered

0 commit comments

Comments
 (0)