You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In trying to test my Nokia screen module I found that large numbers of spi.send() calls will randomly cause the T2 to lock up and stop executing the current program. I boiled the code down to the following example that reproduces the issue.
After an arbitrary number of sends (sometimes 8, sometimes 108) the LED will stop toggling and the console output will stop because it is waiting for the send() callback. I've tried increasing the timeout to slow down the transmissions and that seems to help but doesn't alleviate the problem. There is no significance to the buffer being 504 bytes. That's just how long it is in my module code. .transfer() only supports 255 bytes but .send() was modified to chunk sends so it should work.
Running on firmware version 0.0.6 although I've been seeing this for some time so I don't think it is a new issue.
The text was updated successfully, but these errors were encountered:
For a pointer for whomever takes this bug on: the three places I'd check for an issue are the tessel-export.js driver (ensure it's still `writing to the domain socket), the SPI daemon (ensure it's not getting backed up or something), and finally the microcontroller firmware.
In trying to test my Nokia screen module I found that large numbers of
spi.send()
calls will randomly cause the T2 to lock up and stop executing the current program. I boiled the code down to the following example that reproduces the issue.After an arbitrary number of sends (sometimes 8, sometimes 108) the LED will stop toggling and the console output will stop because it is waiting for the
send()
callback. I've tried increasing the timeout to slow down the transmissions and that seems to help but doesn't alleviate the problem. There is no significance to the buffer being 504 bytes. That's just how long it is in my module code..transfer()
only supports 255 bytes but.send()
was modified to chunk sends so it should work.Running on firmware version 0.0.6 although I've been seeing this for some time so I don't think it is a new issue.
The text was updated successfully, but these errors were encountered: