

18·
il y a 2 ansIs this before or after you ate it?


Is this before or after you ate it?
Also however it ends up was what he willed anyway. The whole thing goes tits up: well God is testing our faith, but we must continue to believe. Everything works perfectly: God has blessed us. It removes all personal responsibility from any decision.
The way I have done it in the past. Rearrange all struct members from the largest to smallest data size. Do a sizeof the struct to make sure it is what you expect. You can look at the memory map too if your compiler provides it. Point an unsigned char (uint8_t) pointer to the first member of the struct or the variable name of the struct casted as a uint8_t. Then move the data into whatever the EEPROM or flash pages the data needs using the sizeof the struct and the size of the page for the non volatile storage. Sometimes I make a temporary array of the structs if I’m going to do several on a page. Then either copy directly into my ram overlay or just return the data if it is like a lookup or whatever.