BRUH sonoff trouble

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?

Did you put the Sonoff in flash mode before uploading. you need to keep the push button pressed while you power it on to go into flash mode.

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 did have almost the same error with a ESP8266 card. Do you see the comport being added when connecting the unit to your computer?

For me it was the micro-usb cable that was a loader cable only, not Data MicroUSB

I think I’ve probably tried like ~3 cables?

Yes i did also, like 7 cables, but then i buy a “super premium cable” for 8 buck, woked Good.

I’m sure you checked the ftdi was set to 3.3v not 5v before plugging it in? You might want to ask @KmanOz our resident sonoff expert :slight_smile:

I did plug it into 3.3v but I’ll have to double check that it’s correct with my multimeter, haven’t done that one yet.

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,

  1. Press the button of the Sonoff
  2. While holding the button, plug the USB FTDI to RS232 to your PC/Mac.
  3. Check whether arduino detected the USB FTDI, and select the Serial Port.
  4. Select Generic ESP8266
  5. 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.

Perhaps this might explain the problems you’re having? See https://github.com/arendst/Sonoff-Tasmota/wiki/Theo’s-Tasmota-Tips

try to change the mode from ESP8266 to ESP8285, and 1mb 64k