File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
hardware/esp8266com/esp8266/bootloaders/eboot Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 14
14
15
15
#define SWRST do { (*((volatile uint32_t*) 0x60000700)) |= 0x80000000; } while(0);
16
16
17
+ extern void ets_wdt_enable (void );
18
+ extern void ets_wdt_disable (void );
17
19
18
20
int load_app_from_flash_raw (const uint32_t flash_addr )
19
21
{
@@ -87,7 +89,9 @@ int copy_raw(const uint32_t src_addr,
87
89
uint32_t left = ((size + buffer_size - 1 ) & ~(buffer_size - 1 ));
88
90
uint32_t saddr = src_addr ;
89
91
uint32_t daddr = dst_addr ;
90
-
92
+
93
+ ets_wdt_disable ();
94
+
91
95
while (left ) {
92
96
if (SPIEraseSector (daddr /buffer_size )) {
93
97
return 2 ;
@@ -103,6 +107,8 @@ int copy_raw(const uint32_t src_addr,
103
107
left -= buffer_size ;
104
108
}
105
109
110
+ ets_wdt_enable ();
111
+
106
112
return 0 ;
107
113
}
108
114
You can’t perform that action at this time.
0 commit comments