This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

PCA10059 programming problems.

Hi,

Just got four 52840 USB dongles, with the intent to evaluate the Nordic BT Mesh.  But I've been  unable to get even a simple Blinky example programmed on the dongle.  I've tried both Windows and Mac, I'm sure I'm doing something wrong, any pointers are appreciated.  I found this info the forum, but my errors are somewhat different:

https://devzone.nordicsemi.com/f/nordic-q-a/36844/nrf-connect-programming-pca10059-issue?ReplySortBy=Votes&ReplySortOrder=Descending

When using nRF Connect v2.4.0, I can see the device and connect to it.  But it will not let me write or erase the device, I get a box under the recover button that says "Only single writable region is supported", and both the "Write all to devkit" and "Recover" buttons are disabled.  See attached image

I also tried nrfutil on both Windows and Mac OS, and both report a similar problem while attempting to generate a zip file.   Tried with both python2 and python3:

nrfutil pkg generate --debug-mode --application ble_app_blinky_pca10059_s140.hex blinky_package.zip --hw-version 52 --sd-req 0xa9

produces the following:

$ nrfutil pkg generate --debug-mode --application ble_app_blinky_pca10059_s140.hex blinky_package.zip --hw-version 52 --sd-req 0xa9

|===============================================================|
|## ## ### ######## ## ## #### ## ## ###### |
|## ## ## ## ## ## ## ### ## ## ### ## ## ## |
|## ## ## ## ## ## ## #### ## ## #### ## ## |
|## ## ## ## ## ######## ## ## ## ## ## ## ## ## ####|
|## ## ## ######### ## ## ## #### ## ## #### ## ## |
|## ## ## ## ## ## ## ## ### ## ## ### ## ## |
| ### ### ## ## ## ## ## ## #### ## ## ###### |
|===============================================================|
|You are generating a package with the debug bit enabled in the |
|init packet. This is only compatible with a debug bootloader |
|and is not suitable for production. |
|===============================================================|


|===============================================================|
|## ## ### ######## ## ## #### ## ## ###### |
|## ## ## ## ## ## ## ### ## ## ### ## ## ## |
|## ## ## ## ## ## ## #### ## ## #### ## ## |
|## ## ## ## ## ######## ## ## ## ## ## ## ## ## ####|
|## ## ## ######### ## ## ## #### ## ## #### ## ## |
|## ## ## ## ## ## ## ## ### ## ## ### ## ## |
| ### ### ## ## ## ## ## ## #### ## ## ###### |
|===============================================================|
|You are not providing a signature key, which means the DFU |
|files will not be signed, and are vulnerable to tampering. |
|This is only compatible with a signature-less bootloader and is|
|not suitable for production environments. |
|===============================================================|

Traceback (most recent call last):
File "C:\Users\egross\AppData\Local\Programs\Python\Python36-32\Scripts\nrfutil-script.py", line 11, in <module>
load_entry_point('nrfutil==3.5.1', 'console_scripts', 'nrfutil')()
File "c:\users\egross\appdata\local\programs\python\python36-32\lib\site-packages\click\core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "c:\users\egross\appdata\local\programs\python\python36-32\lib\site-packages\click\core.py", line 697, in main
rv = self.invoke(ctx)
File "c:\users\egross\appdata\local\programs\python\python36-32\lib\site-packages\click\core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\egross\appdata\local\programs\python\python36-32\lib\site-packages\click\core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\egross\appdata\local\programs\python\python36-32\lib\site-packages\click\core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\egross\appdata\local\programs\python\python36-32\lib\site-packages\click\core.py", line 535, in invoke
return callback(*args, **kwargs)
File "c:\users\egross\appdata\local\programs\python\python36-32\lib\site-packages\nordicsemi\__main__.py", line 632, in generate
package.generate_package(zipfile_path)
File "c:\users\egross\appdata\local\programs\python\python36-32\lib\site-packages\nordicsemi\dfu\package.py", line 344, in generate_package
for key, firmware_data in self.firmwares_data.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'

Any ideas or pointers are appreciated.   The various commands and GUI don't quite match the documentation, so I'm hoping its just something simple that I'm missing.

Ed

Parents Reply Children
No Data
Related