<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Application corrupt on power fail</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/648437e4fc/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/648437e4fc/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/648437e4fc/</id><updated>2020-02-27T15:42:03.062000Z</updated><subtitle>Recent posts to Application corrupt on power fail</subtitle><entry><title>Application corrupt on power fail</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/648437e4fc/?limit=25#ac35" rel="alternate"/><published>2020-02-27T15:42:03.062000Z</published><updated>2020-02-27T15:42:03.062000Z</updated><author><name>praveena</name><uri>https://forge.codesys.com/u/praveena/</uri></author><id>https://forge.codesys.com064518d8fcbf59899fb7482fd65fe4ff92f0ea0e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Dear Sir,&lt;br/&gt;
The following are our queries.&lt;br/&gt;
   1. On powerOFF and power ON of our target device , we find that  in  the Codesys binary messages on startup show ( in the serial console as enclosed)that the application is not found.&lt;br/&gt;
       We have tried  the following setting in the CODESYSControl.cfg .&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;&lt;span&gt;[CmpApp]&lt;/span&gt;&lt;/span&gt;#Bootproject.RetainMismatch.Init=1RetainType.Applications=OnPowerfail#Application.FirstLoadInitRetains=1Bootproject.CreateOnDownload=1Bootproject.StoreOnlyOnDownload=1Application.1=PROTO.appApplication.2=PROTO&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;&lt;span&gt;[CmpRetain]&lt;/span&gt;&lt;/span&gt;#Retain.SRAM.Size=0x1000#Retain.SRAM.Address=0xFA3C57736&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;But  the problem remains.  In our case the binary is available on the SDCard. So on power up we require the boot project to remain available( without being corrupted in the SDCard)&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Once Codesys  binary finds that   the application is unavailable /Corrupt  , can we trap that error in any QNX application.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;-praveena&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=2131" rel="nofollow"&gt;Console log_220916.txt &lt;span&gt;&lt;span&gt;[13.13 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>