<?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: iMX RT1062 Data only written to memory when stepping in the debugger in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMX-RT1062-Data-only-written-to-memory-when-stepping-in-the/m-p/1868761#M30481</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/213907"&gt;@expertsleepers&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the information! but seems the code is for SPI peripheral access, may I understand this issue just happen in accessing external SPI memory? Did you test it on RT1060EVK or a custom board?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please kindly clarify.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2024 09:21:32 GMT</pubDate>
    <dc:creator>Kan_Li</dc:creator>
    <dc:date>2024-05-20T09:21:32Z</dc:date>
    <item>
      <title>iMX RT1062 Data only written to memory when stepping in the debugger</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMX-RT1062-Data-only-written-to-memory-when-stepping-in-the/m-p/1858514#M30107</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have an issue where data is apparently only being written to memory when the code is stepped in the disassembly view of the debugger.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It feels like a cache coherency thing, but I can't imagine how, since I'm not using any DMA etc. The CPU is simply reading and writing the on-chip memory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The code simply looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;memset( check, 0, sizeof check );&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;flash::read( flash::ADDR_SERIAL_NUMBER, check, sizeof check );&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Inside read() it's just&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;uint8_t* dst = (uint8_t*)data;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;dst[rxi] = rx;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;If I step through that in the disassembly, I can see the strb&amp;nbsp;instruction write the data. But if I just let it run over the whole read(), nothing is written to check[]. It's not incorrect data; it's whatever data is there before the function call.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This seems to happen more when the amount of data read is small, which again feels like a cache thing (larger reads knocking out cache lines).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've experienced the same with the data array in SRAM_DTC and in SRAM_OC2. The fact that it happens with tightly-coupled memory is extremely baffling.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any suggestions welcome.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 16:48:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMX-RT1062-Data-only-written-to-memory-when-stepping-in-the/m-p/1858514#M30107</guid>
      <dc:creator>expertsleepers</dc:creator>
      <dc:date>2024-05-02T16:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: iMX RT1062 Data only written to memory when stepping in the debugger</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMX-RT1062-Data-only-written-to-memory-when-stepping-in-the/m-p/1862339#M30230</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/213907"&gt;@expertsleepers&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I have the IDE version used with the board? I guess the board is an EVK board, right? Please kindly clarify.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 08:17:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMX-RT1062-Data-only-written-to-memory-when-stepping-in-the/m-p/1862339#M30230</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2024-05-09T08:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: iMX RT1062 Data only written to memory when stepping in the debugger</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMX-RT1062-Data-only-written-to-memory-when-stepping-in-the/m-p/1862387#M30234</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;MCUXpresso IDE v11.9.0 [Build 2144] [2024-01-05]&lt;/P&gt;&lt;P&gt;I'm not working with an EVK board - it's our production hardware design.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 May 2024 09:06:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMX-RT1062-Data-only-written-to-memory-when-stepping-in-the/m-p/1862387#M30234</guid>
      <dc:creator>expertsleepers</dc:creator>
      <dc:date>2024-05-09T09:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: iMX RT1062 Data only written to memory when stepping in the debugger</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMX-RT1062-Data-only-written-to-memory-when-stepping-in-the/m-p/1865111#M30316</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/213907"&gt;@expertsleepers&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to share your code for a review? I will try to reproduce this issue here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 07:44:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMX-RT1062-Data-only-written-to-memory-when-stepping-in-the/m-p/1865111#M30316</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2024-05-14T07:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: iMX RT1062 Data only written to memory when stepping in the debugger</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMX-RT1062-Data-only-written-to-memory-when-stepping-in-the/m-p/1865181#M30320</link>
      <description>&lt;P&gt;I can't share the whole project, but the function in question is attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 08:39:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMX-RT1062-Data-only-written-to-memory-when-stepping-in-the/m-p/1865181#M30320</guid>
      <dc:creator>expertsleepers</dc:creator>
      <dc:date>2024-05-14T08:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: iMX RT1062 Data only written to memory when stepping in the debugger</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMX-RT1062-Data-only-written-to-memory-when-stepping-in-the/m-p/1868761#M30481</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/213907"&gt;@expertsleepers&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the information! but seems the code is for SPI peripheral access, may I understand this issue just happen in accessing external SPI memory? Did you test it on RT1060EVK or a custom board?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please kindly clarify.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 09:21:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMX-RT1062-Data-only-written-to-memory-when-stepping-in-the/m-p/1868761#M30481</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2024-05-20T09:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: iMX RT1062 Data only written to memory when stepping in the debugger</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMX-RT1062-Data-only-written-to-memory-when-stepping-in-the/m-p/1868767#M30482</link>
      <description>&lt;P&gt;Correct, it's accessing an external flash memory via SPI, but this is irrelevant really - the problem seems to be that the data read from the LPSPI peripheral is not being stored in the processor memory unless I step through in the debugger.&lt;/P&gt;&lt;P&gt;I have not tried it on an EVK board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 09:30:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMX-RT1062-Data-only-written-to-memory-when-stepping-in-the/m-p/1868767#M30482</guid>
      <dc:creator>expertsleepers</dc:creator>
      <dc:date>2024-05-20T09:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: iMX RT1062 Data only written to memory when stepping in the debugger</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMX-RT1062-Data-only-written-to-memory-when-stepping-in-the/m-p/1874403#M30578</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/213907"&gt;@expertsleepers&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the clarification! Maybe it is a timing issue, you know, core runs much faster than peripherals, so maybe there is some point you need to wait/check the rx fifo size, otherwise the code reads the fifo before the data is available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that makes sense,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 07:59:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMX-RT1062-Data-only-written-to-memory-when-stepping-in-the/m-p/1874403#M30578</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2024-05-24T07:59:49Z</dc:date>
    </item>
  </channel>
</rss>

