<?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/66660/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:35:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66660/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/273881?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 22:35:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a366bea-0b52-470e-af7d-089f4a0912b5</guid><dc:creator>Di-sheng</dc:creator><description>&lt;p&gt;Hi Mttrinh&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/273854?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 16:54:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23d56de5-788c-4a25-8af6-a4477e885cad</guid><dc:creator>Di-sheng</dc:creator><description>&lt;p&gt;Hi Mttrinh&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/273775?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 13:30:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48c2823b-cbda-4498-bb41-f37e54594464</guid><dc:creator>Mttrinh</dc:creator><description>[quote user="SpongeBob"]&lt;span&gt;Is there any mechanism to prevent chip&amp;nbsp; reads and writes, how to do it and how to unlock it&lt;/span&gt;&amp;nbsp;?[/quote]
&lt;p&gt;Have a look at Edvin&amp;#39;s answer in this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30600/preventing-reprogramming-an-nrf52832/121257#121257" rel="noopener noreferrer" target="_blank"&gt;thread&lt;/a&gt;.&lt;/p&gt;
[quote user="SpongeBob"]I did not find the &amp;quot;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.[/quote]
&lt;p&gt;m_button_handler_cb is the callback function for the buttons.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Looking in &lt;em&gt;hal_buttons_init(hal_button_handler_cb_t cb)&lt;/em&gt;, you can see that&amp;nbsp;&lt;span&gt;&lt;em&gt;m_button_handler_cb&lt;/em&gt;&amp;nbsp;is set to &lt;em&gt;cb&lt;/em&gt;. In main.c, hal_buttons_init is called with button_event_handler as argument which means that&amp;nbsp;&lt;em&gt;m_button_handler_cb&lt;/em&gt;&amp;nbsp;is equal to the &lt;em&gt;button_event_handler.&amp;nbsp;&lt;/em&gt;You can find&amp;nbsp;&lt;em&gt;button_event_handler(...)&amp;nbsp;&lt;/em&gt;in main.c&lt;/span&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/273603?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 00:36:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6536d292-7b88-439e-8470-8cb854fa80ba</guid><dc:creator>Di-sheng</dc:creator><description>&lt;p&gt;Hi Mttrinh&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;&amp;nbsp;&lt;span style="color:#ff0000;font-size:75%;"&gt;/*****************************************************************************&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt; * IRQ handler(s)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt; *****************************************************************************/&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt;#if BUTTON_BOARD&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt; void GPIOTE_IRQHandler(void)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt; {&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt; NRF_GPIOTE-&amp;gt;EVENTS_PORT = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt; for (uint8_t i = 0; i &amp;lt; BUTTONS_NUMBER; ++i)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt; {&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&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;font-size:75%;"&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;font-size:75%;"&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;font-size:75%;"&gt; */&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt; ////////////2020-0828 button debug start&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt; #if defined(BOARD_PCA10059) &amp;amp;&amp;amp; !defined(BOARD_LSM100)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&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;font-size:75%;"&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;font-size:75%;"&gt; #else&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&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;font-size:75%;"&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;font-size:75%;"&gt; #endif ////////////2020-0828 button debug end&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt; {&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt; m_last_button_press = NRF_RTC1-&amp;gt;COUNTER;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt; m_button_handler_cb(i);&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt; }&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt; }&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt; }&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt; #endif&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I did not find the &amp;quot;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;/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/273308?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2020 17:34:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e31d0b7a-4f4a-4bd0-9e65-d4bcc1083ae6</guid><dc:creator>Di-sheng</dc:creator><description>&lt;p&gt;Hi Mttrinh&lt;/p&gt;
&lt;p&gt;Thanks for your replay.&lt;/p&gt;
&lt;p&gt;Yes, &lt;span&gt;I have realized that the lack of 32.768kHz crystal&amp;nbsp; may be the root of the problem. I can get parts today .&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You are right. &lt;span&gt;Is there any mechanism to prevent chip&amp;nbsp; reads and writes, how to do it and how to unlock it&lt;/span&gt;&amp;nbsp;?&lt;/p&gt;
&lt;p&gt;&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/273274?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2020 14:13:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8dd5ef2-2532-445b-823a-84ba4372be9f</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you check if your module have a 32khz crystal? It might be the reason for the issues you are seeing if you are missing this.&amp;nbsp;&lt;/p&gt;
[quote user=""]Is there any key to lock the flash so that the application code can not be write to flash?[/quote]
&lt;p&gt;Do you mean like preventing reprogramming?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>