Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi - I am working with a pi pico-w and have spent a week on a grand tour of all the available dev environments - Native C/Cmake, MicroPython, CircuitPython, Arduino C++, Every one of them has it's flaws and foibles - and whilst I can get bits and pieces working in each - none quite do what I want.
TinyGo looked like the answer - I have a few months of GO under my belt, and love the language
I had the TinyGo environment set up and working on my windows machine .. I was able to flash programs and get debug println's back on my serial monitor in VScode
I change nothing of significance - but now my environment seems utterly broken
Attempting to flash a trivial program (with no imports)
`package main
import (
//"machine"
//"tinygo.org/x/drivers/bmp280"
)
func main() {
println("Hello, World!")
}`
Yields:-
C:\goprojects\test>tinygo flash -target=pico-w test.go C:\Users\nicka\AppData\Local\tinygo\goroot-465c419cf1fae9c893cfd238017f6efa6802c8516bb2805bf155f6a51581dd40\src\syscall\syscall.go:5:2: cannot find package "sync/atomic" in any of: C:\Users\nicka\AppData\Local\tinygo\goroot-465c419cf1fae9c893cfd238017f6efa6802c8516bb2805bf155f6a51581dd40\src\vendor\sync\atomic (vendor tree) C:\Users\nicka\AppData\Local\tinygo\goroot-465c419cf1fae9c893cfd238017f6efa6802c8516bb2805bf155f6a51581dd40\src\sync\atomic (from $GOROOT) c:\program files\GO\src\sync\atomic (from $GOPATH)
I have restarted my machine, (uninstalled and) reinstalled TinyGo (with scoop), started a new 'hello world' project (this all went downhill fast when attempting to use a BMP280)
my GO version is
C:\goprojects\test>go version go version go1.22.4 windows/amd64
my go env is
C:\goprojects\test>go env set GO111MODULE=auto set GOARCH=amd64 set GOBIN= set GOCACHE=C:\Users\nicka\AppData\Local\go-build set GOENV=C:\Users\nicka\AppData\Roaming\go\env set GOEXE=.exe set GOEXPERIMENT= set GOFLAGS= set GOHOSTARCH=amd64 set GOHOSTOS=windows set GOINSECURE= set GOMODCACHE=c:\program files\GO\pkg\mod set GONOPROXY= set GONOSUMDB= set GOOS=windows set GOPATH=c:\program files\GO set GOPRIVATE= set GOPROXY=https://proxy.golang.org,direct set GOROOT=C:\Users\nicka\AppData\Local\tinygo\goroot-c515ebc90fac32df41f6de1d53e6dcb43f04408e4de142ff0976bc5c07de106a set GOSUMDB=sum.golang.org set GOTMPDIR= set GOTOOLCHAIN=auto set GOTOOLDIR=C:\Users\nicka\AppData\Local\tinygo\goroot-c515ebc90fac32df41f6de1d53e6dcb43f04408e4de142ff0976bc5c07de106a\pkg\tool\windows_amd64 set GOVCS= set GOVERSION=go1.22.4 set GCCGO=gccgo set GOAMD64=v1 set AR=ar set CC=gcc set CXX=C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2021.10\bin set CGO_ENABLED=0 set GOMOD= set GOWORK= set CGO_CFLAGS=-O2 -g set CGO_CPPFLAGS= set CGO_CXXFLAGS=-O2 -g set CGO_FFLAGS=-O2 -g set CGO_LDFLAGS=-O2 -g set PKG_CONFIG=pkg-config set GOGCCFLAGS=-m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\nicka\AppData\Local\Temp\go-build1050829561=/tmp/go-build -gno-record-gcc-switches
I am just sick and weary of this - 9 Days now spent wrestling toolchains - I just want to write some code 😢
I would love to contribute to the project .. not sure how much I can bring, but one of the things I want to do is write/port a driver for the ArduCam SPI camera
I also want to use the HTTP Client to POST images .. so I can probably provide some useful feedback on the UX there
Any pointers would be appreciated
Nick
Beta Was this translation helpful? Give feedback.
All reactions