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

CC2652RB does not start with provided image - solution found!

Open didiht opened this issue 6 years ago • 5 comments

Thirst thank you very much for providing the image for the CC2652RB board too.

My board is running well with the self patched and compiled image with the patch from 20200306.

After flashing with the provided image CC2652RB_20200312.hex I always get this error (full log: https://pastebin.com/VZLducvD):

zigbee2mqtt:error 2020-03-20 10:07:16: Error: SREQ '--> SYS - osalNvWrite - {"id":3,"len":1,"offset":0,"value":{"type":"Buffer","data":[2]}}' failed with status '10' (expected '0')  
    at Znp.<anonymous> (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:246:27)  
    at Generator.next (<anonymous>)  
    at fulfilled (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:5:58)

I tried flashing two times with same result. At the moment I am back to my image.

Update 1:

I've build my own image with the patchfile as of 20200312, but with same error.

Update 2:

@Koenkk I found the bug!

Following values in file znp.syscfg are wrong (old) and do not correspond to the one in cc26x2lp.cmd:

NVS1.internalFlash.regionBase = 0x52000;
NVS1.internalFlash.regionSize = 0x4000;

should be

NVS1.internalFlash.regionBase = 0x50000;
NVS1.internalFlash.regionSize = 0x6000;

With these corrections my CC2562RB board runs well :-)

didiht avatar Mar 20 '20 09:03 didiht

Thanks for investigating this! It indeed wasn't working and sill needed to find out why :smile:

Fixed firmware is available now.

Koenkk avatar Mar 21 '20 20:03 Koenkk

@Koenkk I have the same issue with the CC1352P-2

zigbee2mqtt:error 2020-04-14 13:52:28: Error: SREQ '--> SYS - osalNvWrite - {"id":1,"offset":0,"osal":true,"product":-1,"value":[18,234,165,28,0,75,18,0],"len":8}' failed with status '2' (expected '0') at Znp.<anonymous> (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:246:27) at Generator.next (<anonymous>) at fulfilled (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:5:58)

Is there anything I can do myself?

hartmood avatar Apr 14 '20 11:04 hartmood

@hartmood make sure to check step 5 from https://www.zigbee2mqtt.io/information/flashing_via_uniflash.html

Koenkk avatar Apr 14 '20 20:04 Koenkk

Thanks. But the controller worked a couple of weeks and stopped working the last two days - so why do I have to re-flash it now?

hartmood avatar Apr 14 '20 20:04 hartmood

I have re-flashed the controller carefully step by step. And it works now. I most likely have flashed it previously without steps 4 and 5. For whatever reason it worked before I installed some updates. Many thanks.

hartmood avatar Apr 14 '20 20:04 hartmood