<?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>My application board do not run example project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66661/my-application-board-do-not-run-example-project</link><description>Dear 
 
 I have finished completed the Blue tooth Mesh light-switch example function testing , secure button dfu and secure buttonless dfu on DK and dongle of nrf52840 chips. 
 Right now I build a testing circuit by nrf52840 module which was bought from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Oct 2020 22:38:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66661/my-application-board-do-not-run-example-project" /><item><title>RE: My application board do not run example project</title><link>https://devzone.nordicsemi.com/thread/273882?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 22:38:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4733e6cd-6d7b-4de6-9384-647e2eaffd01</guid><dc:creator>Di-sheng</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Hung Bui&lt;/p&gt;
&lt;p&gt;The light-switch server works very well on my application board now.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;B,Rs&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Di-sheng&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My application board do not run example project</title><link>https://devzone.nordicsemi.com/thread/273855?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 16:55:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2159b61-7280-4843-86a4-fb992d39fcdb</guid><dc:creator>Di-sheng</dc:creator><description>&lt;p&gt;Hi Hung Bui&lt;/p&gt;
&lt;p&gt;Oh!&amp;nbsp; Yes. I miss that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;B,Rs&lt;/p&gt;
&lt;p&gt;Di_sheng&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My application board do not run example project</title><link>https://devzone.nordicsemi.com/thread/273681?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 09:49:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa138b5e-f982-45b2-a9ad-d347f5016cfb</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you have a look at&amp;nbsp;hal_buttons_init() function, you can find that the input cb of this function will be assigned as the&amp;nbsp;&lt;span&gt;m_button_handler_cb&lt;/span&gt; . In the example it&amp;#39;s&amp;nbsp;button_event_handler()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My application board do not run example project</title><link>https://devzone.nordicsemi.com/thread/273602?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 00:33:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d4668d0-dc7a-4f10-89a0-efdecf978c26</guid><dc:creator>Di-sheng</dc:creator><description>&lt;p&gt;Hi Hung&lt;/p&gt;
&lt;p&gt;I add the 32kHz crystal and the dfu code running correct now. I will try to run the light-switch server code tomorrow.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have other question about the code of the light-switch server example:&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;read the&amp;nbsp; code of simple_hal.c, showed below:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;/*****************************************************************************&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; * IRQ handler(s)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; *****************************************************************************/&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;#if BUTTON_BOARD&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; void GPIOTE_IRQHandler(void)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; {&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; NRF_GPIOTE-&amp;gt;EVENTS_PORT = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; for (uint8_t i = 0; i &amp;lt; BUTTONS_NUMBER; ++i)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; {&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; /* Check that the event was generated by a button press, and reject if it&amp;#39;s too soon (debounce).&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; * NOTE: There is a bug with this at the wrap-around for the RTC1 where the button could be&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; * pressed before HAL_BUTTON_PRESS_FREQUENCY has passed a single time. It doesn&amp;#39;t matter practically.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; */&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="color:#ff0000;"&gt; ////////////2020-0828 button debug start&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; #if defined(BOARD_PCA10059) &amp;amp;&amp;amp; !defined(BOARD_LSM100)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; if ((~NRF_GPIO1-&amp;gt;IN &amp;amp; (1 &amp;lt;&amp;lt; (m_buttons_list[i]))) &amp;amp;&amp;amp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; TIMER_DIFF(m_last_button_press, NRF_RTC1-&amp;gt;COUNTER) &amp;gt; HAL_BUTTON_PRESS_FREQUENCY)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; #else&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; if ((~NRF_GPIO-&amp;gt;IN &amp;amp; (1 &amp;lt;&amp;lt; (m_buttons_list[i]))) &amp;amp;&amp;amp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; TIMER_DIFF(m_last_button_press, NRF_RTC1-&amp;gt;COUNTER) &amp;gt; HAL_BUTTON_PRESS_FREQUENCY)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; #endif ////////////2020-0828 button debug end&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; {&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; m_last_button_press = NRF_RTC1-&amp;gt;COUNTER;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; m_button_handler_cb(i);&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; }&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; }&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; }&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt; #endif&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I did not find the &amp;quot;&lt;span&gt;m_button_handler_cb(i)&amp;quot; code in whole sulotion and nordic webs. Would you can help me to find it. I want to know what&amp;nbsp; does it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;B,Rs,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Di-sheng&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My application board do not run example project</title><link>https://devzone.nordicsemi.com/thread/273163?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2020 09:27:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1124720-2153-4d0a-8e81-adb8457c9bd3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Diseng,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes the mesh example uses the 32kHz crystal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to run with the internal RC you need to set&amp;nbsp;NRF_SDH_CLOCK_LF_SRC = 0 in sdk_config.h&lt;/p&gt;
&lt;p&gt;I would suggest you to:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. Try to flash the example directly on the development board using programming interface not DFU. You would need the programming interface for debugging anyway.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. Try to do DFU with simple example , blinking LED for example, before you test with mesh example.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My application board do not run example project</title><link>https://devzone.nordicsemi.com/thread/273056?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 19:43:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51dfc4c0-23df-46d6-8bda-a01e2d3783a2</guid><dc:creator>Di-sheng</dc:creator><description>&lt;p&gt;Hi Hung Bui&lt;/p&gt;
&lt;p&gt;Thanks for your blog, I have read it when I try to the DFU function before. It is useful.&lt;/p&gt;
&lt;p&gt;In last post, I said that the dfu can runing on application board. This is correct, because there is not &amp;quot;DfuTarg&amp;quot; can be found by connecter tools of my phone after I programmed the &amp;quot; pca10056_s140_ble_debug&amp;quot; of secure_bootloader to the application board which was erasured. which mean the dfu do not running on the board too.&lt;/p&gt;
&lt;p&gt;the open-bootloader project can work on the application board, because the LED is blink and the desk-program tools can fing the board and can programming example code into the board by USB interface, althrough the example code do not work on the board.&lt;/p&gt;
&lt;p&gt;The everythings I did on the application board have been done on the PCA10056 or PCA10059&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Di-sheng&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My application board do not run example project</title><link>https://devzone.nordicsemi.com/thread/273048?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 18:44:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c313fb2-8090-4105-9a68-4a5807aa8ff9</guid><dc:creator>Di-sheng</dc:creator><description>&lt;p&gt;Hi Hung Bui&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;Yes, I have verify every code on PCA10056 or PCA10059, I also verify that example of BLE(blinky) and Mesh(light-switch server) be loaded by open_bootloader DFU which are through USB and secure_bootloader DFU which through USB or BLE. For buttonless dfu, I also completed the verification by modify the blinky example of BLE and light-switch server example of Mesh (I just want to try a DFU on BLE level). For Mesh DFU, I still do not do, I want try that after those examples be verified on application board.&lt;/p&gt;
&lt;p&gt;Because of the reasons above I do not understand why the DFU can running on the application board, but example code not, althrough the code by loaded by bootloader. Would you help me to think about what reasons can cause the error.&lt;/p&gt;
&lt;p&gt;Do you know whether the examples project code (ble_app_blinky of SDK and light-switch server of Mesh) uses the &amp;nbsp;32.768kHZ exteral low frequency clock of nrf52840. Because my application circuit is same with the No5 circuit configuration schematic of nrf54280 datasheet(on page 593) except the 32.768kHZ exteral crystal&amp;nbsp;oscillator circuit which I do not solder any componets.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Di-sheng&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My application board do not run example project</title><link>https://devzone.nordicsemi.com/thread/272984?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 12:45:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75a5b065-ebbe-4d2e-89ba-738ce560384c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Di-sheng,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please test and verify things work on a development kit before you move to the new platform (especially when you flash the application after the bootloader).&amp;nbsp;&lt;br /&gt;&lt;br /&gt;When you flash the bootloader, it would expect the application to be DFU updated, not by flashing using a programmer.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You would need to generate and flash the bootloader setting to tell the bootloader that you have flashed an application.&amp;nbsp;&lt;br /&gt;I discussed a little bit about it here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader#h61sjziauupw1j397q9s9ldr01q4j6d5"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader#h61sjziauupw1j397q9s9ldr01q4j6d5&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please be aware that the Secure bootloader is not mesh DFU bootloader. It only support DFU from a BLE or USB connection directly to the node.&amp;nbsp;&lt;br /&gt;We have Mesh DFU solution as described in the documentation for mesh.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>