Open
Description
Can't get a simple blinky to work - board just goes unresponsive and undetectable. Are there any suggestions or examples specifically for nrf52840 dongle (pca10059)?
I am using go 1.23.6 and tinygo 0.35.
I have the stock bootloader on the dongle. The blinky example from zephyr works fine, although I notice it is much larger (37kb vs 7kb).
Here are the commands I'm using. Can't use tinygo flash command directly due to this open issue
tinygo build -target=pca10059 -o program.bin -x main.go
nrfutil pkg generate --hw-version 52 --sd-req=0x00 --application program.bin --application-version 1 app.zip
nrfutil dfu usb-serial -pkg app.zip -p /dev/tty.usbmodemD7FAB55FB3751
Code:
package main
import (
"machine"
"time"
)
func main() {
led := machine.LED
led.Configure(machine.PinConfig{Mode: machine.PinOutput})
for {
led.Low()
time.Sleep(time.Millisecond * 500)
led.High()
time.Sleep(time.Millisecond * 500)
}
}