Card in Arduino IDE / compilation error [Solved]

Hi all

I’ll explain in next post but i put log for errors here:

Using core ‘esp8266’ from platform in folder: C:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4
Using board ‘d1_mini’ from platform in folder: C:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4
Using core ‘esp8266’ from platform in folder: C:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4
Detecting libraries used…
Detecting libraries used…
“C:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/sdk/include” “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/sdk/lwip2/include” “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\Users\JEAN-C~1\AppData\Local\Temp\arduino_build_459886/core” -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10812 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=“ESP8266_WEMOS_D1MINI”” -DFLASHMODE_DIO -DESP8266 “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266” “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\variants\d1_mini” “C:\Users\JEAN-C~1\AppData\Local\Temp\arduino_build_459886\sketch\ESPboyInit.cpp.cpp” -o nul
“C:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/sdk/include” “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/sdk/lwip2/include” “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\Users\JEAN-C~1\AppData\Local\Temp\arduino_build_459886/core” -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10812 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=“ESP8266_WEMOS_D1MINI”” -DFLASHMODE_DIO -DESP8266 “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266” “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\variants\d1_mini” “C:\Users\JEAN-C~1\AppData\Local\Temp\arduino_build_459886\sketch\ESPboyInit.cpp.cpp” -o nul
Alternatives for Adafruit_MCP23017.h: [Adafruit_MCP23017_Arduino_Library@1.0.6]
ResolveLibrary(Adafruit_MCP23017.h)
-> candidates: [Adafruit_MCP23017_Arduino_Library@1.0.6]
“C:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/sdk/include” “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/sdk/lwip2/include” “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\Users\JEAN-C~1\AppData\Local\Temp\arduino_build_459886/core” -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10812 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=“ESP8266_WEMOS_D1MINI”” -DFLASHMODE_DIO -DESP8266 “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266” “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\variants\d1_mini” “-IC:\Program Files (x86)\Arduino\libraries\Adafruit_MCP23017_Arduino_Library” “C:\Users\JEAN-C~1\AppData\Local\Temp\arduino_build_459886\sketch\ESPboyInit.cpp.cpp” -o nul
Alternatives for Adafruit_MCP23017.h: [Adafruit_MCP23017_Arduino_Library@1.0.6]
ResolveLibrary(Adafruit_MCP23017.h)
-> candidates: [Adafruit_MCP23017_Arduino_Library@1.0.6]
“C:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/sdk/include” “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/sdk/lwip2/include” “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\Users\JEAN-C~1\AppData\Local\Temp\arduino_build_459886/core” -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10812 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=“ESP8266_WEMOS_D1MINI”” -DFLASHMODE_DIO -DESP8266 “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266” “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\variants\d1_mini” “-IC:\Program Files (x86)\Arduino\libraries\Adafruit_MCP23017_Arduino_Library” “C:\Users\JEAN-C~1\AppData\Local\Temp\arduino_build_459886\sketch\ESPboyInit.cpp.cpp” -o nul
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)

=======================================================================

Utilisation de la bibliothèque ESP8266WiFi version 1.0 dans le dossier: C:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266WiFi
exit status 1
Erreur de compilation pour la carte LOLIN(WEMOS) D1 R2 & mini
“C:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/sdk/include” “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/sdk/lwip2/include” “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\Users\JEAN-C~1\AppData\Local\Temp\arduino_build_459886/core” -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10812 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=“ESP8266_WEMOS_D1MINI”” -DFLASHMODE_DIO -DESP8266 “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266” “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\variants\d1_mini” “-IC:\Program Files (x86)\Arduino\libraries\Adafruit_MCP23017_Arduino_Library” “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\Wire” “-IC:\Program Files (x86)\Arduino\libraries\Adafruit_MCP4725” “-IC:\Program Files (x86)\Arduino\libraries\TFT_eSPI” “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\SPI” “-IC:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266WiFi\src” “C:\Users\JEAN-C~1\AppData\Local\Temp\arduino_build_459886\sketch\ESPboyInit.cpp.cpp” -o “C:\Users\JEAN-C~1\AppData\Local\Temp\arduino_build_459886\sketch\ESPboyInit.cpp.cpp.o”

======================================================================

“C:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1/python3” “C:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/sizes.py” --elf “C:\Users\JEAN-C~1\AppData\Local\Temp\arduino_build_459886/ESPboyInit.cpp.elf” --path “C:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506/bin”
Executable segment sizes:

IROM : 253152 - code in flash (default or ICACHE_FLASH_ATTR)

IRAM : 28844 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs…)

DATA : 1264 ) - initialized variables (global, static) in RAM/HEAP

RODATA : 828 ) / 81920 - constants (global, static) in RAM/HEAP

BSS : 25928 ) - zeroed variables (global, static) in RAM/HEAP

Utilisation de la bibliothèque Adafruit_MCP23017_Arduino_Library version 1.0.6 dans le dossier: C:\Program Files (x86)\Arduino\libraries\Adafruit_MCP23017_Arduino_Library
Utilisation de la bibliothèque Wire version 1.0 dans le dossier: C:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\Wire

==============================================================

C:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1/python3 C:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/upload.py --chip esp8266 --port COM6 --baud 921600 --before default_reset --after hard_reset write_flash 0x0 C:\Users\JEAN-C~1\AppData\Local\Temp\arduino_build_459886/ESPboyInit.cpp.bin
esptool.py v2.8
Traceback (most recent call last):
Une erreur est survenue lors du transfert du croquis
Serial port COM6
File “C:\Users\Jean-Charles\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/upload.py”, line 65, in
esptool.main(cmdline)
File “C:/Users/Jean-Charles/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py”, line 2889, in main
esp = chip_class(each_port, initial_baud, args.trace)
File “C:/Users/Jean-Charles/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py”, line 237, in init
self.port = serial.serial_for_url(port)
File "C:/Users/Jean-Charles/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/pyserial\serial_init
.py", line 88, in serial_for_url
instance.open()
File “C:/Users/Jean-Charles/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/pyserial\serial\serialwin32.py”, line 62, in open
raise SerialException(“could not open port {!r}: {!r}”.format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port ‘COM6’: FileNotFoundError(2, ‘Le fichier sp�cifi� est introuvable.’, None, 2)

No Card name showed in front of USB Com

Nobody has idea about what is going wrong ? If you need more infos to understand that happen please ask. I don’t want send alot informations for nothing but i understand that some more informations can be required to understand the origin of the problem.

seemed that compiles fine but can’t upload compiled code to the device. IDE trying to upload to COM6 but there is no COM6 in the menu list “Port”. Probably USB cable problem or USB cable connection problem

ok, i will retry it this evening. It’s the original USB cable and i have remove the top panel to be able to plug it fine but maybe something gone wrong. I’ll keep you informed

OK, that right. I have make a new try and it’s works fine. My first compilation test works and millis are counted on the screen :slight_smile: I will have to make some more tests and begin things now

2 Likes