Mixiaoxiao / Arduino-HomeKit-ESP8266

Native Apple HomeKit accessory implementation for the ESP8266 Arduino core.
MIT License
1.48k stars 278 forks source link

esp01 : 請問怎麼修改flash size改成1m?謝謝 #251

Open hung28312 opened 1 month ago

hung28312 commented 1 month ago

@Mixiaoxiao ,formatting homekit storage at 0x3fb000,使用esp01板,要如何何修改flash size呢?在ArduinoIDE的工具中-Flase size修改成Maping defined by hardware and sketch,但會在編譯時出現錯誤訊息, c:/users/hung/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Hung\AppData\Local\Temp\arduino\sketches\F52321A960A6612EADD3F8AE8E0F92AC\libraries\HomeKit-ESP8266\storage.c.o:(.text.find_empty_block+0x0): undefined reference to _EEPROM_start' c:/users/hung/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Hung\AppData\Local\Temp\arduino\sketches\F52321A960A6612EADD3F8AE8E0F92AC\libraries\HomeKit-ESP8266\storage.c.o: in functionhomekit_storage_add_pairing': c:\Users\Hung\Documents\Arduino\libraries\HomeKit-ESP8266\src/storage.c:303: undefined reference to `_EEPROM_start' collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

AAfetisov commented 1 month ago

flash with 1mb fs:none 2024-05-20-22 04@2x