<?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>Getting started with nrf51822 modules and st-link.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28846/getting-started-with-nrf51822-modules-and-st-link</link><description>Hello. 
 I&amp;#39;m tying to learn nrf51822. I had ordered some modules from ebay and nrf52-dk from local distributor . A week ago I had receive some modules. But local distributor says that nrf52-dk is late and won&amp;#39;t delivered before middle of January. So</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Dec 2017 16:07:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28846/getting-started-with-nrf51822-modules-and-st-link" /><item><title>RE: Getting started with nrf51822 modules and st-link.</title><link>https://devzone.nordicsemi.com/thread/114207?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2017 16:07:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:708c0586-370b-4913-b2a3-f4aba0d82722</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;(2/2)&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;... (I hate some auto-editing functions of this forum engine;)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;(continue) ...which isn&amp;#39;t your case as you are waiting for your Dev Kit. So unless your lovely Chinese vendor delivers some supposedly working examples in binary form (like HEX files) you seems to be out of luck on this point. Sorry.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;ST-Link should be able to flash any ARM Cortex-M chip but I do agree that theory is one thing and torture to make it work another. If you are in Central Europe I can borrow you some of mine, otherwise I hope your DK board(s) will arrive soon.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with nrf51822 modules and st-link.</title><link>https://devzone.nordicsemi.com/thread/114206?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2017 16:03:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28b4dcd9-8d3e-451c-868d-ebc53f6dc2ad</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;(1/2):&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Sorry I misunderstood. If you ask about this specific module I have nothing to add.&lt;/li&gt;
&lt;li&gt;If you dump it then you compare the memory areas with all Soft Device versions in question. It must match 100% otherwise its not that particular SD version. Easy and clear as black and white.&lt;/li&gt;
&lt;li&gt;Solved.&lt;/li&gt;
&lt;li&gt;Solved.&lt;/li&gt;
&lt;li&gt;You asked about SD only and the answer is no, you cannot verify Soft Device functionally because it does nothing! Yes, you should flash it with some application and then you can verify whatever application allows you: LED blinking, buzzer beeping, UART printing some strings, radio shining to the universe... the problem is that all ready-made examples are delivered only for Nordic Dev Kits (which is logical, they cannot cover all obscure Chinese modules), so the proper sequence would be a) develop something with PIN and LFCLK settings on nRF5x DK and b) try it on target.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with nrf51822 modules and st-link.</title><link>https://devzone.nordicsemi.com/thread/114205?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2017 15:56:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55594b80-2630-481d-a623-fb2aabecadcc</guid><dc:creator>suricat</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;In my question I mean concrete module (e77-2g4m04s by cdebyte.com). There was some doubts about modules from China and some chance to receive a fake. But I was took off rf shield from module and looks like all  is ok inside. There is NRF51822 QFAAH1 inside.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Yes, a know about dump. But I mean, is there exist something way to get know something about contained firmware. E.g. is there places softdevice or not. And what is version of softdevce there if it is.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Thanks. This explanation is very usfull for my undestanding of this case.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Got it. Thanks.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Yes. It is possible to verify written code right after flashing. But my question was about the way to check workability of written firmware. E.g. through UART/SWD/smth else debug interface thats would provide command line interface with softdevice or something else. It seems that this is not so.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;As I was wrote above, my nRF52-DK is late. And my st-link isn&amp;#39;t allow fully-featured work with nordic chips. So, seems to simples way is wait for original development kit and continue learning after receiving it.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Thanks for answers. Although the problem did not dare, I clarified some theoretical aspects.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with nrf51822 modules and st-link.</title><link>https://devzone.nordicsemi.com/thread/114204?ContentTypeID=1</link><pubDate>Thu, 28 Dec 2017 21:29:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8bb952d-0b8b-4bb8-9cc7-fd777abb53f7</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Then let&amp;#39;s take it one by one:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;[1].Have someone know something about it?&lt;/em&gt; - yes, as many ST-Link and nRF5x posts as many you find through search function on this forum.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;[2]. Is it possible to figure out what is contains by default into ROM of that&amp;#39;s module?&lt;/em&gt; - yes, as lon as flash (NVM) isn&amp;#39;t read-back protected you can &amp;quot;dump&amp;quot; it (or &amp;quot;read&amp;quot; if you want) by any SWD programmer which has that feature (ST-Link should be one of them).&lt;/li&gt;
&lt;li&gt;&lt;em&gt;[3]. Into what ROM address a must flash softdevice (for example s130).&lt;/em&gt; - as you can read in all documentation and tutorials flash (NVM) of all nRF5x chips strts at address 0x00000000, there you need to flash the soft device. But because Soft Device comes in HEX format which already contains addressing you typically never care about this. Then depending on Soft Device type and version you need to link your application FW on right address. Again it&amp;#39;s the best to generate HEX file which takes care about addresses but if you insist on pure BIN output then you need to look to particular Soft Device release notes to get the right address.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;[4]. Is it bootloader (or something else) must be placed before softdevice?&lt;/em&gt; - no, bootloader isn&amp;#39;t necessary as all ARM Cortex-M chips are typically programmable by SWD/JTAG interface. You can develop your own bootloader (e.g. to upgrade stack and application code later in the field over radio or wired interface such as UART/USB/etc. without SWD programmer such as J-Link or ST-Link) or adopt some of Nordic bootloader examples. However that is typically loaded to higher memory address (ten study some of these examples and blog posts).&lt;/li&gt;
&lt;li&gt;&lt;em&gt;[5]. Is it possible to get know that softdevice had written (flashed) ok?&lt;/em&gt; - every SWD programmer (including ST-Link) can verify written code right after flashing so you should use that way. Soft Device contains just radio stack implementation and other auxiliary features but without application code running on top it does absolutely nothing.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;[6]. I&amp;#39;ve got message &amp;quot;Programming Failed! Error: Flash Download failed - &amp;quot;Cortex-M0&amp;quot;&amp;quot;&lt;/em&gt; - there are several things which might be done by bloody Keil on the background. You will need to try the whole flashing procedure (preferably of some HEX binaries delivered with nRF5 SDK by Nordic which are known to be 100% working) by some utility which allows debug logging (ST provides flashing SW of the same name as ST-Link if I&amp;#39;m correct, but you can face issues with chip identification and memory layout, also OpenOCD should work with ST-Link and nRF5x chips).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Good luck&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with nrf51822 modules and st-link.</title><link>https://devzone.nordicsemi.com/thread/114203?ContentTypeID=1</link><pubDate>Thu, 28 Dec 2017 20:59:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a65f5bc1-0830-4f1a-bcaf-f311074f9a02</guid><dc:creator>suricat</dc:creator><description>&lt;p&gt;Sorry, but you don&amp;#39;t answer neither of my questions.&lt;/p&gt;
&lt;p&gt;Of course, I&amp;#39;ve already seen that&amp;#39;s post about using st-link. And I was following it when I&amp;#39;ve tried flash my modules. But I faced the concrete issues and ask about them in this post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with nrf51822 modules and st-link.</title><link>https://devzone.nordicsemi.com/thread/114201?ContentTypeID=1</link><pubDate>Thu, 28 Dec 2017 17:27:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac7950f1-9bb0-435c-9769-b6b45daee893</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;(yes, as per mon&amp;#39;s answer: every basic question like this one was already asked on this forum so search box is your friend!)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with nrf51822 modules and st-link.</title><link>https://devzone.nordicsemi.com/thread/114202?ContentTypeID=1</link><pubDate>Thu, 28 Dec 2017 16:01:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:915e6fc2-c19c-4178-80d6-ca29169d221c</guid><dc:creator>mon2</dc:creator><description>&lt;p&gt;For your nRF51 series:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/blogs/485/programming-nrf51-with-st-link-uvision/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Sorry - for nRF52:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/129536/flashing-nrf52832-chip-with-st-link-v2/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;should be suitable for your mapping to the Nordic device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>