-
Notifications
You must be signed in to change notification settings - Fork 178
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
sx127x LoRa example possible deadlock #542
Comments
See the tinyglobo repo for a working example. |
I have used this board for a couple of talks and demos without problems. @soypat if you have a specific reproducer please do provide. |
There is a |
What hardware did you use for the SX127x? Was it actually the featherwing? In which case, how did you connect the jumpers on the featherwing itself? |
Using TinyGo 0.28.1 with Pybadge+Featherwing
This is the code I am running: |
@soypat don't you actually want this?
|
Maybe? Not sure. Been a while since I had that setup running. My current setup has Tx,Rx pins set up correctly and works OK without the gosched() calls introduced in TinyGo 0.28.1 |
Steps to recreate
sx127x.New
function to accept adrivers.SPI
instead of amachine.SPI
What I expected
Forever looping to catch LoRa packets and broadcast packets.
What happened
Program crashes on
err := loraRadio.Tx(txmsg, LORA_DEFAULT_TXTIMEOUT_MS)
. Program stops executing and printsp
.I've tracked the crash to happen during or after this line. I suspect the program deadlocks since it is waiting for an event.
The text was updated successfully, but these errors were encountered: