So I’ve got 4 of these boards and can’t get a single one to flash. Why is that? Here are my errors.
Uploading 457936 bytes from C:\Users\derek\AppData\Local\Temp\arduino_build_948288/sonoff.ino.bin to flash at 0x00000000
warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_BEGIN) failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
No matter what I do, I’ve switched rx/tx around, soldered headers onto the through holes for a better connection. Nothing will make these flash. Anyone else have this issue?
Yep, I’ve even tried two different FTDI programmers and cable, computers, etc. I’ve even tried clearing the flash and uploading a .ino via python. Still nothing.
I have one Sonoff card also have this problem end up it is Sonoff issue. Have you tested the Sonoff using the EWlink app first before modification of the code? If it’s ok, then you can start verifi\ying your setup, USB to serial cable with either any arduino board you have.
If your setup is all ok, connect the FTDI Sonoff (assuming follow correct wiring) to the before you plug the FTDI to RS232 to your PC/Mac,
Press the button of the Sonoff
While holding the button, plug the USB FTDI to RS232 to your PC/Mac.
Check whether arduino detected the USB FTDI, and select the Serial Port.
Select Generic ESP8266
Upload.
This is what my procedure modifying the FW of Sonoff.
I’ve been following the https://github.com/arendst/Sonoff-Tasmota/ project on github, and there was been some discussion that on later hardware versions of the Sonoff devices, the flash has changed. The “SPI” flash can be accessed using 4 parallel data lines (which I think was the default for most ESP8266 boards), or by using two data lines. This is generally transparent to the code you write for these things, other than lower memory bandwidth with the fewer parallel data lines. However, when you flash the device, there’s an option to the programming tool to specify how the flash is to be accessed.