This seems to be an ESP8285 which has 1MB built-in SPI flash. See section 3.1.3. in the Datasheet for more information.
maxgerhardt:
Then try board = esp8285
This doesn’t compile for me. I don’t know why:
Processing myenv (platform: espressif8266; board: esp8285; framework: esp8266-nonos-sdk)
--------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp8285.html
PLATFORM: Espressif 8266 > Generic ESP8285 Module
HARDWARE: ESP8266 80MHz 80KB RAM (423.98KB Flash)
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 0 compatible libraries
Scanning dependencies...
No dependencies
Compiling .pioenvs/myenv/src/user_main.o
Compiling /home/myuser/.platformio/packages/framework-esp8266-nonos-sdk/lib/driver/driver/gpio16.o
Compiling /home/myuser/.platformio/packages/framework-esp8266-nonos-sdk/lib/driver/driver/hw_timer.o
Compiling /home/myuser/.platformio/packages/framework-esp8266-nonos-sdk/lib/driver/driver/i2c_master.o
Compiling /home/myuser/.platformio/packages/framework-esp8266-nonos-sdk/lib/driver/driver/key.o
Compiling /home/myuser/.platformio/packages/framework-esp8266-nonos-sdk/lib/driver/driver/sdio_slv.o
Compiling /home/myuser/.platformio/packages/framework-esp8266-nonos-sdk/lib/driver/driver/spi.o
Compiling /home/myuser/.platformio/packages/framework-esp8266-nonos-sdk/lib/driver/driver/spi_interface.o
Compiling /home/myuser/.platformio/packages/framework-esp8266-nonos-sdk/lib/driver/driver/spi_overlap.o
Compiling /home/myuser/.platformio/packages/framework-esp8266-nonos-sdk/lib/driver/driver/uart.o
Archiving /home/myuser/.platformio/packages/framework-esp8266-nonos-sdk/lib/libdriver.a
Indexing /home/myuser/.platformio/packages/framework-esp8266-nonos-sdk/lib/libdriver.a
Linking .pioenvs/myenv/firmware.elf
Building .pioenvs/myenv/eagle.flash.bin
Retrieving maximum program size .pioenvs/myenv/firmware.elf
Checking size .pioenvs/myenv/firmware.elf
esptool v0.4.13 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
using ELF file ".pioenvs/myenv/firmware.elf"
created structure for binimage ".pioenvs/myenv/eagle.flash.bin" with entry address 0x40100004
setting flash mode from qio to dout
setting flash frequency from 40 to 40
error: invalid flash size value: 423K
saved binimage file, total size is 16 bytes, checksum byte is 0xEF
*** [.pioenvs/myenv/eagle.flash.bin] Error 2
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [=== ] 33.2% (used 27194 bytes from 81920 bytes)
PROGRAM: [====== ] 60.0% (used 226009 bytes from 376832 bytes)
================================================== [ERROR] Took 1.23 seconds ==================================================
The terminal process terminated with exit code: 1
I can’t flash this binary. I think because of the reset_method “ck”:
Processing myenv (platform: espressif8266; board: esp01_1m; framework: esp8266-nonos-sdk)
--------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp01_1m.html
PLATFORM: Espressif 8266 > Espressif Generic ESP8266 ESP-01 1M
HARDWARE: ESP8266 80MHz 80KB RAM (1MB Flash)
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 0 compatible libraries
Scanning dependencies...
No dependencies
Retrieving maximum program size .pioenvs/myenv/firmware.elf
Checking size .pioenvs/myenv/firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [=== ] 33.2% (used 27194 bytes from 81920 bytes)
PROGRAM: [====== ] 60.0% (used 226009 bytes from 376832 bytes)
Configuring upload protocol...
Looking for upload port...
Auto-detected: /dev/ttyUSB0
Uploading .pioenvs/myenv/eagle.flash.bin
esptool v0.4.13 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
setting board to ck
setting baudrate from 115200 to 115200
setting port from /dev/ttyUSB0 to /dev/ttyUSB0
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
espcomm_upload_mem
opening port /dev/ttyUSB0 at 115200
tcgetattr
tcsetattr
serial open
opening bootloader
resetting board
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
resetting board
trying to connect
espcomm_send_command: sending command header
*** [upload] Error 2
espcomm_send_command: sending command payload
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
resetting board
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
================================================== [ERROR] Took 13.39 seconds ==================================================
The terminal process terminated with exit code: 1
After that I tried to write my own board.json, which is a mix between the three boards. It looks like this:
{
"build": {
"core": "esp8266",
"extra_flags": "-DESP8266 -DARDUINO_ARCH_ESP8266 -DESP8266_ESP01",
"f_cpu": "80000000L",
"f_flash": "40000000L",
"flash_mode": "dout",
"ldscript": "eagle.flash.1m256.ld",
"mcu": "esp8266",
"variant": "generic"
},
"connectivity": [
"wifi"
],
"frameworks": [
"arduino",
"simba",
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "My Custom NodeMCU",
"upload": {
"maximum_ram_size": 81920,
"maximum_size": 1048576,
"require_upload_port": true,
"resetmethod": "nodemcu",
"speed": 115200
},
"url": "http://www.nodemcu.com/",
"vendor": "NodeMCU"
}
Now I get the following messages rapidly:
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x40100000, len 25408, room 16
tail 0
chksum 0xb8
load 0x3ffe8000, len 892, room 8
tail 4
chksum 0xab
load 0x3ffe8380, len 952, room 4
tail 4
chksum 0x77
csum 0x77
rf_cal[0] !=0x05,is 0xFF
Sorry for all the formatted text. I hope this will help to find the error.