<?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>Is it possible to use MK20 to program Raytac&amp;#39;s MDBT40</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11507/is-it-possible-to-use-mk20-to-program-raytac-s-mdbt40</link><description>Hello!
For beginning with nRF51 I chose BLE Nano set of boards (BLE Nano + MK20 USB donbgle) and it was of great help to easily begin with BLE.
So far, we came to the need of custom design with options to use Raytac&amp;#39;s modules or print own PCB. Either</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Jul 2016 18:25:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11507/is-it-possible-to-use-mk20-to-program-raytac-s-mdbt40" /><item><title>RE: Is it possible to use MK20 to program Raytac's MDBT40</title><link>https://devzone.nordicsemi.com/thread/43497?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 18:25:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:716c8668-6c03-4507-bea2-7a52105eb0f8</guid><dc:creator>ampfp</dc:creator><description>&lt;p&gt;I could try that...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use MK20 to program Raytac's MDBT40</title><link>https://devzone.nordicsemi.com/thread/43496?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 12:47:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86591dc1-4bcd-4752-aab2-ef6266065755</guid><dc:creator>Stanislav Silnitskiy</dc:creator><description>&lt;p&gt;I doubt it is preloaded with anything...  Although, if you want to be sure I suggest to ask Raytac directly. Last time, when I commented their announcement in facebook, they came back very shortly, so just ask them )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use MK20 to program Raytac's MDBT40</title><link>https://devzone.nordicsemi.com/thread/43495?ContentTypeID=1</link><pubDate>Mon, 04 Jul 2016 20:57:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbcb788b-6302-44d7-919c-e01b4b2e247f</guid><dc:creator>ampfp</dc:creator><description>&lt;p&gt;Thanks, Stan, I&amp;#39;m getting the module mounted on my custom pcb, so I&amp;#39;ll hope to get it working with OpenOCD.
Does the module come preloaded with an OTA capable softdevice? I wonder if that would work too as an alternative&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use MK20 to program Raytac's MDBT40</title><link>https://devzone.nordicsemi.com/thread/43493?ContentTypeID=1</link><pubDate>Mon, 04 Jul 2016 08:20:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40cfcf9a-8b42-495d-a91b-76b274c56b9e</guid><dc:creator>Stanislav Silnitskiy</dc:creator><description>&lt;p&gt;HI Amp!
MK20 + OpenOCD will cover your needs. And yes, It can program MDBT40 - I did it. But for testing your solution, I would recommend to use some module with bigger form-factor... its not convenient to solder this tiny thing. I&amp;#39;d suggested something like this: &lt;a href="http://de.aliexpress.com/item/5-pcs-lot-free-shipping-NRF51822-2-4GHz-wireless-transceiver-module/32571947971.html?spm=2114.13010608.0.52.qcZmKu"&gt;de.aliexpress.com/.../32571947971.html&lt;/a&gt;
this one has extra RTC crystal (32kHz) on board.
There is also even better solution from programming/debugging point of vew: &lt;a href="http://seeedstudio.com/item_detail.html?p_id=2268"&gt;seeedstudio.com/item_detail.html&lt;/a&gt;
It also can be programmed by OpenOCD, but comparing to MK20, it exposes accessible UART port into PC, which can be used for printing messages from nrf51. I found it very useful, as soon as no extra cables for UART is required in this case.
Have a nice day,
Hope I&amp;#39;ve helped
Stan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use MK20 to program Raytac's MDBT40</title><link>https://devzone.nordicsemi.com/thread/43494?ContentTypeID=1</link><pubDate>Mon, 04 Jul 2016 03:45:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb4fa2bd-d488-4a8d-aa25-6062b972b79d</guid><dc:creator>ampfp</dc:creator><description>&lt;p&gt;Hi Stanilslav,
Props for figuring that out! I also want to do what you did... I am using the Arduino IDE and the BLE Nano/MK 20 so far. I plan to use the MDBT40 going forward on my custom board. What else do I need to get it working? Just a piece of software (OpenOCD) ? Does that also talk to the MDBT40 through the MK20? Do I need any additional hardware?
Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use MK20 to program Raytac's MDBT40</title><link>https://devzone.nordicsemi.com/thread/43492?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2016 03:03:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02dedfa4-60cb-4324-b7eb-163fb92a2dc5</guid><dc:creator>monpetit</dc:creator><description>&lt;p&gt;That&amp;#39;s great! :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use MK20 to program Raytac's MDBT40</title><link>https://devzone.nordicsemi.com/thread/43491?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 15:05:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:768f6a4c-8de0-4d3c-9649-7a29e724ab5d</guid><dc:creator>Stanislav Silnitskiy</dc:creator><description>&lt;p&gt;Eventually, I could manage MDBT40 work directly with MK20... the issues were correct XTAL settings (had to switch to NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION) and mass erase of chip before first flashing. I could do it in OpenOCD:&lt;/p&gt;
&lt;p&gt;openocd&amp;#39;s config:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;source [find interface/cmsis-dap.cfg]
set WORKAREASIZE 0
source [find target/nrf51.cfg]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;first programming (start openocd with above config and telnet to localhost:4444):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;reset halt
nrf51 mass_erase
program /path/to/softdevice.hex verify
program /path/to/app.hex verify reset
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After this I could flash MDBT40 module as regular BLE Nano device, d-n-d complete hex to the MBED disk&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use MK20 to program Raytac's MDBT40</title><link>https://devzone.nordicsemi.com/thread/43488?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 08:52:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94257466-e533-4e42-a4cc-de0a12e79679</guid><dc:creator>Stanislav Silnitskiy</dc:creator><description>&lt;p&gt;Hi!
Its not a custom board, its just a Raytac&amp;#39;s MDBT40 module with soldered components (resistor, crystal, etc) to appropriate pins. The difference is power supply - I use internal LDO, that is direct +3.3 V and BLE Nano utilizes DC/DC to power it up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use MK20 to program Raytac's MDBT40</title><link>https://devzone.nordicsemi.com/thread/43487?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 08:48:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:933d45be-1380-4de6-8101-f716c2e49ebd</guid><dc:creator>monpetit</dc:creator><description>&lt;p&gt;Umm... Then do you think it would be suspicious of your custom board circuit or its compnents? Did you check the difference of schematics between &lt;a href="https://github.com/RedBearLab/BLENano/blob/master/PCB/BLENano_1.0_20141010.pdf"&gt;BLE Nano&lt;/a&gt; and yours?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use MK20 to program Raytac's MDBT40</title><link>https://devzone.nordicsemi.com/thread/43489?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 08:14:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9eb8d1b0-0da3-49df-bcfc-ec96b0e4f71e</guid><dc:creator>Stanislav Silnitskiy</dc:creator><description>&lt;p&gt;yes, no prob with Nano.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use MK20 to program Raytac's MDBT40</title><link>https://devzone.nordicsemi.com/thread/43490?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 05:23:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8faf277b-5b30-4e98-88d1-c7292f18442a</guid><dc:creator>monpetit</dc:creator><description>&lt;p&gt;My SWD pins are +3.3V.
Can you program BLE Nano board with MK20?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use MK20 to program Raytac's MDBT40</title><link>https://devzone.nordicsemi.com/thread/43486?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2016 17:47:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62a94290-394f-474b-80cc-56b01f027071</guid><dc:creator>Stanislav Silnitskiy</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The error message said something like &amp;quot;Error writing sector 281&amp;quot;, as reported by dmesg (I use linux PC to program)&lt;/p&gt;
&lt;p&gt;I have this one (&lt;a href="https://www.embeddedartists.com/products/tools/tool_cr_redprobe.php)"&gt;www.embeddedartists.com/.../tool_cr_redprobe.php)&lt;/a&gt;, but I don&amp;#39;t know how correctly connect it to Raytac (I&amp;#39;m afraid to brick it). I used to program with LPCXpresso other chips (like LPC11xxx) and haven&amp;#39;t figured it out how to setup nRF5x environment for LPCXpresso so far.&lt;/p&gt;
&lt;p&gt;I tried both pull down  SWCLK with 10k resistor as well as connecting 32kHz crystal with two capacitors to due pins of Raytac&amp;#39;s MDBT40... no success at all. I also observed a +3.78 voltage in SWD pins , while I fed the module with +3.3 only. Is it normal?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use MK20 to program Raytac's MDBT40</title><link>https://devzone.nordicsemi.com/thread/43485?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2016 15:36:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df689a6a-a222-4fe1-9d2d-3babfa906928</guid><dc:creator>monpetit</dc:creator><description>&lt;p&gt;Hi Stanislav,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have Raytac&amp;#39;s MDBT40, but I have used MK20 with other custom boards like Seeed Tiny BLE and so on. It works well.
In principle only four pins need as you mentioned. What&amp;#39;s error message? Your own board can be programmed with J-Link or ULink 2?
Did you check circuit components like a external crystal or capacitors, resistors?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use MK20 to program Raytac's MDBT40</title><link>https://devzone.nordicsemi.com/thread/43484?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2016 12:52:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01cac458-bcc2-4726-8c52-442305ad3562</guid><dc:creator>Stanislav Silnitskiy</dc:creator><description>&lt;p&gt;Hi Monpetit!&lt;/p&gt;
&lt;p&gt;I tied to connect four pins (2x SWD, GND, +V3.3) of MK20 to MDBT40 but I couldn&amp;#39;t flash the firmware as I normally do with BLE Nano. Any suggestions on the correct pin connections?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use MK20 to program Raytac's MDBT40</title><link>https://devzone.nordicsemi.com/thread/43483?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2016 08:58:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cee55189-e25a-4c91-b227-52bbe211fee8</guid><dc:creator>monpetit</dc:creator><description>&lt;p&gt;Yes you can. MK20 can program any cortex-m device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use MK20 to program Raytac's MDBT40</title><link>https://devzone.nordicsemi.com/thread/43482?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2016 08:03:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1eb1d62e-2a10-490f-85dc-5817ca3ad94e</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can use the nRF series development kits as programmers for external boards, please see this &lt;a href="https://devzone.nordicsemi.com/blogs/803/programming-and-debugging-custom-nrf5x-devices/"&gt;blogpost&lt;/a&gt; which describes this and the use of the SWD interface. There are also other programmers that can be used, such as the various &lt;a href="https://www.segger.com/jlink-model-overview.html"&gt;J-Links by SEGGER&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>