N newbie Member Licensed User Longtime User Dec 17, 2016 #1 Hi, my application use 55 Kb , 10% that are 10% of the memory. now i have the following phenomenon: in the AppStart this lines of Code makes trouble: Code: Copy ' Lesen der Einstellungen vom EEprom Dim LastCode As Int = DS3231.EepromReadInt(0) Log("LastCode=",LastCode) Dim ProjektCode As Int = 2222 Log("Projektcode=",ProjektCode," Read:",LastCode) everytime the value for ProjektCode and Lastcode are the same !!!! But this is not possible while the declaration of projektcode is AFTER reading the eeprom.value. The value in the eeprom is definitiv not 2222!! The same when reading another adress or changing the value. The rest of the application seems work correctly. When i put this codelines in a shorter projekt with the same board it works fine. ( in another case with arduino ide i have had in the past a similar problem ( some pins suddenly don't work) Has someone an idea how to solve the problem ?? Thanks for all hints.
Hi, my application use 55 Kb , 10% that are 10% of the memory. now i have the following phenomenon: in the AppStart this lines of Code makes trouble: Code: Copy ' Lesen der Einstellungen vom EEprom Dim LastCode As Int = DS3231.EepromReadInt(0) Log("LastCode=",LastCode) Dim ProjektCode As Int = 2222 Log("Projektcode=",ProjektCode," Read:",LastCode) everytime the value for ProjektCode and Lastcode are the same !!!! But this is not possible while the declaration of projektcode is AFTER reading the eeprom.value. The value in the eeprom is definitiv not 2222!! The same when reading another adress or changing the value. The rest of the application seems work correctly. When i put this codelines in a shorter projekt with the same board it works fine. ( in another case with arduino ide i have had in the past a similar problem ( some pins suddenly don't work) Has someone an idea how to solve the problem ?? Thanks for all hints.
Erel B4X founder Staff member Licensed User Longtime User Dec 18, 2016 #2 Is it possible that you are later writing ProjektCode to the EEPROM? It can be confusing as the program is actually started twice whenever you run it. Upvote 0
Is it possible that you are later writing ProjektCode to the EEPROM? It can be confusing as the program is actually started twice whenever you run it.
N newbie Member Licensed User Longtime User Dec 18, 2016 #3 Erel said: Is it possible that you are later writing ProjektCode to the EEPROM? It can be confusing as the program is actually started twice whenever you run it. Click to expand... Hi Erel, thanks, i have put it in a timer and now it seems do work Upvote 0
Erel said: Is it possible that you are later writing ProjektCode to the EEPROM? It can be confusing as the program is actually started twice whenever you run it. Click to expand... Hi Erel, thanks, i have put it in a timer and now it seems do work