![]() ![]() ![]() The code is fairly large and proprietary so I can't really post it. I have verified that the EEPROM write is placing the data in the right place and stomping on existing program memory with a write appears to be impossible. What happens is that after an EEPROM write, I kill the timer and goto Restart which executes the normal mode code path, but spuriously, code from the config path is being executed while running the normal path. The label "Restart:" is the very first item in the program so I would think that goto restart is just about the same as a power on start, but it isn't working out that way. The EEPROM writes are successful, that is, they do make the expected changes. I have used the define, "DEFINE WRITE_INT 1" to make certain the EEPROM writes are not interrupted. Both paths are working as expected from power up, but there is a problem when writing to EEPROM in the config path and then switching to the normal path without powering off.Įach path uses a different timer and I ensure that only one of them is running at a time. The path chosen is determined by a switch at power up time. The program has two main code paths one path is the normal operation of the project and the other path is the configuration mode which determines and sets EEPROM values. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |