Current Lua downloadable firmware will be posted here

User avatar
By osa
#85037 Hello!
Could you please help me?
I can't flash a LoLin NodeMcu v3.

Even when I try to erase flash I have an error:
Code: Select allpython esptool.py --port /dev/ttyUSB0 --baud 9600 erase_flash
esptool.py v2.8
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 00:80:00:80:00:00
Uploading stub...

A fatal error occurred: Failed to write to target RAM (result was 0107)


I have googled about this error, but nothing helped me.
User avatar
By osa
#85083 Thank you for the information.
It wasn't the new board. A seller who sold it, he said it worked. He told me that before that there was WiFi Jammer firmware Ps4 5.05.

Maybe I should take another board and try to flash it.
User avatar
By osa
#85159 Hm, when I build firmware on https://nodemcu-build.com/ and after that flashed I have success
Code: Select allesptool -cd nodemcu -cb 9600 -v -cf nodemcu-master-7-modules-2019-12-24-20-48-51-integer.bin
esptool v0.4.6 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
opening port /dev/ttyUSB0 at 9600
opening bootloader
resetting board
trying to connect
trying to connect
Uploading 434176 bytes from nodemcu-master-7-modules-2019-12-24-20-48-51-integer.bin to flash at 0x00000000
........................................................................................................................................................................................................................................................................................................................................................................................................................................
starting app without reboot
closing bootloader


But after that when I tried to upload ESP8266 Blink scetch using Arduino IDE I still have error
Code: Select all[Starting] Upload sketch - main.ino
[Warning] Output path is not specified. Unable to reuse previously compiled files. Upload could be slow. See README.
Picked up JAVA_TOOL_OPTIONS:
Set log4j store directory /home/oleg/.arduino15
Loading configuration...
Initializing packages...
Preparing boards...
2020-01-05T00:21:21.564Z INFO c.a.u.n.HttpConnectionManager:148 [cc.arduino.packages.discoverers.serial.SerialDiscovery] Connect to https://builder.arduino.cc/builder/v1/boards/0x1A86/0x7523, method=GET, request id=DD1B2A1BA51C48E6
Verifying...
2020-01-05T00:21:22.566Z INFO c.a.u.n.HttpConnectionManager:152 [cc.arduino.packages.discoverers.serial.SerialDiscovery] Request complete URL="https://builder.arduino.cc/builder/v1/boards/0x1A86/0x7523", method=GET, response code=404, request id=DD1B2A1BA51C48E6, headers={null=[HTTP/1.1 404 Not Found], Cache-Control=[no-cache, no-store, must-revalidate], Server=[nginx], Connection=[keep-alive], Vary=[Origin], Pragma=[no-cache], Expires=[0], Content-Length=[0], Date=[Sun, 05 Jan 2020 00:21:22 GMT]}
2020-01-05T00:21:22.567Z WARN p.a.h.BoardCloudResolver:64 [cc.arduino.packages.discoverers.serial.SerialDiscovery] Fail to get the Vid Pid information from the builder response code=404
Executable segment sizes:
BSS    : 24880 )         - zeroed variables      (global, static) in RAM/HEAP
DATA   : 1252  )         - initialized variables (global, static) in RAM/HEAP
IROM   : 227612          - code in flash         (default or ICACHE_FLASH_ATTR)
RODATA : 672   ) / 81920 - constants             (global, static) in RAM/HEAP
IRAM   : 26768   / 32768 - code in IRAM          (ICACHE_RAM_ATTR, ISRs...)
Sketch uses 256304 bytes (24%) of program storage space. Maximum is 1044464 bytes.
Global variables use 26804 bytes (32%) of dynamic memory, leaving 55116 bytes for local variables. Maximum is 81920 bytes.
Uploading...
esptool.py v2.8
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 00:80:00:0c:b4:00
Uploading stub...
Traceback (most recent call last):
  File "/home/oleg/.arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/upload.py", line 65, in <module>
    esptool.main(cmdline)
  File "/home/oleg/.arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool/esptool.py", line 2909, in main
    esp = esp.run_stub()
  File "/home/oleg/.arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool/esptool.py", line 633, in run_stub
    self.mem_block(stub[field][from_offs:to_offs], seq)
  File "/home/oleg/.arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool/esptool.py", line 538, in mem_block
    self.checksum(data))
  File "/home/oleg/.arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool/esptool.py", line 379, in check_command
    raise FatalError.WithResult('Failed to %s' % op_description, status_bytes)
esptool.FatalError: Failed to write to target RAM (result was 0107)
An error occurred while uploading the sketch