-
Notifications
You must be signed in to change notification settings - Fork 944
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
dfu_version unexpected in manifest for pca10059? #4089
Comments
I reverted 6435f62 and built from source and verified that does resolve the issue in my environment. |
Hello @aeijdenberg just checking to see if this is still an issue for you? |
I'm encountering this problem with Tinygo 0.35 both using the .deb release and when built from source. My device is a PCA10059 with the Open DFU bootloader. When I look at the source for https://github.com/tinygo-org/tinygo/blob/release/builder/nrfutil.go it seems to be generating maninfests for the Nordic Secure Bootloader which won't work with the Open DFU bootloader. Looking at the docs for this board and the machine package, I don't seen anything that specifies what bootloader type is required. https://tinygo.org/docs/reference/microcontrollers/pca10059/ I'm not real familiar with the Nordic ecosystem yet. Can someone confirm this? |
Also happening to me. @aeijdenberg solution worked |
Sorry for the late reply. And I'm not able to check if it's still an issue - I was playing with this a year ago but don't have the dev environment setup anymore. From recent comments it looks like others still have the same or similar issue. |
…t using nrf_open_dfu build tag. Intended to fix #4089 Signed-off-by: deadprogram <ron@hybridgroup.com>
…t using nrf_open_dfu build tag. Intended to fix #4089 Signed-off-by: deadprogram <ron@hybridgroup.com>
Hi, I've been trying to get the example flashing light working with
tinygo
and thenRF52840
USB Dongle.When I run
tinygo flash -target=pca10059 ./main.go
I get the following output:I'm running this version of
nrfutil
downloaded from https://www.nordicsemi.com/Products/Development-tools/nrf-util:and have installed the
nrf5sdk-tools
package:I noticed the
manifest.json
inside of the package ZIP file generated by Go includes the following content:whereas if I generate the package ZIP with the command that replaces, i.e.
nrfutil pkg generate --hw-version 52 --sd-req 0x0 --application application.bin --application-version 1 package.zip
then it generates much simplermanifest.json
:Note this does not include the
dfu_version
attribute thatnrfutil
complained about.That ZIP then works and I've managed to flash my device for the first time!
It's my first time working in this space, happy to help try to fix this with a PR, but wanted to open the issue first in case I'm advertently using incorrect tooling.
The code that generates the
manifest.json
looks to be heretinygo/builder/nrfutil.go
Lines 15 to 24 in 731532c
CC @deadprogram @aykevl who I think made the last change in this space?
The text was updated successfully, but these errors were encountered: