Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T2 Bug: Using both streams and triggers can cause SPI corruption? #49

Open
johnnyman727 opened this issue Nov 24, 2015 · 2 comments
Open
Labels

Comments

@johnnyman727
Copy link
Contributor

I'm seeing an issue with the default ambient.js example which requests both sound and light data on an interval and requests trigger data when it's available. After a couple of successful reads of the trigger value (usually between 2-5), we get an invalid response:

Light level: 0.01464844   Sound Level: 0.00976563
Light level: 0.01855469   Sound Level: 0.01562500
Light level: 0.02343750   Sound Level: 0.01367188
Light level: 0.02832031   Sound Level: 0.01953125
Light level: 0.12402344   Sound Level: 0.01562500
Light level: 0.10058594   Sound Level: 0.01367188
Light level: 0.05566406   Sound Level: 0.01562500
Light level: 0.02343750   Sound Level: 0.01953125
Light level: 0.12011719   Sound Level: 0.00683594
Light level: 0.02246094   Sound Level: 0.01562500
Light level: 0.03515625   Sound Level: 0.00683594
Light level: 0.22656250   Sound Level: 0.01171875
Light level: 0.44824219   Sound Level: 0.01562500
Our light trigger was hit: 0.529296875
Light level: 0.38769531   Sound Level: 0.00976563
Light level: 0.12207031   Sound Level: 0.01367188
Light level: 0.37011719   Sound Level: 0.01367188
Our light trigger was hit: 0.5
Light level: 0.59472656   Sound Level: 0.01074219
Light level: 0.63769531   Sound Level: 0.01367188
Light level: 0.63964844   Sound Level: 0.01367188
Our light trigger was hit: 0.6376953125
Light level: 0.63769531   Sound Level: 0.01562500
Light level: 0.63769531   Sound Level: 0.01367188
Light level: 0.64062500   Sound Level: 0.01367188
Our light trigger was hit: 0.6396484375
/tmp/remote-script/examples/ambient.js:19
      if (err) throw err;

And if we take a look at the transactions with a logic analyzer, we see a strange corruption of the SPI bus just before that error:

screen shot 2015-11-24 at 11 55 23 am

Somehow the Tessel 1 is able to deal with it...

@ajoslin103
Copy link

ajoslin103 commented Jun 25, 2016

still happening...

I simply combined the two examples and the problem can happen on either light or sound

This makes the Tessel2 a real problem for my project...

And I can't buy a Tessel1 anywhere it would seem...

@Frijol Frijol added the bug label Sep 2, 2016
@johnnyman727
Copy link
Contributor Author

This should be fixed with a combination of c11274f and tessel/t2-firmware#209.

Should be closed once tessel/t2-firmware#209 is merged and a new firmware build is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants