Hallo and greetings to every XOD user out there,
this is not really a reply to the topic, but a more detailed information concerning the problem of compiling and uploading to a clone “AZ-Delivery NodeMCU Lolin V3” NodeMCU 1.0 (ESP12E Module) with CH340-Chip .
Im working on Windows 7 having installed the latest XOD version 0.37.3
The NodeMCU- board makes no trouble being programed via Arduino IDE.
I start with a simple patch like this.
For two or three times I can compile and upload patches like that but suddenly the compiler produces errors .
Even the simplest code can not be compiled any more.
Errorcode looks like so:
Begin compiling code for the board NodeMCU 1.0 (ESP-12E Module)
Traceback (most recent call last):
*File"C:\Users\vattern\XOD_packages_\packages\esp8266\hardware\esp8266\2.7.4/tools/elf2bin.py", line 182, in sys.exit(main())
File"C:\Users\vattern\XOD_packages_\packages\esp8266\hardware\esp8266\2.7.4/tools/elf2bin.py", line 166, in main to_addr=4096
File"C:\Users\vattern\XOD_packages_\packages\esp8266\hardware\esp8266\2.7.4/tools/elf2bin.py", line 161, in wrapper write_bin(out=out, args=args, kwargs)
File"C:\Users\vattern\XOD_packages_\packages\esp8266\hardware\esp8266\2.7.4/tools/elf2bin.py", line 68, in write_bin entry = int(get_elf_entry( elf, args.path ))
File"C:\Users\vattern\XOD_packages_\packages\esp8266\hardware\esp8266\2.7.4/tools/elf2bin.py", line 44, in get_elf_entry raise Exception(‘Unable to find entry point in file "’ + elf + ‘"’) Exception: Unable to find entry point in file C:\Users\vattern\XOD_packages_\packages\esp8266\hardware\esp8266\2.7.4/bootloaders/eboot/eboot.elf"
Error during build: exit status 1
Another try to compile that simple patch
The compiler works just fine->
Begin compiling code for the board NodeMCU 1.0 (ESP-12E Module)
Executable segment sizes:
IROM : 232632 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 27872 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs…)
DATA : 1256 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 708 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 25280 ) - zeroed variables (global, static) in RAM/HEAP
Sketch uses 262468 bytes (25%) of program storage space. Maximum is 1044464 bytes. Global variables use 27244 bytes (33%) of dynamic memory, leaving 54676 bytes for local variables. Maximum is 81920 bytes.
But the Upload fails:
Uploading compiled code to the board…
Waiting for upload port…
No new serial port detected.
“C:\Users\vattern\XOD_packages_\packages\esp8266\tools\python3\3.7.2-post1/python3” “C:\Users\vattern\XOD_packages_\packages\esp8266\hardware\esp8266\2.7.4/tools/upload.py” --chip esp8266 --port “COM1” --baud “115200” “” --before default_reset --after hard_reset write_flash 0x0 “C:\Users\vattern\AppData\Local\Temp\xod_temp_sketchbookJG1pxZ\xod_1615249368485_sketch\build\esp8266.esp8266.nodemcuv2/xod_1615249368485_sketch.ino.bin”
esptool.py v2.8
Serial port COM1
Connecting…
.
.
.
Traceback (most recent call last):
File"C:\Users\vattern\XOD_packages_\packages\esp8266\hardware\esp8266\2.7.4/tools/upload.py", line 65, in esptool.main(cmdline)
File"C:/Users/vattern/XOD/packages/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py", line 2890, in main esp.connect(args.before)
File"C:/Users/vattern/XOD/packages/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py", line 483, in connect raise FatalError(‘Failed to connect to %s: %s’ % (self.CHIP_NAME, last_error)) esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
Error during Upload: uploading error: uploading error: exit status 1
I am totally confused about what happens here! Please can somebody help me.
To me it seems like an issue within the compiler for the NodeMCU and ESP 8266 because I have the same kind problems programing D1mini clones.
No Problems with Arduino- boards
I’d be thankfull for any suggestion to solve that mystery