Skip to content

Commit dfb4279

Browse files
committed
fix(esp8266): Fix IRAM out of memory
1 parent aec4225 commit dfb4279

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/DAP/source/SW_DP.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@
4747
#include "components/DAP/include/spi_switch.h"
4848
#include "components/DAP/include/dap_utility.h"
4949

50+
#ifdef CONFIG_IDF_TARGET_ESP8266
51+
// no space for esp8266
52+
#define IRAM_ATTR
53+
#endif
54+
5055
#define likely(x) __builtin_expect(!!(x), 1)
5156
#define unlikely(x) __builtin_expect(!!(x), 0)
5257
#define UNROLL_2(x) x x

0 commit comments

Comments
 (0)