<?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>application on nrf9160 board does not start</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91112/application-on-nrf9160-board-does-not-start</link><description>Hi, 
 I&amp;#39;m developing a board based on the thingy91 (same nordic silicon, different sensors) and using nrf SDK v2.0.0 
 The blinky application is flashed and run correctly the first time upon flash complete, but won&amp;#39;t start if I turn off and on the board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Aug 2022 07:24:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91112/application-on-nrf9160-board-does-not-start" /><item><title>RE: application on nrf9160 board does not start</title><link>https://devzone.nordicsemi.com/thread/382380?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2022 07:24:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b5a11a8-ae99-43e0-b725-a7bc91a6f4eb</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is great to hear that you solved your problem. I hope you have a wonderful weekend!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: application on nrf9160 board does not start</title><link>https://devzone.nordicsemi.com/thread/382372?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2022 06:10:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b709a22-5797-4a64-9a1a-fe2bac5feaf3</guid><dc:creator>stefanino</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;I have to correct my last message. The proper configuration of MCUboot alone solved my problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: application on nrf9160 board does not start</title><link>https://devzone.nordicsemi.com/thread/382303?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2022 13:58:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01cc4df3-5c0d-4b6e-a73a-5bc06808a22f</guid><dc:creator>stefanino</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;thanks for the speedy reply.&lt;/p&gt;
&lt;p&gt;In the meantime I managed to figure out that my board configures and uses pin 0.26 differently from the thingy.&lt;/p&gt;
&lt;p&gt;Coincidentally that is used by default by MCUboot to detect UART bootloading, so setting&amp;nbsp;&amp;nbsp;&lt;span&gt;CONFIG_MCUBOOT_SERIAL=&lt;/span&gt;&lt;span&gt;n in the MCUboot configuration to disable that function get me a step further.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now the blinky application can start correctly in stand-alone, ONLY if&amp;nbsp;build for Secure. If I build for Non Secure still the app won&amp;#39;t start.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My final app uses the modem library that requires Non Secure.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So how can I tell the mcuboot to boot the non secure partition?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks again&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: application on nrf9160 board does not start</title><link>https://devzone.nordicsemi.com/thread/382295?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2022 13:33:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa4303dd-02e3-4331-9826-c9bda6d31cac</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;I&amp;#39;m developing a board based on the thingy91 (same nordic silicon, different sensors) and using nrf SDK v2.0.0&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The blinky application is flashed and run correctly the first time upon flash complete, but won&amp;#39;t start if I turn off and on the board again.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Has anyone seen similar behavior?&lt;/p&gt;[/quote]
&lt;p&gt;This is often due to sensors/libraries being enabled in the background, where there&amp;#39;s a timing issue upon boot. Ie. a sensor being initialized before it&amp;#39;s ready, maybe it needs a 100 ms delay before initial transmission etc.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you enter debug mode, ie. attaching to a already running target, when this issue is produced, where does the code hang?&lt;/p&gt;
&lt;p&gt;PS: You can use Segger Ozone to attach to a running target.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>