Open
Description
Hi fellow Gophers!
I did try to write a simple hello-world application using espressifs ESP32 Plattform
package main
import (
"time"
)
//Flash with tinygo flash -target esp32-mini32 -scheduler tasks -gc conservative -size full main.go
func main() {
for {
println("Hello World!")
time.Sleep(time.Millisecond * 500)
}
}
I flashed the project file using:
tinygo flash -target esp32 -scheduler tasks -gc conservative -size full main.go
Somehow, ill receive only odd data over serial with 115200 baud, data 8, parity none
Am i missing something that i should configure?
(The default blinking led example works fine, uart does not somehow. Using the Serial port with Arduino or EspressifsSDK works)
└─tinygo info 1 ⨯
LLVM triple: x86_64-unknown-linux
GOOS: linux
GOARCH: amd64
GOARM: 6
build tags: linux amd64 tinygo math_big_pure_go gc.conservative scheduler.tasks serial.none
garbage collector: conservative
scheduler: tasks
cached GOROOT: ............
└─$ tinygo version
tinygo version 0.22.0 linux/amd64 (using go version go1.17.6 and LLVM version 13.0.0)
└─$ tinygo env
GOOS="linux"
GOARCH="amd64"
GOROOT="/usr/local/go"
GOPATH="/home/mime/go"
GOCACHE="/home/mime/.cache/tinygo"
CGO_ENABLED="1"
TINYGOROOT="/usr/local/lib/tinygo"
└─$ xtenxtensa-esp32-elf-gcc -v
Using built-in specs.
COLLECT_GCC=xtensa-esp32-elf-gcc
COLLECT_LTO_WRAPPER=/home/MYUSER/esp/xtensa-esp32-elf/bin/../libexec/gcc/xtensa-esp32-elf/5.2.0/lto-wrapper
Target: xtensa-esp32-elf
Configured with: /builds/idf/crosstool-NG/.build/src/gcc-5.2.0/configure --build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu --target=xtensa-esp32-elf --prefix=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf --with-local-prefix=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf/xtensa-esp32-elf/sysroot --with-sysroot=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf/xtensa-esp32-elf/sysroot --with-newlib --enable-threads=no --disable-shared --with-pkgversion='crosstool-NG crosstool-ng-1.22.0-80-g6c4433a' --disable-__cxa_atexit --enable-cxx-flags='-fno-rtti -ffunction-sections' --with-gmp=/builds/idf/crosstool-NG/.build/xtensa-esp32-elf/buildtools --with-mpfr=/builds/idf/crosstool-NG/.build/xtensa-esp32-elf/buildtools --with-mpc=/builds/idf/crosstool-NG/.build/xtensa-esp32-elf/buildtools --with-isl=/builds/idf/crosstool-NG/.build/xtensa-esp32-elf/buildtools --with-cloog=/builds/idf/crosstool-NG/.build/xtensa-esp32-elf/buildtools --with-libelf=/builds/idf/crosstool-NG/.build/xtensa-esp32-elf/buildtools --enable-lto --enable-target-optspace --without-long-double-128 --disable-libgomp --disable-libmudflap --disable-libssp --disable-libquadmath --disable-libquadmath-support --disable-nls --enable-languages=c,c++ --disable-libstdcxx-verbose --enable-threads=posix --enable-gcov-custom-rtio
Thread model: posix
gcc version 5.2.0 (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a)