Skip to content

Nrfjprog support#17

Closed
jeanmatthieud wants to merge 19 commits into
platformio:developfrom
jeanmatthieud:nrfjprog-support
Closed

Nrfjprog support#17
jeanmatthieud wants to merge 19 commits into
platformio:developfrom
jeanmatthieud:nrfjprog-support

Conversation

@jeanmatthieud

Copy link
Copy Markdown

Adds the possibility to use the nrfjprog tool of Nordic Semi (nrf5x command line tools) by setting upload_protocol = nrfjprogin the platformio.ini file env configuration.

@ivankravets

ivankravets commented Nov 16, 2017

Copy link
Copy Markdown
Member

Where are located the binaries of this tool for all architectures/OS?

@zerog2k

zerog2k commented Jan 20, 2018

Copy link
Copy Markdown

I would like to see nrfjprog or something similar like https://github.com/NordicPlayground/nRF5-universal-prog, but afaik they all require jlink binaries, e.g. dll

@ivankravets

re: binaries, this is tricky, as you have the nrfjprog binaries from nordic plus the jlink software. Not sure of the redistribution issues here?
Is it a platformio requirement that every and all frameworks, toolchains, and tools, be redistributable? Is it ever acceptable that they have to be installed by user, and some minimum configuration (in path, or setting to point to it?) required to be done by user?

@ivankravets

Copy link
Copy Markdown
Member

@jeanmatthieud

jeanmatthieud commented Jan 20, 2018

Copy link
Copy Markdown
Author

@ivankravets I don't think that the custom uploader works with other platforms than Atmel AVR.

You can download the tools here:
nRF5x-Command-Line-Tools-Linux32
nRF5x-Command-Line-Tools-Linux64
nRF5x-Command-Line-Tools-OSX
nRF5x-Command-Line-Tools-Win32

@ivankravets

Copy link
Copy Markdown
Member

@jeanmatthieud THANK YOU SO MUCH for this PR and links to binaries.

Please re-test with the latest version of dev/platform

[env:..]
platform = https://github.com/platformio/platform-nordicnrf51.git
upload_protocol = nrfjprog

@zerog2k

zerog2k commented Jan 24, 2018

Copy link
Copy Markdown

btw, i found a way to do this via extra_scripts... an example (on an experimental 8051 platform, using stcgal):
https://github.com/zerog2k/stc_diyclock/blob/platformio/post_extra_script.py#L22-L36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants