-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
Add mbed disk programmer option #107
Comments
I've been using the Segger upload tools instead of the current method and I find it's more reliable. All you need is the Nordic tool kit (free) and a batch file on Windows. There's no code to maintain other than the batch file. There's also the benefit of supporting normal, non-integrated Segger debug probes. |
@dlabun could this approach work for Mac and Linux too? @jacobrosenthal what do you think of this? I think the one advantage of the mbed approach is it would also work with CMSIS DAP programmers too. |
Yes it would as Nordic has the tool kit for Mac and Linux as well.... They call it the Command Line Tools on the link below. http://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF52-DK#Downloads |
As a side note, Nordic has updated the OB-JLink firmware to rev 160914. |
Id say go with the segger stuff. The mbed disk is pretty pervasive, but
theres no feedback except the fail file and we dont want to be digging
around in there for success/fail messages
That said, license issues? Id hate to add a fourth component to download
its already pretty arduous. I guess it could be bundled with the softdevice
download?
…On Wed, Mar 1, 2017 at 6:36 PM, dlabun ***@***.***> wrote:
Yes it would as Nordic has the tool kit for Mac and Linux as well.... They
call it the Command Line Tools on the link below.
http://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/
nRF52-DK#Downloads
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#107 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAb0dKIVI7OovGuA-BGXsIE7HHW97-oQks5rhh03gaJpZM4MQbJk>
.
|
As far as I can tell there shouldn't be licensing issues as the tool kit is freely available on the Nordic site, it's being used strictly on Nordic chips as intended and we wouldn't be modifying it. Adding a fourth component is a good point... Is there a way to make it an optional part of the install? (If you want it, go grab it?) |
Wait, what sandeep said.
The segger stuff will only work with jlink devices, and the mbed stuff is
going to be cmsisdap based..
…On Wed, Mar 1, 2017 at 6:44 PM, dlabun ***@***.***> wrote:
As far as I can tell there shouldn't be licensing issues as the tool kit
is freely available on the Nordic site, it's being used strictly on Nordic
chips as intended and we wouldn't be modifying it.
Adding a fourth component is a good point... Is there a way to make it an
optional part of the install? (If you want it, go grab it?)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#107 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAb0dEjqxubL9L8z4mp-6LZw8r6nSJsTks5rhh79gaJpZM4MQbJk>
.
|
Hmm... You almost need 3 different upload methods to cover all of the tools out there. May you could do 3 different editions of the core? For example v0.3-OpenOCD, -Segger or -mbed... Only difference being the flashing tool that installed. |
I dont love that. If theres no licensing then just bundle the smallest
subset and make it a larger download.
…On Wed, Mar 1, 2017 at 6:51 PM, dlabun ***@***.***> wrote:
Hmm... You almost need 3 different upload methods to cover all of the
tools out there. May you could do 3 different editions of the core? For
example v0.3-OpenOCD, -Segger or -mbed... Only difference being the
flashing tool that installed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#107 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAb0dALNf2fys10-8xm214DI6kVJVnrIks5rhiCmgaJpZM4MQbJk>
.
|
Well the Linux package was 770kb to download, Win32 installer was 24mb... I don't think that will be too bad |
I wonder if this is just a virtual serial port driver, or if it does
anything with cmsisdap. Not sure we tried it this weekend.
https://developer.mbed.org/handbook/Windows-serial-configuration#1-download-the-mbed-windows-serial-port
…On Wed, Mar 1, 2017 at 6:56 PM, dlabun ***@***.***> wrote:
Well the Linux package was 770kb to download, Win32 installer was 24mb...
I don't think that will be too bad
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#107 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAb0dJOZkUT78R_mqLaq8xuvvrLtLNDsks5rhiHrgaJpZM4MQbJk>
.
|
The DAP part is based on USB HID, not sure if you need a driver for it. Should I rename this issue to something more like "Improve Windows setup"? |
Ill get a windows vm and see what the hell it shows up as
…On Wed, Mar 1, 2017 at 7:17 PM, Sandeep Mistry ***@***.***> wrote:
The DAP part is based on USB HID, not sure if you need a driver for it.
Should I rename this issue to something more like "Improve Windows setup"?
|
So I just this very bolded warning on the mbed website regarding the nrf51 and 52 DKs... Could be rather inconvenient Please note that there is a behaviour change between this firmware and the J-Link firmware - with the mbed firmware you must press the 'BOOT/RESET' button the board to run your code once it has been downloaded * |
So I figured out drivers mostly. I think we could use the mbed as an option and if it works for most people so be it. tested in windows 8 vm For a tinyble mbed device: For my nrf51 dongle (segger jlink), after windows takes FOREVER to install its driver: |
Also I think maybe better roll back instructions are from pbatard/libwdi#8 |
@dlabun at least for tinyble and nrf51 dongle theres no manual reset needed shrug |
For sure, there's a similar PR for A nice gif would be sweet as well. @dlabun does your JLINK also have a USB MSD disk? The one in my nRF52DK does, not sure if this means I'm using the mbed f/w. |
@sandeepmistry Yes, there's a USB MSD with the jlink firmware. |
Ok, then I think we can just copy of the hex file mbed style with the jlink firmware too. |
During #HackIllinois2017 @jacobrosenthal observed many issues with Windows and Zadig.
Need to explore adding a option to upload using the mbed disk using a batch file (windows) and shell script (Linux/Mac).
Rough set of steps needed:
The text was updated successfully, but these errors were encountered: