-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tenda Beli SP3 smart plug write error. #171
Comments
The message you found in the file probably doesn't mean anything. The writing error, however, might be caused by several problems. How are you powering the device for flashing? I just tried flashing your firmware dump on a RTL8710BX, and it doesn't start up:
|
Try using the rtltool2 flasher from here: EDIT: I just noticed something - your flash chip is 1 MiB only, not 2 MiB. You need to use |
Yeah, this is becoming a theme with realtek, where the last letter of the chip, which is supposed to indicate flash size, doesn't actually match the size of the external flash. |
OK, I have reached the limit of my linux command line knowledge !! I have compiled a new esphome device with the I have managed to read from the device with rtltool but I get an error when trying to write. The command I am using is: |
The comment I linked uses a different command - please see this comment specifically, not the whole issue. You should use rtltool2, not rtltool. Also, the file is uf2 not u2f. 0x8000000, 0x800000 and 0x80000 are all different, you have to be careful with the number of zeroes. |
Where do I get rtltool2.py I could only find rtltool.py ? |
Here:
Get the image_* files from the build directory of your firmware. |
OK, that is the file I was using and I have confirmed that I am using python2 and I even managed to get the missing python2-serial stuff installed. Also, when I do a manual download from Esphome 23.9.0b1 I now get options to download the uf2 and the separate binaries. So I have loaded files and it is up and running, the minimal install is using 81% of the flash, the device is a pretty basic smart plug with no power monitoring so I might work. Will I break anything if it try the generic-rtl8710bn-2mb-788k version ?? Thanks for the help.
|
It's a small flash chip, so 81% usage is normal. Don't try the 788k version, it's too large for this device. Also, you'll break OTA that way. Do I correctly assume that you have flashed ESPHome successfully and it is running on the device? |
Yes I have Esphome running on it with just the default settings and I have been able to do an OTA update. |
Is there somewhere to record working hardware and the ESPHome code for them ?? |
We do have a special channel on our Discord server, but I don't really know of any other place (apart from sites dedicated to ESP devices). |
I think this is complete. |
I understand that using ltchiptool didn't work, but rtltool2 did? If so, I'll keep this issue open to fix this error. |
OK, in ltchiptool I was using the defaults but That was incorrect, as there was no pre-compiled kickstarter file for the rtl8710bn-2mb-468k I used ESPHome 2023.99.0b1 to make my own and that is the file I tried to use with ltchiptool. Do you want me to do any other testing ? |
I have an RTL8710BX based Tenda Beli SP3 smart plug that is not Tuya. When trying to upload the Esphome uf2 file generated from the 2023.9.0b1 beta, I get this error:
E: ValueError: Failed to write to 0x800B000
I have successfully read the original firmware and the file is 2M and a look at the file shows this:
This flash type is not supported! CHIPID[%08x]
The flash chip is a H25S80BG.
Any ideas on how to proceed ?
tenda-stock2.zip
The text was updated successfully, but these errors were encountered: