NZRAM Bug?

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
yves
Posts: 49
Joined: 17 Sep 2021 18:05

NZRAM Bug?

Post by yves »

Hello,
I was used to play with EEprom but I discover new needs that NZRAM could fill.
I have found a strange behaviour (on a Zuno0001 Package 2.1.7)
  • I write to NZRAM (uising .put()) the 31 first bytes (using simple NZRAM[i++]=i;) and write a checksum into the last byte [31]
  • When I read back (using .get()) data 'immediately' every thing is OK
  • But after pressing reset btn (or pushing the same sketch) the CRC is false because NZRAM[16] = 0xff, other bytes OK.
  • In facts after an unplug-plug, all is garbage as expected, exepted this 16th byte still = 255
My 'setup' and 'loop' codes are now quite bare simple so that I don't see how this could be my SW fault?
PS: What I see does not depend on what is written in the other bytes and in this faulty one.

Could it be an HW issue with that board (i had not the ooprtunity to check with another)?

Thanks for your ideas
Yves
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: NZRAM Bug?

Post by PoltoS »

NZRAM should not survive reset nor plug-unplug nor new sketch flashing. It is only to keep memory during sleep mode.
Post Reply