I recently bought a Wemos D1 mini V2 WiFi module (like this one). I want to upload my own code using the Arduino IDE.
For testing purposes, I'm now trying to upload some simple code. I've installed the "esp8266 by ESP8266 Community" package in the Arduino IDE Boards Manager. After the module had been discovered by the IDE, I chose the /dev/ttyUSB0
port.
When I try to upload code to the Wemos module, here is what I see in the output:
. Variables and constants in RAM (global, static), used 28104 / 80192 bytes (35%)
║ SEGMENT BYTES DESCRIPTION
╠══ DATA 1496 initialized variables
╠══ RODATA 920 constants
╚══ BSS 25688 zeroed variables
. Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 59667 / 65536 bytes (91%)
║ SEGMENT BYTES DESCRIPTION
╠══ ICACHE 32768 reserved space for flash instruction cache
╚══ IRAM 26899 code in IRAM
. Code in flash (default, ICACHE_FLASH_ATTR), used 232100 / 1048576 bytes (22%)
║ SEGMENT BYTES DESCRIPTION
╚══ IROM 232100 code in flash
esptool.py v3.0
Serial port /dev/ttyUSB0
Failed uploading: uploading error: exit status 2
This error is very vague and I don't know what could cause this problem. What bothers me is that none of board configurations available exactly match my WiFi module. I've got a Wemos D1 mini but with "V2" at the end (which I presume means "version 2"). Does it mean I can use the configuration for the "D1 mini"?
I've also looked for specifications on this website, but none of pictures available there match what my board looks like.
I'm a little confused, could you please help me identify how I should set up this board correctly?