Z-Stack-firmware icon indicating copy to clipboard operation
Z-Stack-firmware copied to clipboard

Error when flashing the new firmware

Open minimmi opened this issue 4 years ago • 84 comments

Hello,

I am currently trying to flash the latest router firmware:

https://github.com/Koenkk/Z-Stack-firmware/blob/develop/router/Z-Stack_3.x.0/bin/CC1352P2_CC2652P_launchpad_router_20221102.zip

but I always get the following error message:

image

What am I doing wrong? Can anyone help me?

minimmi avatar Nov 04 '22 08:11 minimmi

I'm getting the same.. A bit of googling suggests it may be something to do with the method that was used to compile the hex..?

did you unzip the file?

tube0013 avatar Nov 04 '22 17:11 tube0013

Yes and followed the flashing guidelines. Haven't had an issue with previous firmwares.. just this one. Please see my linked closed issue for a full screenshot of the window

Yes and followed the flashing guidelines. Haven't had an issue with previous firmwares.. just this one

I can confirm that. With the previous firmware version everything works without problems. If I then try to flash the new in the same way, I get the error message.

minimmi avatar Nov 04 '22 17:11 minimmi

Same error here as well using the TI software to update the Sonoff Zigbee 3.0 dongle. I flashed the previous firmware to see if something was wrong with my device and it worked perfectly.

kfraleigh avatar Nov 04 '22 17:11 kfraleigh

Same here

Shamshala avatar Nov 04 '22 23:11 Shamshala

Same here for a Sonoff CC2652P

Initiate access to target: COM6 using 2-pin cJTAG. Reading file: C:/ATemp/ZIGBEE Firmware/Coordinator/CC1352P2_CC2652P_launchpad_coordinator_20221102.hex. Unknown record type: 3. Reset target ... Reset of target successful. Initiate access to target: COM6 using 2-pin cJTAG. Reading file: C:/ATemp/ZIGBEE Firmware/Coordinator/CC1352P2_CC2652P_launchpad_coordinator_20221102.hex. Unknown record type: 3. Reset target ... Reset of target successful. Initiate access to target: COM6 using 2-pin cJTAG. No response from device. Device may not be in bootloader mode. Reset device and try again. If problem persists, check connection and baud rate. Connecting over serial bootloader failed: No response from device. Device may not be in bootloader mode. Reset device and try again. If problem persists, check connection and baud rate. Failed to create device object.

boris1000 avatar Nov 05 '22 15:11 boris1000

used now the stable one which works without an issue , using Texas Instruments flasher

boris1000 avatar Nov 05 '22 16:11 boris1000

Just to add - this the same error when trying the router firmware

boris1000 avatar Nov 05 '22 16:11 boris1000

Same here, unable to flash as per what others are saying above.

jchurchward avatar Nov 05 '22 22:11 jchurchward

Follow these instructions

https://github.com/Koenkk/Z-Stack-firmware/issues/383#issuecomment-1301903658

alexruffell avatar Nov 06 '22 13:11 alexruffell

Reported this to TI: https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum/1168418/simplelink-cc13x2-26x2-sdk-flashing-simlelink-6_30_00_84-hex-through-uniflash-fails

Koenkk avatar Nov 06 '22 14:11 Koenkk

Seems that the issue is specific to Uniflash 8.1.0, Uniflash 8.0.0 works fine for me.

Koenkk avatar Nov 06 '22 14:11 Koenkk

Downloaded UniFlash here: https://www.ti.com/tool/download/UNIFLASH/8.0.0

I tried to flash the firmware with Uniflash, but I can't get it to work because my dongle is not recognized:

image

minimmi avatar Nov 06 '22 15:11 minimmi

TI Flash Programmer 2 is what I have been using (and others posting) that doesn’t work with the new firmware. I hadn’t seen Uniflash mentioned for flashing the Sonoff dongle.

kfraleigh avatar Nov 06 '22 17:11 kfraleigh

Update:

Have now tried to flash the firmware with the help of the python script as described in this video:

https://youtu.be/iCE5Z43EKpk?t=1254

It looked like everything worked out:

image

but after i reconnected the stick, zigbee2mqtt still shows me the old firmware:

image

minimmi avatar Nov 06 '22 19:11 minimmi

I'm getting the same error that others have reported.

Initiate access to target: COM3 using 2-pin cJTAG. Reading file: Z:/Projects/Zigbee_Flash/CC1352P2_CC2652P_launchpad_router_20221102/CC1352P2_CC2652P_launchpad_router_20221102.hex. Unknown record type: 3. Reset target ...

I can still flash the older FW but not this new one.

mikecay avatar Nov 06 '22 21:11 mikecay

TI responded that this is a known issue of Uniflash 8.1.0, so nothing we can do from the z2m side. Use Uniflash 8.0.0 or cc2538-bsl or zigstar flasher instead.

https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum/1168418/simplelink-cc13x2-26x2-sdk-flashing-simlelink-6_30_00_84-hex-through-uniflash-fails

Koenkk avatar Nov 07 '22 16:11 Koenkk

TI responded that this is a known issue of Uniflash 8.1.0, so nothing we can do from the z2m side. Use Uniflash 8.0.0 or cc2538-bsl or zigstar flasher instead.

https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum/1168418/simplelink-cc13x2-26x2-sdk-flashing-simlelink-6_30_00_84-hex-through-uniflash-fails

As you can see in my last comment, I did the flashing with cc2538-bsl. In zigbee2mqtt I still see the old firmware.

minimmi avatar Nov 07 '22 17:11 minimmi

@minimmi Try it again, I succesfully flashed coordinator via cc2538-bsl and it works.

Shamshala avatar Nov 07 '22 18:11 Shamshala