-
Notifications
You must be signed in to change notification settings - Fork 201
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 |
@soypat did you ever get this to work? I'm using an Adafruit RP2040 with integrated RFM95 module. I can't get mine to even detect the module. |
I got mine to work with a driver of my own programming here: https://github.com/soypat/lora. See receiver and transmitter examples. |
@ryanfaerman I'm also using a Feather RP2040 w/integrated RFM95. Is spiConfig := machine.SPIConfig{
Frequency: 500 * machine.KHz,
Mode: 0,
SCK: machine.GPIO14
SDI: machine.GPIO8
SDO: machine.GPIO15
}
err := machine.SPI1.Configure(spiConfig) I believe I'm experiencing exactly the same crash as the OP (same line in |
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: