You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I recently got into Go and loved the idea of using it for microcontrollers in a new project.
I have a bunch of ESP32-C3 superminis but I can't get tinygo to build for them.
I'm on a MacBook Pro M3 Pro on Sonoma with Tinygo and Esptool installed via Homebrew.
I've tried following the blinking LED example adjusted to work with the esp32c3
main.go
package main
import (
"machine""time"
)
funcmain() {
led:=machine.GPIO8led.Configure(machine.PinConfig{Mode: machine.PinOutput})
for {
led.Low()
time.Sleep(time.Millisecond*500)
led.High()
time.Sleep(time.Millisecond*500)
}
}
I guess it's something with the i2c implementation, but I'm not familiar enough with Go or this project to pinpoint the exact issue yet.
Since building with -target=esp32 works fine, I've tried flashing with that but it won't work either.
❯ tinygo flash -target=esp32
esptool.py v4.7.0
Serial port /dev/cu.usbmodem1101
Connecting...
A fatal error occurred: This chip is ESP32-C3 not ESP32. Wrong --chip argument?
error: failed to flash /var/folders/93/m682qq_n5klc2btq3q_cb_0c0000gq/T/tinygo1642084370/main.bin: exit status 2
Thanks a lot for making all this in the first place, I can't wait to use Go for microcontrollers!
The text was updated successfully, but these errors were encountered:
@vaaski the issue here is that you need to use a target with an actual board file in order to have the correct mapping. An example is the Seeed XIAO ESP32C3 board.
Hey, I recently got into Go and loved the idea of using it for microcontrollers in a new project.
I have a bunch of ESP32-C3 superminis but I can't get tinygo to build for them.
I'm on a MacBook Pro M3 Pro on Sonoma with Tinygo and Esptool installed via Homebrew.
I've tried following the blinking LED example adjusted to work with the esp32c3
main.go
But building fails with the following output:
I guess it's something with the i2c implementation, but I'm not familiar enough with Go or this project to pinpoint the exact issue yet.
Since building with
-target=esp32
works fine, I've tried flashing with that but it won't work either.Thanks a lot for making all this in the first place, I can't wait to use Go for microcontrollers!
The text was updated successfully, but these errors were encountered: