<?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: Flash FlexNVM reading problems in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804692#M2817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The data are ready&amp;nbsp;once the Flash operation&amp;nbsp;is complete. But please disable the D-Flash prefetch buffer in&amp;nbsp;MSCM_OCMDR1[OCM1] register before any D-Flash content modification. The buffer is not updated by the flash command so it will return old data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jul 2018 11:47:17 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2018-07-10T11:47:17Z</dc:date>
    <item>
      <title>Flash FlexNVM reading problems</title>
      <link>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804682#M2807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the FlexNVM memory from 0x10000000 to 0x10007FFF (32kB) to save data in the run program. When I fill all the memory I erase and log again, so in the routine I search for the next free address (0xFF) and write what I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my routine to look for the next free address, where I read each address from the memory, some address I can't read, it goes to a default handler and WDT resets. The solution is erase all the memory, so this problem doesn't happen anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my question is: is necessary to erase this region of memory before I first use? This problem is random, only in some chips it happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 17:57:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804682#M2807</guid>
      <dc:creator>lohrsistemas</dc:creator>
      <dc:date>2018-06-20T17:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Flash FlexNVM reading problems</title>
      <link>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804683#M2808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The phrase you are writing to must be erased. And the smallest portion of DFlash that can be erased is a sector. &lt;BR /&gt;It looks like you get ECC errors. When you writing to a phrase, do you see any error flags?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 10:59:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804683#M2808</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-06-21T10:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Flash FlexNVM reading problems</title>
      <link>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804684#M2809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply. In fact this is happening when I read the address, at this moment I dont write or erase anything, because I read all the memory to look the free address, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__no_init unsigned char flash_logger[32768]&amp;nbsp;&amp;nbsp; @ 0x10000000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(aux=0; aux&amp;lt;32768; aux+=8)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(flash_logger[aux]==0xFF)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ret = aux;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;break;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is some cases when I execute "if(flash_logger[aux]==0xFF)&amp;nbsp;&amp;nbsp;&amp;nbsp; " it goes to a default handler. My doubt is at the first time, if I need to erase all the flash memory before read. This is random so I'm not sure.&lt;/P&gt;&lt;P&gt;What I can do is prepare a logic to erase all the memory at the first use, but in this case I need to use other flash section to save a simple flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 11:35:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804684#M2809</guid>
      <dc:creator>lohrsistemas</dc:creator>
      <dc:date>2018-06-21T11:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Flash FlexNVM reading problems</title>
      <link>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804685#M2810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;The DFlash block should be erased if you didn’t write anything to it. Anyway, you can verify that it is not weakly erased using Read 1s Block command and selecting ‘User’ margin (Section 36.5.11.1, RM r.7).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It would be good to find out what the default ISR means. Could you check the S32_SBC[CFSR] register and BFAR register in case of a precise bus fault?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Are you sure the code you are using is correct, have you tried simply with a pointer, something like this:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;uint32_t *ptr = (uint32_t*)0x10000000;
uint32_t data, address, i;

for(i=0; i&amp;lt;0x7FFF; i+=4){
&amp;nbsp; 
&amp;nbsp;&amp;nbsp; data = *ptr++;
&amp;nbsp; 
&amp;nbsp;&amp;nbsp; if(data == 0xFFFFFFFF){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; address = (0x10000000 + i);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(address == 0x10007FFC){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __asm__("BKPT");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ptr = (uint32_t*)0x10000000;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; }
}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 21:09:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804685#M2810</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-06-21T21:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Flash FlexNVM reading problems</title>
      <link>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804686#M2811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;The DFlash block should be erased if you didn’t write anything to it. Anyway, you can verify that it is not weakly erased using Read 1s Block command and selecting ‘User’ margin (Section 36.5.11.1, RM r.7).&lt;/BLOCKQUOTE&gt;&lt;P&gt;I've implemented this, but it only works when the DFlash Block is erased, it doesn't work to verify the integrity of flash without erase. In my case the problem is read the flash in the first time that the chip is power on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found in "fsl_flash_driver_c90tfs" the function "FlashReadOnce", that return "FTFx_ERR_ACCERR" if some access error happens. But it only works for the P-Flash, is there any way for I read the D-Flash via FCCOB command? In the RM I did't find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the default ISR I will check when it happens again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 18:09:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804686#M2811</guid>
      <dc:creator>lohrsistemas</dc:creator>
      <dc:date>2018-06-26T18:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Flash FlexNVM reading problems</title>
      <link>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804687#M2812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would check all the information provided about the exception.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can refer to:&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-334902"&gt;Fault handling on S32K144&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;FlashReadOnce fucntion, please see Section&amp;nbsp;36.4.2.1, RM r.7.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;This function is for the IFR Program Once field only.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;There is no flash command for DFlash reading.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;What do you see in the debugger's memory view?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 08:58:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804687#M2812</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-06-28T08:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Flash FlexNVM reading problems</title>
      <link>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804688#M2813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It happens again with your function to read the memory, exactly in this line: "data = *ptr;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here what I have in the memory:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Memory.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/64572iD992F313C1E797D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Memory.JPG" alt="Memory.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the problem happens when I read the address 0x10000000, the others it doesn't happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the register that you asked for:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="S32_SCB.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/64573i7788E327C16A3691/image-size/large?v=v2&amp;amp;px=999" role="button" title="S32_SCB.JPG" alt="S32_SCB.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 14:43:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804688#M2813</guid>
      <dc:creator>lohrsistemas</dc:creator>
      <dc:date>2018-06-28T14:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Flash FlexNVM reading problems</title>
      <link>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804689#M2814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;So there is no fault exception.&amp;nbsp;Maybe double-bit ECC error indicated by&amp;nbsp;FERSTAT[DFDIF] flag.&lt;/P&gt;&lt;P&gt;But it doesn't explain why there are the some data if you didn't write anything to the DFlash block.&lt;/P&gt;&lt;P&gt;Is there a problem erasing the DFlash block?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 19:14:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804689#M2814</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-06-28T19:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Flash FlexNVM reading problems</title>
      <link>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804690#M2815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, there is no problem when I execute the function, it returns "FTFx_OK", including in the verification (FlashVerifySection()) function. But generally the solution is perform the erase function again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because this I asked if there is some error access to the DFlash...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking what else it could be. If you have another tip please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 19:54:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804690#M2815</guid>
      <dc:creator>lohrsistemas</dc:creator>
      <dc:date>2018-06-28T19:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Flash FlexNVM reading problems</title>
      <link>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804691#M2816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any minimum time between writing flash or between writing and readind flash? I still have this problem (when it shows "??????" in the memory).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debbuging I could see that only in the first address 0x10000000 it takes a long time to appear in the memory what I had written before and maybe if I read this address while it doesn't update here could be the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 11:31:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804691#M2816</guid>
      <dc:creator>lohrsistemas</dc:creator>
      <dc:date>2018-07-10T11:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Flash FlexNVM reading problems</title>
      <link>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804692#M2817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The data are ready&amp;nbsp;once the Flash operation&amp;nbsp;is complete. But please disable the D-Flash prefetch buffer in&amp;nbsp;MSCM_OCMDR1[OCM1] register before any D-Flash content modification. The buffer is not updated by the flash command so it will return old data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 11:47:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804692#M2817</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-07-10T11:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Flash FlexNVM reading problems</title>
      <link>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804693#M2818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply. Taking a look in your observation I get this value to the MSCM_OCMDR1 register:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="MSCM.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/65164i49536CD2CBD993DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="MSCM.JPG" alt="MSCM.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In RM 34.4.2.19.4 we have:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RM.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/65167i07C05BBB82ED0FA1/image-size/large?v=v2&amp;amp;px=999" role="button" title="RM.JPG" alt="RM.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is this value ok? "10" =&amp;gt; "Speculation for instruction enabled and speculation for data disabled"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other question, what you suggest is this in the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MSCM-&amp;gt;OCMDR[1] &amp;amp;= ~MSCM_OCMDR_OCM1_MASK; /* Disable buffer */&lt;/P&gt;&lt;P&gt;WriteFlashFunction();&lt;/P&gt;&lt;P&gt;MSCM-&amp;gt;OCMDR[1] |= MSCM_OCMDR_OCM1_MASK; /* Enable buffer */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 13:18:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804693#M2818</guid>
      <dc:creator>lohrsistemas</dc:creator>
      <dc:date>2018-07-10T13:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Flash FlexNVM reading problems</title>
      <link>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804694#M2819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the hard fault occurs, now I could get the important registers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Quando acontece erro.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/65188i34DF67975BEE3D9D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Quando acontece erro.JPG" alt="Quando acontece erro.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the address that BFAR shows I have the "????" data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="MemoryProblem.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/65189i36A959F7A70F9180/image-size/large?v=v2&amp;amp;px=999" role="button" title="MemoryProblem.JPG" alt="MemoryProblem.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will implement your suggest about the BusFault Handler, but would be correct fix the problem that is causing "???" data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 14:39:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804694#M2819</guid>
      <dc:creator>lohrsistemas</dc:creator>
      <dc:date>2018-07-10T14:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Flash FlexNVM reading problems</title>
      <link>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804695#M2820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The default MSCM-&amp;gt;OCMDR[OCM1] value is 0b00.&lt;/P&gt;&lt;P&gt;That means: “Speculation for both instruction and data enabled”.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;IMG alt="pastedImage_1.png" src="https://community.nxp.com/t5/image/serverpage/image-id/65446i267B152213E4FAA7/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So, it’s the other way round:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;MSCM-&amp;gt;OCMDR[1] |= MSCM_OCMDR_OCM1_MASK; /* Disable buffer */
WriteFlashFunction();
MSCM-&amp;gt;OCMDR[1] &amp;amp;= ~MSCM_OCMDR_OCM1_MASK; /* Enable buffer */&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:11:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804695#M2820</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-11-02T14:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Flash FlexNVM reading problems</title>
      <link>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804696#M2821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've implemented this check before any writing or erasing flash process:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while((FTFC-&amp;gt;FSTAT &amp;amp; FTFC_FSTAT_CCIF_MASK) == 0) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It verifies if there is any operation in progress, and until now I haven't had the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SDK "fsl_flash_driver_c90tfs", at my look, doesn't verify this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 11:01:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804696#M2821</guid>
      <dc:creator>lohrsistemas</dc:creator>
      <dc:date>2018-07-12T11:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Flash FlexNVM reading problems</title>
      <link>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804697#M2822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lohr,&lt;/P&gt;&lt;P&gt;Yes, this check should be definitely there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 11:15:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-FlexNVM-reading-problems/m-p/804697#M2822</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-07-12T11:15:50Z</dc:date>
    </item>
  </channel>
</rss>

