zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Unable to flash CC2531

Open tynor88 opened this issue 8 years ago • 44 comments

I'm following the guide Getting Started - having exactly the same parts, I'm unable to have both the CC Debugger and CC2531 to turn on when they are connected in the circuit as described. If I connect the CC Debugger and CC2531 indvidually they show up on the PC correctly. As soon as the downloader cable / BTool Programming Connector is in between, they both shut down (both lights are off).

Could some of the items be defective? Is there another way to flash the CC2531 with the current parts.

tynor88 avatar Oct 22 '18 16:10 tynor88

show us a photo how you have connected / plugged all together

HannesDi avatar Oct 22 '18 19:10 HannesDi

@HannesDi sure, here you go. As you can see, no lights 👎 CCDebugger

tynor88 avatar Oct 22 '18 19:10 tynor88

hmn ok.. looks like correct plugged directions for the cables...

have you tried another usb plugs like the rear ones? probally a usb power problem

or on a other pc?

HannesDi avatar Oct 22 '18 20:10 HannesDi

I tried on my laptop. Same issue. If I connect them individually they work fine and I see both in the Device Manager on Windows 10. That's why I'm thinking Its something with the BTool.

tynor88 avatar Oct 22 '18 20:10 tynor88

@tynor88 1. Try to press the "Reset" button on the debugger. Sometimes I need to make 2 or 3 retries. 2. I hope BTool is a typo. We use Z-Tool to upload firmware.

ptvoinfo avatar Oct 23 '18 03:10 ptvoinfo

weird, why would you connect the cc2531 to computer when trying to flash it ? your debugger does power the cc2531 through the debug cable, doesn't it ?

lolorc avatar Oct 23 '18 07:10 lolorc

Did you try to plugin the connector on the cc2531 with the cable on the other side ? I needed to do this. have flashed 5 sticks like that

FelixUster avatar Oct 23 '18 08:10 FelixUster

I hade the same error the problem was the cc debuger driver that got installed automatic. Did you try to install the driver manualy? 32bit version?

JLFN avatar Oct 23 '18 08:10 JLFN

weird, why would you connect the cc2531 to computer when trying to flash it ? your debugger does power the cc2531 through the debug cable, doesn't it ?

because: https://github.com/Koenkk/zigbee2mqtt/wiki/Getting-started point 4; "Connect BOTH the CC2531 USB sniffer and the CC debugger to your PC using USB."

and i can confirm only when both is connected / powered the led turn from red to green so: NO the debugger does not power the cc2531 trough the debug cable

HannesDi avatar Oct 23 '18 16:10 HannesDi

I've tried everything and as soon as the Downloader connector goes in between, both the CC Debugger and Zigbee USB sniffer turns off.

tynor88 avatar Oct 23 '18 17:10 tynor88

Hmm, I was looking at pictures and from what I can see I received this Downloader Connector:

Downloader Connector 1

Rather than this: Downloader Connector 2

Are there any differences? Everybody is linking to the last one, but for some reason the sender from AliExpress sent me the first one (even though the pictures stated differently). I don't have the "CBAN DEBUG" in the top right corner and it looks a little bit smaller.

tynor88 avatar Oct 23 '18 18:10 tynor88

Can you post a picture of your board without the cable attached to it?

Koenkk avatar Oct 23 '18 18:10 Koenkk

@Koenkk sure here you go: Without cable

tynor88 avatar Oct 23 '18 18:10 tynor88

Board seems to be fine, my guess it that either your CC debugger or sniffer is defective.

Koenkk avatar Oct 24 '18 06:10 Koenkk

But if I connect them without the board in the circuit, they both show up on Windows and drivers get installed correctly. So do you still think that is the case?

tynor88 avatar Oct 24 '18 07:10 tynor88

Can you try to connect the pins directly by using jumper wires? (so that you don't need the flat cable/connector board)

Koenkk avatar Oct 24 '18 14:10 Koenkk

@Koenkk i tried what you suggested with jumper wires. Result is:

If i connect the CCDebugger with the connector board: CC Debugger turns off (lights) If i connect the Zigbee Sniffer with the connector board: Zigbee sniffer turns off (lights)

If i connect them in a circuit, both of them turns off as soon as the connector board goes in between.

tynor88 avatar Oct 24 '18 15:10 tynor88

@Koenkk sure here you go: Without cable

Is there a connection from the middle down pin to the big pad down right in the picture, it seems so and if i'm correct that if false.

BudBundi avatar Oct 24 '18 18:10 BudBundi

@tynor88 Maybe have a look at https://github.com/Koenkk/zigbee2mqtt/wiki/Alternative-firmware-flashing-methods if you have an Arduino laying around.

This way you could test if your CC2531 is ok.

If you have a multimeter you could test if all the pins on the connectors are wired correctly. Verify if all the Pins on the small connector match the big connector.

pixeldoc2000 avatar Oct 24 '18 19:10 pixeldoc2000

If you have a NodeMCU laying around that would work too. I had trouble getting this to work so I documented my eventual set up as a comment over here..

https://github.com/Koenkk/zigbee2mqtt/issues/78

ericstewart22 avatar Oct 28 '18 02:10 ericstewart22