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

Nrfjprog support #17

Closed

Conversation

@jeanmatthieud
Copy link

commented Nov 11, 2017

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 and others added some commits Aug 3, 2016

@ivankravets

This comment has been minimized.

Copy link
Member

commented Nov 16, 2017

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

@zerog2k

This comment has been minimized.

Copy link

commented Jan 20, 2018

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

This comment has been minimized.

Copy link
Member

commented Jan 20, 2018

@jeanmatthieud

This comment has been minimized.

Copy link
Author

commented Jan 20, 2018

@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

This comment has been minimized.

Copy link
Member

commented Jan 24, 2018

@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

This comment has been minimized.

Copy link

commented Jan 24, 2018

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
Projects
None yet
4 participants
You can’t perform that action at this time.