[OpenTRV-dev] SPI speed and REV1 crashes
damon at opentrv.uk
Tue Sep 22 21:12:27 BST 2015
Frustratingly the REV1 is still crashing periodically in RX mode; I wish I could get to the bottom of this!
> On 22 Sep 2015, at 13:15, Damon Hart-Davis <damon at opentrv.uk> wrote:
> We’ve had some mysterious crashes, mainly on REV1 (though some also on REV9, now avoided), that I had blamed on used of the AVR’s IDLE mode.
> Further thinking and help from Bo suggests it may more boringly be the LED on the SPI_SCK pin, so experimentally I’ve slowed down SPI (basic clocking, and around the select line).
> OpenTRV and OTRadioLink now have a tag:
> with that in place.
> The problem mainly shows up with a REV1 in RX mode (stats or boiler hub) because it has to poll furiously (IRQ is not available); typically the board resets after ~30 minutes (variable). I suspect that it is a problem on REV1 because of that SCK LED and because of thinner tracks on the board.
> I have done some limited testing and the change doesn’t seem to make things worse.
> It is possible to adjust the SPI speed at compile time, so that we could have full speed on REV2, but my inclination if this works is to leave us the extra safety/noise/speed margin on the newer boards too.
> OpenTRV-dev mailing list
> OpenTRV-dev at lists.opentrv.org.uk
More information about the OpenTRV-dev