Over the last few weeks the Nordic team has been working on getting support for programming our devices in Linux as well as adding support for using our Python programming module ‘Pynrfjprog’ with Python 3.
We are pleased to report that this support has been added and published!
We now support both Linux and Python 3!
The tools offering now consists of the following components which can be downloaded from our webpages:
Our Python development tool is in addition to being available for download on our webpages, uploaded to the Python Package Index server - PyPI. It can thus be downloaded and installed using the Python package installer ‘pip’ using the command [ $ pip install pynrfjprog ]
If you download the tool and experience any issue, please let us know so that it can be improved. Any questions can be posted here on ‘DevZone - Questions’ to make sure that they are handled properly.
Post a question to post bugs into the Questions site, but in this case it is not an error.
If you see line 18 in API.py I am importing int from builtins (coming from the future module). In Python 2 this int now includes int and long. In Python 3 this int only includes int.
You can make a test yourself to check.
Looks like this release broke some Python 2 support when it added 3 support. Specifically, the _is_u32 function only checks that the incoming value is an int, not a long. This is only appropriate for Python 3. In Python 2, 32-bit values with the high bit set become longs. Pynrfjprog 7.6.0 handled this correctly.
Is there a better place to report bugs with the library?
Thanks guys, I got blinky compilation and flashing work on Ubuntu 14.04.3 and nRF52 preDK
Great news, thanks.
Looking forward to have official cross-platforms tools ;)
Thanks Juha, has been added to known issues/limitations! This will probably be fixed in a future release.