<?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>SDK v12.3 code not successfully flashing onto custom NRF51822 board with Segger Embedded Studio&amp;#39; Build and Run command</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57879/sdk-v12-3-code-not-successfully-flashing-onto-custom-nrf51822-board-with-segger-embedded-studio-build-and-run-command</link><description>Hi we are trying to program code using the SDK v12.3 library onto a custom NRF51822 board using SES. The custom code contains B luetooth routines, GPIO routines, and TWI routines. 
 We are unable to get any of the custom code running using SES&amp;#39; Build</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Feb 2020 02:26:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57879/sdk-v12-3-code-not-successfully-flashing-onto-custom-nrf51822-board-with-segger-embedded-studio-build-and-run-command" /><item><title>RE: SDK v12.3 code not successfully flashing onto custom NRF51822 board with Segger Embedded Studio' Build and Run command</title><link>https://devzone.nordicsemi.com/thread/235036?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 02:26:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afd0c1cc-97b1-4858-b3ab-68554ad88cb5</guid><dc:creator>thoric_fish</dc:creator><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;
&lt;p&gt;We have already check that. If you look at this image that we attached in the original post, it shows that NRFConnect can see the custom NRF51822 board in our COM11 port. So yes the target board is detected. We also detected the crystal to have signal, and we also have tried running custom code that does not use any RF/Bluetooth routines. The custom code still does not run on the custom board when we use &amp;#39;build and run&amp;#39; in SES to try to flash the custom board.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-730ab5a4d0274c4b84920db73d619933/image-_2800_3_2900_.png"&gt;https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-730ab5a4d0274c4b84920db73d619933/image-_2800_3_2900_.png&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK v12.3 code not successfully flashing onto custom NRF51822 board with Segger Embedded Studio' Build and Run command</title><link>https://devzone.nordicsemi.com/thread/235029?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 00:49:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54b35f82-9df3-4cfe-8280-7cab74557766</guid><dc:creator>Jimmy Wong</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then, I prefer you to check on the hardware first.&amp;nbsp; For example, you can use the nrfjprog to check whether the target board can be detected or not.&lt;/p&gt;
&lt;p&gt;Also, check on the external 32MHz crystal / 32KHz crystal (if have) to have signal during power up or not.&lt;/p&gt;
&lt;p&gt;It seems that it is not related to the SES.&lt;/p&gt;
&lt;p&gt;You&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf52-designs"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf52-designs&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK v12.3 code not successfully flashing onto custom NRF51822 board with Segger Embedded Studio' Build and Run command</title><link>https://devzone.nordicsemi.com/thread/235011?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 18:45:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c65a0d22-b627-449e-af9c-6fda067bbd62</guid><dc:creator>thoric_fish</dc:creator><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;
&lt;p&gt;I am not sure if there is a misunderstanding. We do not run into any problem with the code execution when using debug mode. When we use &amp;#39;build and run&amp;#39; mode to flash the custom NRF51822 board, there is no code execution happening on the board anymore. As in, the custom board is not getting successfully programmed. Or the custom board cannot run any code flashed using &amp;#39;build and run&amp;#39; mode.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK v12.3 code not successfully flashing onto custom NRF51822 board with Segger Embedded Studio' Build and Run command</title><link>https://devzone.nordicsemi.com/thread/234781?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 07:16:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31a0a2d6-a7be-4b63-8351-6ad08cf9c344</guid><dc:creator>Jimmy Wong</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think you need to enable the debug mode and step by step for figure out the problem.&lt;/p&gt;
&lt;p&gt;For example, you can check on the Program counter (PC) when the problem is stuck (without ble advertising).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;if you use the same source code and run with gcc compiler, do you see the same problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK v12.3 code not successfully flashing onto custom NRF51822 board with Segger Embedded Studio' Build and Run command</title><link>https://devzone.nordicsemi.com/thread/234780?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 07:13:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d84848d7-7e20-4c2d-9a4c-e3b2a780dabb</guid><dc:creator>thoric_fish</dc:creator><description>&lt;p&gt;Hi Jimmy,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for your reply and the example. We have verified that when we use other people&amp;#39;s SES example code for SDK v12.3 we can successfully program our custom NRF51822 board using either SES &amp;#39;build and debug&amp;#39; or &amp;#39;build and run&amp;#39;. For example, using Vidar&amp;#39;s example code, we are able to do Bluetooth advertising and connection with the custom board.&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-a4769ae267a347178f60b8c69cd9edf1/nRF5_5F00_SDK_5F00_12.3.0_5F00_SES_5F00_51_5F00_example.zip"&gt;https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-a4769ae267a347178f60b8c69cd9edf1/nRF5_5F00_SDK_5F00_12.3.0_5F00_SES_5F00_51_5F00_example.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Our custom code has Bluetooth advertising, but also includes&amp;nbsp;&lt;/span&gt;&lt;span&gt;GPIO routines and TWI routines for interfacing with sensors.&amp;nbsp;&lt;/span&gt;But when we add our own custom code to Vidar&amp;#39;s&amp;nbsp;existing SES project, we can no longer successfully flash the custom board using &amp;#39;build and run&amp;#39; command.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When we use &amp;#39;build and run&amp;#39; to program the custom board, nothing happens&amp;nbsp;on the custom board - there is no Bluetooth advertising or UART output. When we use &amp;#39;build and debug&amp;#39; we can do Bluetooth advertising and UART output form the custom board. So basically, when we are trying to program and run our custom code on the custom board, we can only successfully do so using &amp;#39;build and debug&amp;#39; in SES.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is strange behavior and we do not know why it is occurring.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK v12.3 code not successfully flashing onto custom NRF51822 board with Segger Embedded Studio' Build and Run command</title><link>https://devzone.nordicsemi.com/thread/234541?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 04:33:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99532e59-2e31-4d92-aadc-305929645929</guid><dc:creator>Jimmy Wong</dc:creator><description>&lt;p&gt;HI,&lt;br /&gt;&lt;br /&gt;you can use my example (&lt;a href="https://github.com/jimmywong2003/SES-Project-For-NRF51"&gt;https://github.com/jimmywong2003/SES-Project-For-NRF51&lt;/a&gt;).&amp;nbsp; It works on the SES with SDK 12.3.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>