-
1. Re: Write Flash of CY8C4246LTI-M445
JoMe_264151 Oct 6, 2016 6:52 AM (in response to zosz_1336651)The compiler is cheating you, it "remembers" the const declaration you made and takes that value to assign. Use a memcpy() call to retrieve the programmed value.
Bob
-
2. Re: Write Flash of CY8C4246LTI-M445
zosz_1336651 Oct 6, 2016 9:54 AM (in response to zosz_1336651)Thank You Bob,
Changed the read process to:
memcpy(eepromArray, flashRowDataFLASH, CY_FLASH_SIZEOF_ROW);
a = eepromArray[0];
But still read the old value after power off-on.
-
3. Re: Write Flash of CY8C4246LTI-M445
JoMe_264151 Oct 6, 2016 10:19 AM (in response to zosz_1336651)Can you please post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.Bob
-
4. Re: Write Flash of CY8C4246LTI-M445
zosz_1336651 Oct 6, 2016 11:31 AM (in response to zosz_1336651)The controller is built in a device with sensors and display, so I started to remove all unrelevante parts letting just the Flash part in the code and I find the problem. The Flash writing works fine, just its a 10 sec backcounter before saving and I have been to fast, and restarted the unit before it riched to end to save. So finally is solved, thank You so much for your time and for memcpy !
All the best !
Zoltan
-
5. Re: Write Flash of CY8C4246LTI-M445
JoMe_264151 Oct 6, 2016 11:45 AM (in response to zosz_1336651)You are always welcome!
Bob