Open dufi2profor opened 4 years ago
Has anyone figured out a workaround for this?
Well, i used other approach. My system was supposed to store to eeprom several variables, but as mentioned, after waking it up from sleep, the eeprom writes hung the Teensy board. Since in my project i am using TJA1045 CAN transcievers, which also have wakeup pin used to turn on power supply for the system, so prior to going to sleep, i call function that writes variables to eeprom and then, after all CAN communication stops i call sequence which puts all TJAs (i am using three) to sleep. When TJAs enter sleep, all turn off their wakeup pin which turns off the power supply and thus whole system. As my "master" TJA is connected to VBAT in car, it recognised wakeup sequence on CAN bus and turns on my power supply.
That is how i do it :)
Hello,
i just found out that after wake up from deepSleep and using EEPRPOM.write(), Teensy hangs.
Here is example program, if You uncomment both EEPROM.write, code flashes the LED and Teensy gets to deepSleep properly.
Thank You very much