Ich versuche mal noch mehr zu löschen, an sich brauche ich nicht wirklich viel.
Das Linkerscript sieht so aus:
Code: Alles auswählen
/* GNU linker script for ESP8266 with 1M flash
Flash layout:
0x40200000 36k header + iram/dram init
0x40209000 572k firmware (irom0)
0x40298000 396k filesystem
0x402fb000 20k SDK parameters
*/
MEMORY
{
dport0_0_seg : org = 0x3ff00000, len = 16
dram0_0_seg : org = 0x3ffe8000, len = 80K
iram1_0_seg : org = 0x40100000, len = 32K
irom0_0_seg : org = 0x40209000, len = 572K
}
/* define common sections and symbols */
INCLUDE boards/esp8266_common.ld
Edit: Naja das was in deinem Link mit 'irom0...' vorgeschlagen wird kann ich ja mal versuchen.
Ich verwende die aktuellste Version von MicroPython. Auf GitHub steht branche auf master.
Helfen dir die Infos dazu weiter:
Code: Alles auswählen
[dennis@dennis micropython]$ git checkout
M ports/esp8266/Makefile
Ihr Branch ist auf demselben Stand wie 'origin/master'.
[dennis@dennis micropython]$ git show
commit 0b26efe73dd3396bdc2b77651a78d9f2edeb9004 (HEAD -> master, origin/master, origin/HEAD)
Author: robert-hh <robert@hammelrath.com>
Date: Sun Aug 28 18:14:53 2022 +0200
extmod/machine_i2c: Call MICROPY_PY_EVENT_HOOK during i2c.scan().
Avoiding a watchdog reset during i2c.scan() if the hardware is not properly
set up (eg on esp8266), and also allowing to stop the scan with a
KeyboardInterrupt.
Fixes issue #8876.
diff --git a/extmod/machine_i2c.c b/extmod/machine_i2c.c
index 2aa217914..ff597b58c 100644
--- a/extmod/machine_i2c.c
+++ b/extmod/machine_i2c.c
@@ -328,6 +328,9 @@ STATIC mp_obj_t machine_i2c_scan(mp_obj_t self_in) {
if (ret == 0) {
mp_obj_list_append(list, MP_OBJ_NEW_SMALL_INT(addr));
}
+ #ifdef MICROPY_EVENT_POLL_HOOK
+ MICROPY_EVENT_POLL_HOOK
+ #endif
}
return list;
}
Code: Alles auswählen
git clone https://github.com/micropython/micropython/tree/master
Danke und Grüße
Dennis