Info |
---|
Considering the thread solved and closed as of . LDO replacement solves RESET on power up of WiFi radio and secondary, less frequent RESET issue solved by moving ISR to SRAM for execution. |
Table of Contents | ||||
---|---|---|---|---|
|
...
Now at 1800 boot count with no issues. Hardware is stable.
Secondary, intermittent reset issue seems to be solved by properly marking ISR routines to be copied to SRAM.
IRAM_ATTR
in function definition informs program to copy and execute code from SRAM.
Code Block |
---|
//=======================================================
// windTick: ISR to capture wind speed relay closure
//=======================================================
void IRAM_ATTR windTick(void)
{
timeSinceLastTick = millis() - lastTick;
//software debounce attempt
//record up to 10 ticks from anemometer
if (timeSinceLastTick > 10 && count < 10)
{
lastTick = millis();
tickTime[count] = timeSinceLastTick;
count++;
}
} |