I'm having a problem with this...
First time I execute this routine I get seemly random data (same data every time) (that's good). Later in the same program, I get a repeating sequence of 0x15000200.
Any thoughts about this?
1. I run the generator, get 0x251519501E148C58.....
2. Erase some sectors, write some sectors (write back the same data every time)
3. I run the generator, get 0x15000200150002001500020015000200
reset, repeat at one.
I did some more testing. After erasing and writing I get 0x15000200150002001500020015000200 no matter how or when, but after reset I get the "correct" value, repeatedly, UNTIL I erase and rewrite. Note that the contents of flash are always the same.
If I run a signature post-erase, pre-write, I get a different and seemly correct value.
AND... if I change the range of signature, I still get 0x15000200150002001500020015000200.