<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Variables loses values after a while in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Variables-loses-values-after-a-while/m-p/1483359#M20390</link>
    <description>&lt;P&gt;Thanks, Daniel&lt;/P&gt;&lt;P&gt;I read this before and believe I followed it - only at ResetISR, I used C instead. I tried doing assembly too, seems no difference.&lt;/P&gt;&lt;P&gt;I had to split my DTC for a small section to keep some second bootloader variables there, so they are kept between firmware upgrade. I hope this has no effect on the other variables and values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing I don't understand is that, by redefine them out of big struct, the issue seems fixed, I am not sure this is to do with FlexRAM configuration?&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Ping&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jul 2022 09:20:06 GMT</pubDate>
    <dc:creator>ping1</dc:creator>
    <dc:date>2022-07-01T09:20:06Z</dc:date>
    <item>
      <title>Variables loses values after a while</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Variables-loses-values-after-a-while/m-p/1475839#M20165</link>
      <description>&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;I defined some variables in DTC, but after running for a while, it is lost and cleared to 0, this tend to happens more often when I define them in a big struct, it is better when I define them separately. I checked my software, and it is definitely not my code to change, The behaviour is beyond my comprehension and it is even different between two units with same firmware.&lt;/P&gt;&lt;P&gt;I use RT1024 BTW. Any suggestions please?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ping&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 08:29:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Variables-loses-values-after-a-while/m-p/1475839#M20165</guid>
      <dc:creator>ping1</dc:creator>
      <dc:date>2022-06-17T08:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Variables loses values after a while</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Variables-loses-values-after-a-while/m-p/1478514#M20228</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Does this behavior happen in another project?&lt;/P&gt;&lt;P&gt;When you try your code on a different device, does the data delete as well?&lt;/P&gt;&lt;P&gt;Best regards, Daniel.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 21:10:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Variables-loses-values-after-a-while/m-p/1478514#M20228</guid>
      <dc:creator>DanielRuvalcaba</dc:creator>
      <dc:date>2022-06-22T21:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Variables loses values after a while</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Variables-loses-values-after-a-while/m-p/1478832#M20244</link>
      <description>&lt;P&gt;Hi, Daniel&lt;/P&gt;&lt;P&gt;Thanks for reply!&lt;/P&gt;&lt;P&gt;We have 3 products so far all using same RT1024, in another project - gateway, I did notice some variables defined at ITC change, so I defined some dummy variables at that location to avoid whole struct being changed.&lt;/P&gt;&lt;P&gt;For this project, when I noticed the odd behaviour, I thought it was the ITC RAM which I should avoid, so I changed the variables to DTC, but it still happens.&lt;/P&gt;&lt;P&gt;It is hard for this project to run on a different hardware, but we have 2 units here to compare and they behaviour different even with same code, it is sort of to tend happen on a few variables, but randomly.&lt;/P&gt;&lt;P&gt;Your help is much appreciated!&lt;/P&gt;&lt;P&gt;Ping&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 07:43:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Variables-loses-values-after-a-while/m-p/1478832#M20244</guid>
      <dc:creator>ping1</dc:creator>
      <dc:date>2022-06-23T07:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variables loses values after a while</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Variables-loses-values-after-a-while/m-p/1479918#M20271</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/64110"&gt;@ping1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for the feedback. I just have a few questions.&lt;/P&gt;
&lt;P&gt;Have you modified the ITCM size?&lt;/P&gt;
&lt;P&gt;Do you have any low power configuration?&lt;/P&gt;
&lt;P&gt;Are you using a custom board?&lt;/P&gt;
&lt;P&gt;Best regards, Daniel.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 15:26:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Variables-loses-values-after-a-while/m-p/1479918#M20271</guid>
      <dc:creator>DanielRuvalcaba</dc:creator>
      <dc:date>2022-06-24T15:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Variables loses values after a while</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Variables-loses-values-after-a-while/m-p/1480385#M20300</link>
      <description>&lt;P&gt;Hi, Daniel&lt;/P&gt;&lt;P&gt;Thanks for reply!&lt;/P&gt;&lt;P&gt;Yes, I did modify the size of ITC, the current size of the RAM is ITC=64K, DTC=128K, and OCRAM = 64K. any impact on RAM configuration?&lt;/P&gt;&lt;P&gt;I don't use any low power configuration if you mean put into sleep and wake up by some trigger? it always run in full power.&lt;/P&gt;&lt;P&gt;It is our custom board - the product is in pre-production stage and we have already ordered production batch in volume, that is why I am so worried by the behaviour. We have other 2 products using same processor are already in market and another one on the way.&lt;/P&gt;&lt;P&gt;Any thing can help is much appreciated.&lt;/P&gt;&lt;P&gt;Ping&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 07:46:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Variables-loses-values-after-a-while/m-p/1480385#M20300</guid>
      <dc:creator>ping1</dc:creator>
      <dc:date>2022-06-27T07:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Variables loses values after a while</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Variables-loses-values-after-a-while/m-p/1481388#M20333</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Could you please validate that you followed the steps of the &lt;A href="https://www.nxp.com/docs/en/application-note/AN12077.pdf" target="_blank" rel="noopener"&gt;AN12077&lt;/A&gt; to change the FlexRAM configuration?&lt;/P&gt;
&lt;P&gt;And could you please double check the design of your custom board?&lt;/P&gt;
&lt;P&gt;Best regards, Daniel.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 21:33:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Variables-loses-values-after-a-while/m-p/1481388#M20333</guid>
      <dc:creator>DanielRuvalcaba</dc:creator>
      <dc:date>2022-06-28T21:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Variables loses values after a while</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Variables-loses-values-after-a-while/m-p/1481641#M20350</link>
      <description>&lt;P&gt;Hi, Daniel&lt;/P&gt;&lt;P&gt;I believe I followed the AN to re-configure the RAM - done some time ago. here is my code snips in ResetISR():&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;IOMUXC_GPR-&amp;gt;GPR14 = ((0x08&amp;lt;&amp;lt;20U) | (0x07&amp;lt;&amp;lt;16U)); /* DTC size = 128K ITC size = 64K,*/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IOMUXC_GPR-&amp;gt;GPR17 = 0x0000FAA5; /* OC - 64K, DTC- 128K, ITC-64K, */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IOMUXC_GPR-&amp;gt;GPR16 |= 0x04; /* select register */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;and memory configuration:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ping1_0-1656487329999.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/184977i46442406CDE9143B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ping1_0-1656487329999.png" alt="ping1_0-1656487329999.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Would you like to check the whole project for me pls? I need to send it in private.&lt;/P&gt;&lt;P&gt;Not sure what else I can check in terms of hardware side.&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;Ping&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 07:25:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Variables-loses-values-after-a-while/m-p/1481641#M20350</guid>
      <dc:creator>ping1</dc:creator>
      <dc:date>2022-06-29T07:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Variables loses values after a while</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Variables-loses-values-after-a-while/m-p/1482973#M20381</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/64110"&gt;@ping1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Could you please take a look to &lt;A href="https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Reallocating-the-FlexRAM/ta-p/1117649" target="_blank" rel="noopener"&gt;this&lt;/A&gt; article about FlexRAM reallocation? Just to make sure the configuration is correct.&lt;/P&gt;
&lt;P&gt;Best regards, Daniel.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 18:00:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Variables-loses-values-after-a-while/m-p/1482973#M20381</guid>
      <dc:creator>DanielRuvalcaba</dc:creator>
      <dc:date>2022-06-30T18:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Variables loses values after a while</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Variables-loses-values-after-a-while/m-p/1483359#M20390</link>
      <description>&lt;P&gt;Thanks, Daniel&lt;/P&gt;&lt;P&gt;I read this before and believe I followed it - only at ResetISR, I used C instead. I tried doing assembly too, seems no difference.&lt;/P&gt;&lt;P&gt;I had to split my DTC for a small section to keep some second bootloader variables there, so they are kept between firmware upgrade. I hope this has no effect on the other variables and values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing I don't understand is that, by redefine them out of big struct, the issue seems fixed, I am not sure this is to do with FlexRAM configuration?&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Ping&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 09:20:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Variables-loses-values-after-a-while/m-p/1483359#M20390</guid>
      <dc:creator>ping1</dc:creator>
      <dc:date>2022-07-01T09:20:06Z</dc:date>
    </item>
  </channel>
</rss>

