#Flashing Tasmota on ZBBridge Fails

99 messages ยท Page 1 of 1 (latest)

opaque ocean
#

Hi guys, I am trying to flash Tasmota on my ZBBridge by following your guide (Sonoff Zigbee Bridge with Tasmota And Home Assistant using ZHA).

I made the connections, once I plug the serial adapter in the Bridge led turns green, but when I try to flash it, Tasmotizer gives me an error saying: "Timed out waiting for packet header"
I also tried using ESP-Flasher, and it fails as well, but there the error is the following: "Unexpected error: Reading chip details failed: Serial data stream stopped: Possible serial noise or corruption." (I also got this at some point: "Unexpected error: Error putting ESP in stub flash mode: Serial data stream stopped: Possible serial noise or corruption.")

Does anyone know what the issue might be and what else I can try?

Thank you in advance.

graceful jewel
opaque ocean
#

I checked and ETX on Bridge is connected to RXD on adapter, and ERX on Bridge goes to TXD on adapter

graceful jewel
#

Other things to check would be to make sure you are entering boot mode with IO0 connected to ground before plugging in power

#

Did you solder the connections?

opaque ocean
#

No, I am using some jumper cables which fit snugly in the holes, so I assume they make contact

graceful jewel
#

You may need to press the cables with your thumb to make sure there is good contact

opaque ocean
#

I assume that if it wouldn't be in flash mode, the soft wouldn't detect it on a COM port, right?

graceful jewel
#

No it still would regardless

#

The com port comes from the USB adapter

opaque ocean
#

Hmm, OK. Is there a way to figure out if it is in flash mode or not?

graceful jewel
#

If you plug in the USB adapter alone with nothing on the other end it'll show you a com port

graceful jewel
opaque ocean
#

I redid the connections and tried again, and now I get this: "Cannot configure port, something went wrong. Original message: PermissionError(13, 'A device attached to the system is not functioning.', None, 31)"

#

And now it's just a 'Write timeout' error

graceful jewel
opaque ocean
#

yup

graceful jewel
#

Try reboot and also replace the cable and try a different USB port

opaque ocean
#

Tried, no improvements

#

I saw a github post somewhere where Z_RST is also used, do you know anything about that?

#

Changed the Dupont cables, got to this error: Timed out waiting for packet header

graceful jewel
#

I've never seen z-rst used

#

All the times I've flashed one has just been the exact same way as in the video

opaque ocean
#

Damn this is frustrating, haha

#

I will try soldering some wires on the board, to see if that makes any difference

opaque ocean
#

Small question, I have this USB adapter

#

If where should the jumper be, for the 3.3 to work correctly

#

Between 3.3 and vcc?

graceful jewel
#

Hmm not sure on that one, it doesn't look like it takes a jumper

opaque ocean
#

I truly don't understand how every video I watch works smoothly but for me it's like doing rocket science

sly pewterBOT
opaque ocean
graceful jewel
#

Got a link to the one you bought? I prefer the red one I used in the video

opaque ocean
#

I asked for it. It's borrowed from a friend who also flashed his zbBridge

#

with no issues, apparently

graceful jewel
#

Maybe worth checking which pins he used for 3.3v?

#

If you have a meter you can check the voltages also

opaque ocean
#

he was saying that he doesn't remember exactly, but he thinks that this config was the one he used

opaque ocean
graceful jewel
#

How does a dupont wire fit onto the pin if there is also a jumper on there? Is it long enough?

opaque ocean
#

So, the jumper is between 5V and VCC

#

and the dupont is on 3.3V

graceful jewel
#

That's such a weird way of doing it ๐Ÿ˜„ in my head the jumper on 5v would give you 5v not 3.3v

#

That's the way most work but guess it could be different

opaque ocean
#

same in my head, tbh

#

I honestly tried with the jumper in the other position as well, but still no changes

graceful jewel
#

Some damage could be caused with a higher voltage than is supposed to be supplied

graceful jewel
opaque ocean
#

That's their stupid black Friday promo

#

Try to access the link again and it should take you directly to the product

graceful jewel
#

Yeah that's it

#

Hmm certainly seems like it's correct, just a really strange way of doing it

#

Maybe try to search the internet and see if you can see an explanation to confirm

opaque ocean
#

Small question, the gpio0 should permanently be connected to gnd, right?

opaque ocean
#

So, I soldered the wires, and still no luck

graceful jewel
#

GPIO0 can be disconnected a few seconds after powering on

#

Can you show a photo of the wiring? Just on the off chance I can spot something but I'm guessing not

opaque ocean
graceful jewel
#

You getting any LEDs coming on the bridge?

opaque ocean
#

the green one

graceful jewel
#

I'm not sure what to suggest sorry other than switching out the adapter

opaque ocean
#

No worries, thank you for the help ๐Ÿ˜

opaque ocean
opaque ocean
#

So I think I found the correct configuration with the jumper and all, but I still get the 'Timed out while waiting for packet header' error

sly pewterBOT
opaque ocean
#

No clue how to get past that

#

The board is not fried at least (did a reset for the original fw and seems to work)

opaque ocean
#

So it seems that the board doesn't go into flash mode

#

But I have no clue as to why

#

Furthest I've got
no jumper at all

#

This is the only way I got that it is actually connecting to the board, but it still fails on the stub run

opaque ocean
graceful jewel
#

So weird!

opaque ocean
#

yup, I agree

#

I was thinking of suplying 3.3 from an external rpi, but I'm not entirely sure how that would work

graceful jewel
#

I don't think it would be that if the LED is coming on

opaque ocean
#

All that I can think about is that it doesn't go into flash mode, for some reason

#

but it wouldn't make sense, because everywhere it just says that jumping GPIO0 with GND is going to drive the board into flash mode

graceful jewel
#

Yep that's all you need to do. It might be worth ordering another usb to serial to try?

opaque ocean
#

Maybe a different model of something

#

But it's still odd, because I know this config worked, haha

#

I also tried external power, didn't help at all

opaque ocean
#

I mean, something close to this

graceful jewel
#

Looks similar yeah

opaque ocean
#

I'm wondering if it;s possible to dyi the serial programmer

#

because I have a board with a ch340C chip

graceful jewel
#

It's possible yeah

opaque ocean
#

I just tried with an Arduino Mega, and it still doesn't work

sly pewterBOT
opaque ocean
#

Does this mean that something might be wrong with the bridge board? ๐Ÿ˜…

opaque ocean
opaque ocean
#

Update

#

I managed to make it work by jumping Z_RST to GND, it goes through fw backup, flash erase, but it gets stuck at uploading the new fw, at 9% everytime
Any clues? ๐Ÿ˜…

graceful jewel
opaque ocean
#

In the end, I managed to succesfully flash it

graceful jewel
#

What was the fix? ๐Ÿ˜