Jump to content
43oh

Recommended Posts

Have you checked the LCD print routines (e.g. if you set data = 5, does it write 5?).

 

What is the data type of "data"? (does it match what flash.read expects)?

 

Does the flash.write change the values in flash?

(e.g. if you do a print loop before the flash write, and one afterwards, do you get different values).

 

Have you checked the address math?  (To be sure that (unsigned char*)potvalue + offsat gives you what you want.)

(e.g. print the list of addresses to the serial port, and be sure they go up by one byte each time).

Link to post
Share on other sites
  • 2 weeks later...

I forgot the flash write routine will clear the flash first or not, but I kind of remember it didn't. If not, you will have to clean the flash before write, as write only able to set 0 to 1, but not the other way.

Are you sure it's not the other way around (so, erasing will set all bits to 1, writing can only set them to 0)?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...