<?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>Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27778/problems-with-programming-nrf51822-customized-board</link><description>Hi guys, me again. 
 I was very confused with my current process on developing with nrf chip now... so I would like to post my develop step and some problems I had so maybe you could give me some advises. I think I maybe stuck in my own circle. 
 I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 03 Dec 2017 23:44:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27778/problems-with-programming-nrf51822-customized-board" /><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109562?ContentTypeID=1</link><pubDate>Sun, 03 Dec 2017 23:44:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdf0d3a3-b5d7-4451-842c-f6779495854e</guid><dc:creator>cookieeeeee</dc:creator><description>&lt;p&gt;Just a follow up for this question. For now, I could successfully made the BLE broadcast from Taiyo Yuden board, and for now blink a LED on my PCB. Thanks for all the help !!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109573?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 23:08:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dc63b06-d1fb-4a92-a2c6-facbdde5569b</guid><dc:creator>cookieeeeee</dc:creator><description>&lt;p&gt;Thanks guys. Sure, I will try go through with that. Now I think the BMD board works ok, I will try to see if I could get the Taiyo Yuden board working also.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109572?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 23:04:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25d556f8-c455-4ccf-9001-69dc266ba2df</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;No need to just &amp;quot;stick&amp;quot; to yourself on BLE problem, just ask in this forum and the good folks will try to pitch in and help :)&lt;/p&gt;
&lt;p&gt;BTW for the RTT trace I have to define something like&lt;/p&gt;
&lt;p&gt;CFLAGS += -DNRF_LOG_USES_RTT=1&lt;/p&gt;
&lt;p&gt;in my makefile for my nRF52 work. I&amp;#39;m not sure if you have to do something similar for your nRF51 work. Better ask about this one, as a separate topic, in the forum.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109571?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 22:59:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc5da940-7611-4c37-be5c-2690bd95f4a6</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;I just scanned the datasheet of BMD200 and as far as external components are concerned, it is almost identical to BMD350 (16MHz vs 32 MHz crystal) so it&amp;#39;s a mystery why your own sample code worked in the DK but not in BMD200.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109570?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 22:52:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9a4342f-46df-47ec-aa0c-92bc9de4aa48</guid><dc:creator>cookieeeeee</dc:creator><description>&lt;p&gt;To AmbystomaLabs, I tried with the uart example code, I also works now... I could change the advertised name so that I&amp;#39;m sure the code complies on the board.&lt;/p&gt;
&lt;p&gt;I think I will move on to read more about the code itself.&lt;/p&gt;
&lt;p&gt;Also actually now the solution is very simple to me, loading two code to the board with nRFGo and it&amp;#39;s done. I think I got pretty nervous before using the Keil and stuck to myself on this problem, and wasted a lot of time repeating my mistakes again and again...&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109569?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 22:47:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fff1126e-045b-43cf-b44d-b6c057cd5370</guid><dc:creator>cookieeeeee</dc:creator><description>&lt;p&gt;Thanks Matt, yes I have go through the tutorial with the DK part and after that trying to do what I have did so far. Since now, I am clear how to program and what I did wrong with my software, I think I will keep reading more about the BLE code part.
Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109568?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 22:42:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:254fa8ea-c8c6-4ff2-abe3-aa48e00f2e15</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/tutorials/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109567?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 22:39:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69fc704f-7d0d-4fb9-bda0-1322f30f2ee8</guid><dc:creator>cookieeeeee</dc:creator><description>&lt;p&gt;Thanks for your help AmbystomaLabs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109566?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 22:38:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de5f2f9f-4240-4805-8996-2205b1af7d19</guid><dc:creator>cookieeeeee</dc:creator><description>&lt;p&gt;Thanks Matt, but your link fails..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109565?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 22:35:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d081e644-285b-4324-98b5-8adae597e7c3</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Have you gone through the tutorials here (&lt;a href="https://devzone.nordicsemi.com/tutorials/)?"&gt;devzone.nordicsemi.com/.../)&lt;/a&gt; I knew nothing about nRF52 a year ago and so I started with those tutorials and they really helped me a lot to learn the BLE basics (the Nordic style, of course!).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109564?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 22:34:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbf62887-b26f-473e-bfc0-8c051c391d8a</guid><dc:creator>cookieeeeee</dc:creator><description>&lt;p&gt;Except the Beacon example code, is there any other doc or tutorials you would recommend to read through?  I went through the nrf51822 tutorial pages already, but still pretty confused about how to drive my own design code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109560?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 22:29:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:777b302e-9484-4bb6-97bf-a0f2f150c612</guid><dc:creator>cookieeeeee</dc:creator><description>&lt;p&gt;Sure, I had some ttl cables, I will also try that!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109559?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 22:29:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cca50267-e66b-4077-9bb7-9786122c4c9a</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;And Cookieeeee, that is good that you would prefer coding using the registers.  I always find that easier too. You can do in one line what normally takes many lines if you use the drivers.&lt;/p&gt;
&lt;p&gt;Just remember that the softdevice has priority in the processor.  So the exact same processor resources you use in your app code are being used by the softdevice.  Because of this some register settings are considered protected and should not be written to directly.  The data sheet defines these.&lt;/p&gt;
&lt;p&gt;Similarly ISR&amp;#39;s from the SD have priority over your codes ISR&amp;#39;s.  Because of this don&amp;#39;t try to do tasks that require microsecond accuracy using ISR&amp;#39;s.  There are many hardware tools like timers/counters/PPI/GPIOTE to work around these issues.  You should familiarize yourself with them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109563?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 22:27:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f8892f8-f7a9-4ca9-8cfe-02ba1ab62c8c</guid><dc:creator>cookieeeeee</dc:creator><description>&lt;p&gt;I have load the code to the BMD200 board, and if your code name device using Nordic_UART, I could scan it from my phone. Also,at early time I tried to program the board with LED, it also work.&lt;/p&gt;
&lt;p&gt;Ok, for now I think I get out from a confuse region where I could not make my board works. Now, I need to understand how I could make the board to do the BLE.&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109558?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 22:23:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84ee3422-52ef-48f9-aac6-59f6110daab0</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Do get the  binaries from AmbystomaLabs as that should give you some indication as to whether the BMD200 is really working or not. And IF you have some spare cycles left after that, how about cough out a few dollars to get the usb to ttl serial cable (eg. &lt;a href="https://www.adafruit.com/product/954)"&gt;www.adafruit.com/.../954)&lt;/a&gt;, attach the tx, rx and gnd to the corresponding pins in BMD200, and insert the usb end into your pc (win 7 or 8, should work with 10), install the usb driver, and viola you get a virtual COM port on your pc through which you can observe your serial debug messages (say with putty).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109557?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 22:17:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a26545cd-75f3-46b9-b068-38a27b4e54f2</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;See below.  The beacon code is pretty simple and will accomplish your need of proving your board will broadcast. It is straight from SDK 12.2 except I edited the RTC settings.&lt;/p&gt;
&lt;p&gt;You will have a lot to learn about programming these devices.  It takes a lot of code to make bluetooth work. Beacon code is some of the simplest and the API commands for the softdevice are pretty straightforward.&lt;/p&gt;
&lt;p&gt;If you look in the Nordic documentation for S130 all of the API commands are explained in detail.  It is a good place to start understanding how the code works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109561?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 22:13:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b32be4c4-dfea-4d36-a0d3-4de54e5906f8</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Cookieeeee,
Just do an erase all in nRFGO then install the enclosed S130 and then using the application tab install the enclosed beacon.hex file.
Your dev board will then broadcast as a beacon.&lt;br /&gt;
Beacon.hex has been modded to use the internal RC RTC.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7875.s130_5F00_nrf51_5F00_2.0.1_5F00_softdevice.hex"&gt;s130_nrf51_2.0.1_softdevice.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/beacon.hex"&gt;beacon.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Let me know how it goes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109556?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 21:28:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b905a0cf-c899-4821-b43f-c5b0dd3bbfc3</guid><dc:creator>cookieeeeee</dc:creator><description>&lt;p&gt;Many thanks for your help! Yes, I had trouble looking for some basic example code which I could read through and understand like what initial functions should I put, and how to set up the variables. Like for Atmel chip I would read through the datasheet and find out those setting in registers. But for nrf series, I just tried my best to search some examples, but didn&amp;#39;t really find a one I could understand.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109555?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 21:26:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23380423-9f47-442c-a153-ecf7feda78ef</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;You don&amp;#39;t need to have the com port pinned out.  It seems like you just want it to broadcast for now.  I&amp;#39;ll send you a few different builds of code you can use.  Just give me a few minutes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109554?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 21:24:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1306692f-70d7-4a50-8af8-16b83944692b</guid><dc:creator>cookieeeeee</dc:creator><description>&lt;p&gt;Thanks AmbystomaLabs, thing is I only had a breakout board with the BLE chip, there is no uart interface with my PC. I was trying to run some example code from SDK and make sure my board works and base on that set up some GPIO functions and interrupt functions and data transmission through the BLE.
I just tried using the uart example with nRF Studio, the code works fine on the DK, but not on the BMD200 board.
Do you think my step was wrong? Should I first try some GPIO example code, like just toggle a pinevery second and then put the BLE in?
I had experience developing Atmel chips, and experience using the chip with RF or BLE. For the past, I would just connect for example the UART line from the BLE chip to the Atmel chip and by sending data from the Atmel to the BLE with UART, the data would be seen by the phone. But I don&amp;#39;t have experience programming the BLE chip itself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109553?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 21:17:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:028d0ae9-b6b4-4cf2-80aa-d8ae758f8cb0</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Cookieeee, don&amp;#39;t try to add RTT to your code that is way beyond your experience level.
I will send you a compiled uart example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109549?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 20:14:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e7b2daa-7606-46c3-95f4-a17bc0a286a1</guid><dc:creator>cookieeeeee</dc:creator><description>&lt;p&gt;Yes, for now I switch to first try play around with the Rigado chip. I used a Jlink connecting the SWD interface from the chip and use nRFGo to load the code.&lt;/p&gt;
&lt;p&gt;I think the connection is ok since I now use a brand new Rigado chip, and use the nRFGo to programm it. Upon opening the nrfgo, it says you must erase the chip before you can programming, then I just click the erase and the chip is successfully be erased, and with this I think the connections are good.&lt;/p&gt;
&lt;p&gt;For the RTT debug, I have tried with &lt;a href="https://devzone.nordicsemi.com/tutorials/6/"&gt;this link&lt;/a&gt;. Since the SDK I&amp;#39;m using is ver 12.2.0, I assume I just need to do the configuration in the wizard, which I did. Then I load the code, open the RTT terminal, but there is nothing print on it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109551?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 19:10:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7824f437-6b1d-4bd3-9d5c-1308a166c3e5</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Can you add segger_rtt tracing to your example code? Run the example code in the DK and check the trace in RTT viewer in your pc, then run the example code in the Rigado BMD200 and check the trace again in the RTT viewer. Also, can you double check the Segger JLink flasher connection to the Rigado BMD200? I assume you have a separate Segger JLink flasher and are not using the nRF51 DK to program the BMD200, right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109550?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 18:48:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce52bfd1-ca3a-4089-8c95-8ec6a60a7d15</guid><dc:creator>cookieeeeee</dc:creator><description>&lt;p&gt;Thanks for your kind reply.&lt;/p&gt;
&lt;p&gt;I will go through the nRFGo studio again to build my project.&lt;/p&gt;
&lt;p&gt;Thing is, my project need to have a BLE function to the phone so I could transfer some data in between, that&amp;#39;s why I was trying to load a uart or a beacon code to my own board so that I could make sure my boards works with BLE and base on that I could then add more function into it. Just like when first develop a chip using LED blink example to make sure the board works.&lt;/p&gt;
&lt;p&gt;I just tried use nRFGO to load the UART code with DK, it works fine, but if I load the code to my own board, nothing happens, I change nothing in the code.&lt;/p&gt;
&lt;p&gt;Do you think my way would work?&lt;/p&gt;
&lt;p&gt;I will try find more on how to use the nRFGO and solder some new boards and do again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Programming nRF51822 customized board</title><link>https://devzone.nordicsemi.com/thread/109548?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 17:51:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:437c0827-a1a3-492c-b8a5-477149003870</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;I should clarify the error is from the rom settings being wrong since nRFGo doesn&amp;#39;t care about the ram settings.  But likely both are wrong in your project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>