Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't flash nrf52840 dongle - any examples? #4748

Open
kdochoa opened this issue Feb 22, 2025 · 1 comment
Open

Can't flash nrf52840 dongle - any examples? #4748

kdochoa opened this issue Feb 22, 2025 · 1 comment
Labels
nRF Nordic Semi

Comments

@kdochoa
Copy link

kdochoa commented Feb 22, 2025

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)
    }
}
@deadprogram
Copy link
Member

Please see #4749 for an attempt to correct this.

@deadprogram deadprogram added the nRF Nordic Semi label Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nRF Nordic Semi
Projects
None yet
Development

No branches or pull requests

2 participants