<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Use Segger JLink USB drive as means to configure my device through a configuration file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72186/use-segger-jlink-usb-drive-as-means-to-configure-my-device-through-a-configuration-file</link><description>Hi, 
 When I plug in my NRF51 Dongle it shows up in Windows explorer as additional drive (JLINK). Can I use this medium to configure my application? Can I read a file pun on this drive in my application running on my NRF51 Dongle? I would just put a simple</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Mar 2021 13:54:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72186/use-segger-jlink-usb-drive-as-means-to-configure-my-device-through-a-configuration-file" /><item><title>RE: Use Segger JLink USB drive as means to configure my device through a configuration file</title><link>https://devzone.nordicsemi.com/thread/297218?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 13:54:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18da1a94-47ea-45bd-bc0d-14af934373d7</guid><dc:creator>dragilla</dc:creator><description>&lt;p&gt;Thanks. I don&amp;#39;t know how the producct will look like. It depends which way I go. For now I&amp;#39;m trying to keep things simple. It looks I&amp;#39;m going to go with UART for now. I will write an APP for Windows that will connect to my device through UART.&lt;/p&gt;
&lt;p&gt;The next step, I think, will be to use 310 softdevice and write an Android app that would use Bluetooth to connect to my device. But I&amp;#39;m not good enough to do it now, and don&amp;#39;t have enough time to spare :)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Segger JLink USB drive as means to configure my device through a configuration file</title><link>https://devzone.nordicsemi.com/thread/297188?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 13:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8aecf88-d710-4805-94b9-7ba51eac34c0</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What will your device be made of in the end? the nRF51 dongle has an onboard debugger, but I assume you will not have that in your end product? If so, there is no USB. If you need USB, then you should look at for instance the nRF52840. If you want to do this configuration ni production with a debugger attached (same as you have on the nRF51 dongle), then there are a few options: Use UART to transfer data, program a hex that contains your configuration. Finding a way to access the data on the Segger interface IC may be possible but I am not sure, and I have no idea how. If you really want to go down that path I suggest you contact Segger directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Segger JLink USB drive as means to configure my device through a configuration file</title><link>https://devzone.nordicsemi.com/thread/297097?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 09:51:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff683ecb-5522-48ab-a119-6d533cd08abb</guid><dc:creator>awneil</dc:creator><description>[quote userid="6103" url="~/f/nordic-q-a/72186/use-segger-jlink-usb-drive-as-means-to-configure-my-device-through-a-configuration-file/297017#297017"] I was referring to the link that you provided (about the JLINK storage)[/quote]
&lt;p&gt;This one:&amp;nbsp;&lt;a href="https://os.mbed.com/handbook/How-mbed-works#how-the-localfilesystem-works"&gt;https://os.mbed.com/handbook/How-mbed-works#how-the-localfilesystem-works&lt;/a&gt;&amp;nbsp;?&lt;/p&gt;
&lt;p&gt;As that&amp;#39;s defined by mbed (ie, ARM) it should be independent of the microcontroller used.&lt;/p&gt;
&lt;p&gt;Segger should be able to confirm if they have (fully) implemented it:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://forum.segger.com/index.php/Board/3-J-Link-Flasher-related/"&gt;https://forum.segger.com/index.php/Board/3-J-Link-Flasher-related/&lt;/a&gt;&lt;/p&gt;
[quote userid="6103" url="~/f/nordic-q-a/72186/use-segger-jlink-usb-drive-as-means-to-configure-my-device-through-a-configuration-file/297017#297017"]About RTT and UART - both would require writing a native app[/quote]
&lt;p&gt;Indeed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Segger JLink USB drive as means to configure my device through a configuration file</title><link>https://devzone.nordicsemi.com/thread/297017?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 20:26:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d96eb6df-051e-436b-a84d-c957232fd733</guid><dc:creator>dragilla</dc:creator><description>&lt;p&gt;In my previous post I was referring to the link that you provided (about the JLINK storage).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;About RTT and UART - both would require writing a native app, because regular users don&amp;#39;t what a terminal is. This might be the was it ends, but I&amp;#39;m still hoping to access the storage :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Segger JLink USB drive as means to configure my device through a configuration file</title><link>https://devzone.nordicsemi.com/thread/297016?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 20:24:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f2dd4e0-9b07-4703-a800-4c0c70c32f2c</guid><dc:creator>dragilla</dc:creator><description>&lt;p&gt;Can anyone from Nordic / Segger confirm this is possible and tell me how to do it? :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Segger JLink USB drive as means to configure my device through a configuration file</title><link>https://devzone.nordicsemi.com/thread/296962?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 16:19:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3107543-26fc-406e-a930-fa8b877cd90c</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;There&amp;#39;s also RTT - that can do Host-to-Target as well as Target-to-Host&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Segger JLink USB drive as means to configure my device through a configuration file</title><link>https://devzone.nordicsemi.com/thread/296957?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 16:03:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7417550-904b-40f2-99b7-602d14e83c68</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;In fact, it looks like you might actually be able to get to the USB MSC storage of the J-Link:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://os.mbed.com/handbook/How-mbed-works#how-the-localfilesystem-works"&gt;https://os.mbed.com/handbook/How-mbed-works#how-the-localfilesystem-works&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;(assuming Segger have implemented this?)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Segger JLink USB drive as means to configure my device through a configuration file</title><link>https://devzone.nordicsemi.com/thread/296952?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 15:58:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd702351-632b-4f29-b10d-5473f559047f</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;If you&amp;#39;ve got UART over USB, I&amp;#39;d have thought that&amp;#39;d be the simplest thing to use?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Segger JLink USB drive as means to configure my device through a configuration file</title><link>https://devzone.nordicsemi.com/thread/296945?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 15:48:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6de4fa84-4d27-444d-b63d-5df82361bad3</guid><dc:creator>dragilla</dc:creator><description>&lt;p&gt;Yes, I get UART over USB. I will try and see what I can find in the Jlink API. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Segger JLink USB drive as means to configure my device through a configuration file</title><link>https://devzone.nordicsemi.com/thread/296937?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 15:35:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cb860f5-3a29-43af-b5a3-477768116022</guid><dc:creator>awneil</dc:creator><description>[quote userid="6103" url="~/f/nordic-q-a/72186/use-segger-jlink-usb-drive-as-means-to-configure-my-device-through-a-configuration-file/296932#296932"]&amp;quot;&lt;span&gt;have that write the config info into Flash&amp;quot; - How? &lt;/span&gt;[/quote]
&lt;p&gt;Not sure if the J-Link allows just a partial update, or if it will always do a full re-program&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;EDIT&lt;/p&gt;
[quote userid="6103" url="~/f/nordic-q-a/72186/use-segger-jlink-usb-drive-as-means-to-configure-my-device-through-a-configuration-file/296932#296932"]As I use the dongle[/quote]
&lt;p&gt;I forget - does the nRF51 dongle give you a UART-over-USB ?&lt;/p&gt;
&lt;p&gt;Another idea:&lt;/p&gt;
&lt;p&gt;AIUI, the J-Link does have an extensive API - maybe you could look into that?&lt;br /&gt;(you&amp;#39;d have to study the J-Link docs and/or contact Segger about that)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Segger JLink USB drive as means to configure my device through a configuration file</title><link>https://devzone.nordicsemi.com/thread/296932?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 15:26:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:951f4093-deac-40d1-885e-766220981bcf</guid><dc:creator>dragilla</dc:creator><description>&lt;p&gt;Yes, sorry. The device is independent. You just plug it in to the power socket in the wall and it does its job. Its job is communicating via ANT+ and controlling a fan connected to it. So there really is no user interaction here.&lt;/p&gt;
&lt;p&gt;The problem is that I need a user to somehow pass some initial information to it. Basically it&amp;#39;s 3 numbers (INTs).&lt;/p&gt;
&lt;p&gt;As I use the dongle, USB was my first idea - let user plug it into their computer and open a CFG file.&lt;/p&gt;
&lt;p&gt;I have UART working (one way so far, as debug)&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;span&gt;have that write the config info into Flash&amp;quot; - How? What is the scenario here from the user perspective?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Segger JLink USB drive as means to configure my device through a configuration file</title><link>https://devzone.nordicsemi.com/thread/296925?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 15:06:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0cbbe83-9f42-4519-9b3a-6024a7691e4a</guid><dc:creator>awneil</dc:creator><description>[quote userid="6103" url="~/f/nordic-q-a/72186/use-segger-jlink-usb-drive-as-means-to-configure-my-device-through-a-configuration-file/296914#296914"]most straightforward for a user of my device[/quote]
&lt;p&gt;Knowing nothing about your device or your users, that&amp;#39;s pretty much impossible to say&lt;/p&gt;
[quote userid="6103" url="~/f/nordic-q-a/72186/use-segger-jlink-usb-drive-as-means-to-configure-my-device-through-a-configuration-file/296914#296914"]A mobile app communicating via Bluetooth would be great, but that would be too much of an investment for me[/quote]
&lt;p&gt;So how do users normally communicate with your device? Can&amp;#39;t you use that path? What interfaces do you have available?&lt;/p&gt;
&lt;p&gt;UART ?&lt;/p&gt;
&lt;p&gt;NFC?&lt;/p&gt;
&lt;p&gt;If you were happy to use the J-Link, have that write the config info into Flash?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Segger JLink USB drive as means to configure my device through a configuration file</title><link>https://devzone.nordicsemi.com/thread/296914?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 14:49:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f30677fb-1bd2-4e3b-afed-0153847bc3e3</guid><dc:creator>dragilla</dc:creator><description>&lt;p&gt;So what would be the easiest way to pass configuration to my app? By easiest I mean most straightforward for a user of my device but also not too complicated to implement.&lt;/p&gt;
&lt;p&gt;A mobile app communicating via Bluetooth would be great, but that would be too much of an investment for me :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Segger JLink USB drive as means to configure my device through a configuration file</title><link>https://devzone.nordicsemi.com/thread/296883?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 14:15:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de4266a3-c9ae-4b48-b58f-b34a96018c5a</guid><dc:creator>awneil</dc:creator><description>[quote userid="6103" url="~/f/nordic-q-a/72186/use-segger-jlink-usb-drive-as-means-to-configure-my-device-through-a-configuration-file"]Can I use this medium to configure my application? [/quote]
&lt;p&gt;No.&lt;/p&gt;
&lt;p&gt;The target microcontroller has no access to that storage - it is purely used by the J-Link to receive programming images&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>