#Updating CC2652P firmware

1 messages · Page 1 of 1 (latest)

quaint lion
#

What operating system are you using?

lucid plank
#

windows 11

quaint lion
lucid plank
#

already did that step

quaint lion
#

Open up a terminal window and run py -3 -V to make sure Python works

lucid plank
#

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'py' is not defined

quaint lion
#

Looks like you're in the Python interpreter itself

#

Run exit or hit Ctrl-Z to exit

lucid plank
#

Python 3.11.1

#

thats what it gives back

lucid plank
#

last one i already downloaded

#

the first one is just plain text in browser

quaint lion
#

Save it as cc2538-bsl.py

lucid plank
#

the wall of text ?

quaint lion
#

Yes

lucid plank
#

okay sec

#

done

quaint lion
#

py -3 -m pip install intelhex pyserial will install the dependencies for the script

lucid plank
#

Successfully installed intelhex-2.3.0 pyserial-3.5

quaint lion
#

And you should be ready to flash:

py -3 cc2538-bsl.py -p socket://IP:6638 -evw CC1352P2_CC2652P_launchpad_coordinator_20220219.hex
lucid plank
#

just copy and past ?

random violet
#

First trigger bootloader via web front end on coord

lucid plank
#

ow yeah right

random violet
#

The prep for fw update

quaint lion
#

Well no, you have to be in the same folder as cc2538-bsl.py and the .hex file

#

And make sure the IP address is correct

lucid plank
#

okay just a sec

#

same folder check

#

bootloader triggerd

#

py -3 cc2538-bsl.py -p socket://IP:192.168.0.20 -evw CC1352P2_CC2652P_launchpad_coordinator_20220219.hex

#

is that how it should be ?

random violet
#

Need the port

#

:6638 on end of ip

quaint lion
#

So just socket://192.168.0.20:6638

lucid plank
#

py -3 cc2538-bsl.py -p socket://IP:192.168.0.20:6638 -evw CC1352P2_CC2652P_launchpad_coordinator_20220219.hex

quaint lion
#

Get rid of IP:

lucid plank
#

py -3 cc2538-bsl.py -p socket://192.168.0.20:6638 -evw CC1352P2_CC2652P_launchpad_coordinator_20220219.hex

#

like this ?

#

its writting

#

who comes up with these things lol

#

still running no errors so far

quaint lion
#

Is it still flashing?

lucid plank
#

its write

#

its still writhing the file to the adress

random violet
#

It’s slow over tcp

lucid plank
#

248 bytes a second

#

360448 bytes total

quaint lion
#

25 minutes ???

random violet
#

No should be like 5

lucid plank
#

Opening port socket://192.168.0.20:6638, baud 500000
Reading data from CC1352P2_CC2652P_launchpad_coordinator_20220219.hex
Your firmware looks like an Intel Hex file
Connecting to target...
CC1350 PG2.0 (7x7mm): 352KB Flash, 20KB SRAM, CCFG.BL_CONFIG at 0x00057FD8
Primary IEEE Address: 00:12:4B:00:25:90:64:F2

#

Performing mass erase
Erasing all main bank flash sectors
Erase done
Writing 360448 bytes starting at address 0x00000000
Write 104 bytes at 0x00057F988
Write done
Verifying by comparing CRC32 calculations.
Verified (match: 0xddfc152d)

#

it should be done now

random violet
#

Done 🎉

lucid plank
#

so what do i do next ?

#

should i reboot it to take effect or did it already do that ?

#

or can i just try to connect zigbee2mqtt to it now

#

Error: network commissioning timed out - most likely network with the same panId or extendedPanId already exists nearby

#

and its still in the steal pot with the lid on

#

23:52:51 [D] [streamserver:074]
New client connected from 192.168.0.15
23:52:51 [D] [binary_sensor:036]
'TubesZB Serial Connected': Sending state ON
23:54:00 [D] [streamserver:102]
Client 192.168.0.15 disconnected
23:54:00 [D] [binary_sensor:036]
'TubesZB Serial Connected': Sending state OFF

#

so it's updated on everything and it still does not work

#

rebooted it and now it says 00:01:45 [D] [api:102]
Accepted ::FFFF:C0A8:F
00:01:45 [D] [api.connection:917]
Home Assistant 2023.1.1 (::FFFF:C0A8:F): Connected successfully

random violet
#

Are you planning to re join everything? If so delete the backup from z2m config folder and change pan id and maybe even channel - do an energy scan and see what’s free

lucid plank
#

yeah ill rejoin evrything

#

this is getting nuts

#

it sees home assistant os but refuses to work with it

#

Accepted ::FFFF:C0A8:F no idea what that means

lucid plank
#

just a configuration file with almost nothing in it

#

homeassistant: true <<-- thats the only line in the configuration folder

#

Home assistant finds the coordinator and it accepts the link but it does not work

#

i dont even know where he is getting the the id's everything was reset and there is no backup in the z2M folder

#

is it possibol my neightbours are sending out so many signals it prevents the device from booting ?

#

or is that far fetcht

#

i even unscrewd the antenna so it's range would be limited

#

ill unplug it for a bit and try again 2 morrow maybe it will fix itself

random violet
#

there should be a configuration.yaml or similar in the z2m folder

lucid plank
#

that there is

#

deleted it

#

same result

#

there is only 1 line in the configuration.yaml

#

"homeassistant: true" thats all

random violet
#

hmm. z2m is not my specialty but I think at a minimum it needs more than that. are you using the addon? maybe just delete and re-install

lucid plank
#

i'm using the addon yes

#

already re-installed it like 4 times before asking for help 😢

#

i don't know where he is getting the data from to always use the same ap

#

and there is no way for me to adjust it

#

everything about my previous zigbee network should be all gone now

#

i even unplugged all the routers and so on to reduce chatter

random violet
#

run an energy scan: just address the coord same as you did in the flash socket://

#

if forming new should look for best channel and z2m will always default to 11

lucid plank
#

pip install git+https://github.com/zigpy/zigpy-cli.git

#

no command says the shell

lucid plank
#

how do i order it to take evrything new ?

#

made my own basic config file

#

doesn't work either

#

it works it works

#

it's alive

#

fed it a fake config file and it works

#

@random violet @quaint lion thanks for all the help !

quaint lion
#

So you changed the PAN ID and it worked?

#

Bizarre

lucid plank
#

nope that didn't even work

#

fed it a fake config file

#

and it started right up

quaint lion
#

Z2M?

lucid plank
#

yes

quaint lion
#

Weird

#

But if it works, it works 😆

lucid plank
#

i don't care

#

it works