Sonic-Amiga / ESP8266-Faikin

Opensource replacement for Daikin BRP module to control Daikin aircon units
GNU General Public License v3.0
16 stars 1 forks source link

WeMos D1 Mini 4MB #22

Open CPtje opened 2 months ago

CPtje commented 2 months ago

Not familiar with the ESP devices, so please bear with me. Trying to program the files from the release-folder in my WeMos D1 4MB Board using ESP Tool online, but not succeeding.

Is the release suitable for a 4MB Board?

CPtje commented 2 months ago

Some more info. Now I tried to flash with: esptool -p COM4 -b 460800 --after hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 4MB 0x8000 partition-table-8266.bin 0xd000 ota_data_initial-8266.bin 0x0 Faikin-8266-bootloader.bin 0x10000 Faikin-8266.bin

Unfortunately I get following error: esptool write_flash: error: argument

: Detected overlap at address: 0x8000 for file: partition-table-8266.bin

CPtje commented 2 months ago

From the README: "This port technically runs on any ESP8266 board. At the moment 4MB and 8 MB flash sizes are supported. Please see Hardware folder of this repository for more info."

Has anyone been able to succesfully program and run this on a 4MB Wemos D1? If yes, can you please help?

Sonic-Amiga commented 1 month ago

Hello! Depite the CSV is named "8mb"; the actual firmware image only uses 4MB, and therefore should work fine. I asked RevK, the original author, and he confirmed this. Another user successfully runs it on 4MB.

The error message is weird. Address 0x8000 is just 32668, that's 32 kilobytes.

Sonic-Amiga commented 1 month ago

Try --flash_size detect . That's totally weird. I've googled a bit; seems the error could be caused by corrupt files. For example https://esp32.com/viewtopic.php?p=89078&sid=7e1631fe75049659c607811bee80cee0#p89078

Make sure you don't get something like that. partition-table-8266.bin size is 3KB.

CPtje commented 1 month ago

Thank you for your help. Tested a lot more and it was my fault. After using "--flash_size 8MB" it programmed and ran. I still do not understand really why.

Unfortunately I cannot get the UART0 working. Tested 2 different boards and read all in #20. I thought its better to go on there as it seems to be a place where a lot of info about this is gathered. If you want we can also go on here.

Sonic-Amiga commented 1 month ago

After using "--flash_size 8MB" it programmed and ran.

Hm, weird, but okay...