Open tonygilkerson opened 1 year ago
I got a response on the Tinygo slack channel: https://gophers.slack.com/archives/CDJD3SUP6/p1692660961082699?thread_ts=1692660743.478199&cid=CDJD3SUP6
I remove the "bad" code on the Tinygo dev
branch:
go install
ln -s /Users/tgilkerson/go/bin/tinygo /usr/local/bin/tinygo
machine
is recognized in the IDE# Make sure you have `pico` selected as the TinyGo target
# and the vscode is working then run the following
code $(jq -r '.["go.toolsEnvVars"].GOROOT' .vscode/settings.json)/src/machine/machine_rp2040_spi.go
# Comment out the two occurrences of the following and save
for spi.isBusy() {
gosched()
}
I am working with Lora sx127x on a Pico, when I upgraded to v0.28.0 things started to work. But today after I upgraded to v0.28.1 I am no longer able to Tx or Rx. It will find the radio but as soon as I start to Tx or Rx it prints p and locks up (i assume it is printing panic but does not get that far. The 10 second Rx loop work as long as it does not receive any data, but as soon as I send data with another device it locks up.
Patricio Whittingslow
See this slack thread
Code
The addition of this code seems to cause the issue: Source file
/Users/tgilkerson/github/tinygo-org/tinygo/src/machine/machine_rp2040_spi.go
Solution
See if you can run TinyGo from the
dev
branch and remove this lines until the upstream is fixTo run from dev I think I would do something like this:
go install
ln -s
to have the TinyGo bin show up in the right place but I am not sure