Can't write NVM data! at=20000

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
AJTozer
Posts: 11
Joined: 08 Oct 2017 18:37

Can't write NVM data! at=20000

Post by AJTozer »

Uploading firmware to my Z-Uno often fails with the error "Unknown exception "Can't write NVM data! at=20000". Erasing NVM (user, system, or all) generally has no effect. Then, after a while, an upload will work OK. Then it starts failing again.

Any ideas what's going wrong?
Making firmware file: TempSensor.ino-0215.hex ...packihx: read 331 lines, wrote 612: OK.
Fixing ISR table in TempSensor.ino-0215.hex ...
Making binary firmware file TempSensor.ino-0215.bin. Use it in Z-Way for wireless update procedure.[Done]

Elapsed:6.41352915764 s
Sketch uses 9566 bytes (29%) of program storage space. Maximum is 32256 bytes.
Global variables use 187 bytes of dynamic memory.

Openning port ..............................
Openning port .............................. OK

Stoping the user code ..............................
Stoping the user code .............................. OK

Closing port ..............................
Closing port .............................. OK

Openning port ..............................
Openning port .............................. OK


RAW Info:
AA AA BB BB 01 15 01 10
00 01 02 0F 7B 5E B5 79
02 7F C6 62 83 7F FF 7F
FC 01 15 02 0F 4C A3 01
09 19 14 FF FF FF FF FF
FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF
FF FF FF 0F 11 06 0A 0D
28 01 CB 00 02 1E
----------------------------------------------------------
FIRMWARE DATA
----------------------------------------------------------
REVISION:02.15
Z-WAVE FREQUENCY:US
ORIGINAL FW. CRC32: 7B 5E B5 79
MAXIMUM CODE SIZE: 30 KB
CURRENT FW. CRC16: 4C A3
RADIO CHANNELS: 02
----------------------------------------------------------
HARDWARE DATA
----------------------------------------------------------
CALIBRATION
MAIN:09 TX: 19 14
DEVICE PUBLIC KEY:
HEX: AF 93 AD D4 D7 4E 60 5D 7E 19 E3 38 4F EC E4 0F 78 10 E6 C4 17 1E AB 4B B6 C1 19 47 FC 07 67 61
DEC: 44947-44500-55118-24669-32281-58168-20460-58383-30736-59076-05918-43851-46785-06471-64519-26465
----------------------------------------------------------
PRODUCTION DATA
----------------------------------------------------------
YOUR ZUNO S/N: 0F 11 06 0A 0D 28 01 00 02
----------------------------------------------------------
PRODUCTION TIME:
WEEK:15 YEAR:2017
WORKSTATION:
NUMBER:1 SEQUENCE:3368
HARDWARE:
CHIP:1546 REVISION:2
----------------------------------------------------------

Writing NVM data [> ] (0%)(<class '__main__.ProgrammerError'>, 'compiler.py', 610)



**** **** **** **** **** *
* * * * * * * * * *
* * * * * * * * * *
**** *** *** * * *** *
* * * * * * * * *
**** * * * * **** * * *



Error 0 Unknown exception "Can't write NVM data! at=20000"
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Can't write NVM data! at=20000

Post by PoltoS »

Program Z-Uno in rescue mode. Looks your sketch is disturbing the dialog with the PC
AJTozer
Posts: 11
Joined: 08 Oct 2017 18:37

Re: Can't write NVM data! at=20000

Post by AJTozer »

Not sure if it matters, but this is Linux.

I've tried using rescue mode a few times. It seems to work a little more reliably, but I still sometimes get that same error. What I've found is that if I just keep retrying the upload it sooner or later works.

I'll keep experimenting with things.
Post Reply