<?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 HardError feedback when trying to read the contents of PFlash in the code loaded into FlexNVM in S32K</title>
    <link>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1829355#M33054</link>
    <description>&lt;P&gt;Hello, I am using the S32K146 chip, and I encounter a HardError feedback when trying to read the contents of PFlash in the code loaded into FlexNVM.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It's strange that this issue is reproducible on some machines but not on others.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The specific code is as follows:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;#define UPD_PFLAG_ADRRESS (0x000F0000)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;uint8_t readFlag() &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;{&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;return (*(volatile uint8_t *)UPD_PFLAG_ADRRESS); //&lt;FONT color="#FF0000"&gt;There is a HardError&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Firstly, I would like to know if this error is caused by the limitation indicated in the diagram below.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;#Table 36-30. Allowed simultaneous memory operations in [S32K-RM.pdf] datashee&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FanJialin_0-1710499517514.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/268674i3A174FCA8F1FE8EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FanJialin_0-1710499517514.png" alt="FanJialin_0-1710499517514.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, I attempted to move this code from FlexNVM to SRAM, but the issue still occurs.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Could you help me analyze the reason?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The specific code is as follows:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;START_FUNCTION_DECLARATION_RAMSECTION &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;uint8_t readFlag()&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;{&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;return (*(volatile uint8_t *)UPD_PFLAG_ADRRESS); //&lt;FONT color="#FF0000"&gt;There is also a HardError&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;} &lt;FONT color="#FF0000"&gt;END_FUNCTION_DECLARATION_RAMSECTION&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2024 10:48:21 GMT</pubDate>
    <dc:creator>FanJialin</dc:creator>
    <dc:date>2024-03-15T10:48:21Z</dc:date>
    <item>
      <title>HardError feedback when trying to read the contents of PFlash in the code loaded into FlexNVM</title>
      <link>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1829355#M33054</link>
      <description>&lt;P&gt;Hello, I am using the S32K146 chip, and I encounter a HardError feedback when trying to read the contents of PFlash in the code loaded into FlexNVM.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It's strange that this issue is reproducible on some machines but not on others.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The specific code is as follows:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;#define UPD_PFLAG_ADRRESS (0x000F0000)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;uint8_t readFlag() &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;{&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;return (*(volatile uint8_t *)UPD_PFLAG_ADRRESS); //&lt;FONT color="#FF0000"&gt;There is a HardError&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Firstly, I would like to know if this error is caused by the limitation indicated in the diagram below.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;#Table 36-30. Allowed simultaneous memory operations in [S32K-RM.pdf] datashee&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FanJialin_0-1710499517514.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/268674i3A174FCA8F1FE8EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FanJialin_0-1710499517514.png" alt="FanJialin_0-1710499517514.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, I attempted to move this code from FlexNVM to SRAM, but the issue still occurs.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Could you help me analyze the reason?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The specific code is as follows:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;START_FUNCTION_DECLARATION_RAMSECTION &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;uint8_t readFlag()&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;{&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;return (*(volatile uint8_t *)UPD_PFLAG_ADRRESS); //&lt;FONT color="#FF0000"&gt;There is also a HardError&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;} &lt;FONT color="#FF0000"&gt;END_FUNCTION_DECLARATION_RAMSECTION&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 10:48:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1829355#M33054</guid>
      <dc:creator>FanJialin</dc:creator>
      <dc:date>2024-03-15T10:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: HardError feedback when trying to read the contents of PFlash in the code loaded into FlexNVM</title>
      <link>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1830270#M33120</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230957"&gt;@FanJialin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Do you see FSTAT[RDCOLERR] = 1?&lt;/P&gt;
&lt;P&gt;What kind of fault exception is it?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447" target="_blank"&gt;https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 11:31:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1830270#M33120</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-03-18T11:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: HardError feedback when trying to read the contents of PFlash in the code loaded into FlexNVM</title>
      <link>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1830668#M33142</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you for reply.&lt;/P&gt;&lt;P&gt;The error displayed during my debugging using IAR is as shown in the figure, it should be HardFault_Handler.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FanJialin_0-1710818096700.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/269063iD78842D273250324/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FanJialin_0-1710818096700.png" alt="FanJialin_0-1710818096700.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry,I don't know how to directly observe FSTAT[RDCOLERR] = 1. If the BaseAddress of FSTAT is 0x40020000, the value in the register is as follows.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FanJialin_1-1710818126462.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/269064iD00555A097CDEBB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FanJialin_1-1710818126462.png" alt="FanJialin_1-1710818126462.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When reading address 0x000F0000, I also found that for the faulty &lt;SPAN&gt;machines&lt;/SPAN&gt;, if I use IAR to observe the content of the Dataflash address, the content is displayed as "&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;-&lt;/FONT&gt;&lt;/STRONG&gt;," as shown in the figure below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FanJialin_2-1710818198390.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/269065i8F6DB93F047CC52E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FanJialin_2-1710818198390.png" alt="FanJialin_2-1710818198390.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the normal &lt;SPAN&gt;machines&lt;/SPAN&gt;, if I use IAR to observe the content of the Dataflash address, the content is not displayed as "-", as shown in the figure below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FanJialin_3-1710818360490.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/269067iD7BAABF1A77F1A70/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FanJialin_3-1710818360490.png" alt="FanJialin_3-1710818360490.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 03:22:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1830668#M33142</guid>
      <dc:creator>FanJialin</dc:creator>
      <dc:date>2024-03-19T03:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: HardError feedback when trying to read the contents of PFlash in the code loaded into FlexNVM</title>
      <link>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1831172#M33169</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230957"&gt;@FanJialin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The FSTAT register is at 0x40020080&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1710851623604.png" style="width: 582px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/269260i35FF6A35CE9B8C50/image-dimensions/582x160?v=v2" width="582" height="160" role="button" title="danielmartynek_0-1710851623604.png" alt="danielmartynek_0-1710851623604.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The screenshot you posted does not show that.&lt;/P&gt;
&lt;P&gt;I don't use IAR, so I don't know what peripherals register view is there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the value in the Cortex M4 Configurable Fault Status Register (CSFR)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, the DFlash is a flash block that can be read while other flash block is read/programmed.&lt;/P&gt;
&lt;P&gt;However, there is just one crossbar switch slave port for the flash controler. Either DFlash or PFlash can be read at a time.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1710851906260.png" style="width: 516px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/269261iFEB232A83336009E/image-dimensions/516x276?v=v2" width="516" height="276" role="button" title="danielmartynek_1-1710851906260.png" alt="danielmartynek_1-1710851906260.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Have you tried disabling/masking interrupts before the flash operation?&lt;/P&gt;
&lt;P&gt;The vector table and the interrupt routines must not be in the flash that is being programmed.&lt;/P&gt;
&lt;P&gt;Also, the ISRs must not access any data in that block.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&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, 20 Mar 2024 14:37:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1831172#M33169</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-03-20T14:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: HardError feedback when trying to read the contents of PFlash in the code loaded into FlexNVM</title>
      <link>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1831726#M33214</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for your reply.&lt;SPAN&gt;Could you please help me further confirm the following questions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FanJialin_0-1710916823704.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/269375iFF180A8FFF144868/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FanJialin_0-1710916823704.png" alt="FanJialin_0-1710916823704.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;》The FSTAT register is at 0x40020080&lt;BR /&gt;Sorry，I don't understand.&lt;BR /&gt;As the screenshot,the base address is 4002_0000h,and the offset is 0h(Reset value is 80h).&lt;BR /&gt;So&amp;nbsp;The FSTAT register is at 0x40020000,not&amp;nbsp;0x40020080.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;》What is the value in the Cortex M4 Configurable Fault Status Register (CSFR)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sorry,I can't find [CSFR] description in the datasheet.&lt;BR /&gt;Can you tell me how to confirm the value of&amp;nbsp;[CSFR]?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q3:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FanJialin_1-1710918545294.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/269378iEA73C216406F2407/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FanJialin_1-1710918545294.png" alt="FanJialin_1-1710918545294.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;》In general, the DFlash is a flash block that can be read while other flash block is read/programmed.&lt;/P&gt;&lt;P&gt;》However, there is just one core that can access a single block at a time.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In that case,&lt;/SPAN&gt;&lt;SPAN&gt;I still don't understand what kind of operation the "NG" marked in the red circle in the diagram prohibits.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Could you further explain it to me?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q4:&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;》Have you tried disabling/masking interrupts before the flash operation?&lt;BR /&gt;Does this restriction only refer to write operations?Is it necessary before flash read&amp;nbsp;operation?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 07:16:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1831726#M33214</guid>
      <dc:creator>FanJialin</dc:creator>
      <dc:date>2024-03-20T07:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: HardError feedback when trying to read the contents of PFlash in the code loaded into FlexNVM</title>
      <link>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1832121#M33251</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230957"&gt;@FanJialin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;1.&lt;/P&gt;
&lt;P&gt;I'm sorry, you are right. So, the RDCOLERR is not detected during the flash operation then.&lt;/P&gt;
&lt;P&gt;2.&lt;/P&gt;
&lt;P&gt;CFSR is a core register:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developer.arm.com/documentation/ddi0439/b/System-Control/Register-summary" target="_blank"&gt;https://developer.arm.com/documentation/ddi0439/b/System-Control/Register-summary&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;3.&lt;/P&gt;
&lt;P&gt;The table is a bit confusing in this regard.&lt;/P&gt;
&lt;P&gt;It does not prohibit reading DFlash while PFlash is read.&lt;/P&gt;
&lt;P&gt;But practically either the CM4 core or DMA (not both at the same time, crossbar arbitration) can access just DFlash or PFlash at a time via the Flash controller.&lt;/P&gt;
&lt;P&gt;However, while the flash controller programs/erases PFlash, the core/DMA can read DFlash, this is marked as OK in the table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1710944694314.png" style="width: 656px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/269509i635C9A40C2399299/image-dimensions/656x464?v=v2" width="656" height="464" role="button" title="danielmartynek_0-1710944694314.png" alt="danielmartynek_0-1710944694314.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;4.&lt;/P&gt;
&lt;P&gt;It applies to write (program/erase) operations only. Becasue these operations are done by the flash controller. So, while the flash controller is performing operations at the block, the core / DMA must not access the block.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 14:35:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1832121#M33251</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-03-20T14:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: HardError feedback when trying to read the contents of PFlash in the code loaded into FlexNVM</title>
      <link>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1833641#M33345</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001" target="_blank"&gt;@danielmartynek&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;Thank you very much for your answer to Q1234, which has been very helpful for me to understand the S32 read and write operations.&lt;/P&gt;&lt;P&gt;I believe I have found the cause of the issue. &lt;STRONG&gt;Could you please confirm if my understanding is correct?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In simple terms, when rewriting Flash content, the following steps should be taken:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;FLASH_DRV_EraseSector&lt;/LI&gt;&lt;LI&gt;FLASH_DRV_VerifySection (I missed this step)&lt;/LI&gt;&lt;LI&gt;FLASH_DRV_Program&lt;/LI&gt;&lt;LI&gt;FLASH_DRV_ProgramCheck&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Due to missing step 2, there is a certain probability (although low, so it only occurs on some machines) that writing without complete erasure can put the Flash into an abnormal state. Subsequently, attempting to read it again will result in a HardError and the system will fail to start.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 09:38:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1833641#M33345</guid>
      <dc:creator>FanJialin</dc:creator>
      <dc:date>2024-03-22T09:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: HardError feedback when trying to read the contents of PFlash in the code loaded into FlexNVM</title>
      <link>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1833792#M33354</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230957"&gt;@FanJialin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Erase Flash Sector command does the verification too.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1711116067729.png" style="width: 606px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/269985i7980BD2D8EBE9C27/image-dimensions/606x512?v=v2" width="606" height="512" role="button" title="danielmartynek_0-1711116067729.png" alt="danielmartynek_0-1711116067729.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Did you read the error status of the FLASH_DRV_EraseSector.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But yes, it can be verified further using the Verify Section command, refer to the S32K1xx Safety Manual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 14:07:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1833792#M33354</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-03-22T14:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: HardError feedback when trying to read the contents of PFlash in the code loaded into FlexNVM</title>
      <link>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1841678#M33879</link>
      <description>&lt;P&gt;&lt;SPAN&gt;》The Erase Flash Sector command does the verification too.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late reply.&lt;/P&gt;&lt;P&gt;I agree with your view, and there is also an error &lt;SPAN&gt;verification in&lt;/SPAN&gt; the Erase operation.&lt;/P&gt;&lt;P&gt;I will reorganize my process of writing to Flash to ensure that every step of the entire writing process is checked and retried.&lt;/P&gt;&lt;P&gt;Thank you very much for your assistance. I am closing this ticket.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Fanjialin&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 05:30:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1841678#M33879</guid>
      <dc:creator>FanJialin</dc:creator>
      <dc:date>2024-04-07T05:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: HardError feedback when trying to read the contents of PFlash in the code loaded into FlexNVM</title>
      <link>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1860596#M35057</link>
      <description>Hello, I have some problems when operating FlexNVM partitions. I hope to get your reply. The questions are as follows:&lt;BR /&gt;In my application, Flexram is used as an emulated EEPROM, partitioning as follows using 32k for DFLASH and 32k for EFLASH. boot needs to write some flag bits to DFLASH, after writing. Start running my application, my application needs to perform three steps to read the flag bit, partition, read the flag bit, there is a problem in the process. The flag bit can be read normally before the partition, but after the partition is erased when reading the flag bit, the read content is full FF. I am not quite clear what is the reason for this operation, I hope you can tell me the reason and the solution.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;void BswM_Eeeprom_Init(void)&lt;BR /&gt;{&lt;BR /&gt;status_t ret;&lt;BR /&gt;//ret定义为全局变量&lt;BR /&gt;//initial flash&lt;BR /&gt;ret = FLASH_DRV_Init(&amp;amp;Flash_Cfg_InitConfig0,&amp;amp;flashSSDConfig);&lt;BR /&gt;DEV_ASSERT(STATUS_SUCCESS == ret);&lt;BR /&gt;&lt;BR /&gt;///若未分配EEE，则执行分配指令&lt;BR /&gt;if (flashSSDConfig.EEESize == 0u) //检查FlexRAM是否已配置为EEPROM，为0表示目前是传统RAM&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;ret = FLASH_DRV_DEFlashPartition(&amp;amp;flashSSDConfig, 0x2u, 0x3u, 0x0u, false, true); //分区&lt;BR /&gt;DEV_ASSERT(STATUS_SUCCESS == ret);&lt;BR /&gt;/* Re-initialize the driver to update the new EEPROM configuration */&lt;BR /&gt;ret = FLASH_DRV_Init(&amp;amp;Flash_Cfg_InitConfig0,&amp;amp;flashSSDConfig);&lt;BR /&gt;DEV_ASSERT(STATUS_SUCCESS == ret);&lt;BR /&gt;&lt;BR /&gt;ret = FLASH_DRV_SetFlexRamFunction(&amp;amp;flashSSDConfig, EEE_ENABLE, 0x00u, &amp;amp;status);&lt;BR /&gt;// ret = FLASH_DRV_SetFlexRamFunction(&amp;amp;flashSSDConfig, EEE_ENABLE, 0x00u, NULL);&lt;BR /&gt;DEV_ASSERT(STATUS_SUCCESS == ret);&lt;BR /&gt;}&lt;BR /&gt;else /* FLexRAM is already configured as EEPROM */&lt;BR /&gt;{&lt;BR /&gt;ret = FLASH_DRV_SetFlexRamFunction(&amp;amp;flashSSDConfig, EEE_ENABLE, 0x00u, NULL);&lt;BR /&gt;DEV_ASSERT(STATUS_SUCCESS == ret);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;</description>
      <pubDate>Tue, 07 May 2024 13:52:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardError-feedback-when-trying-to-read-the-contents-of-PFlash-in/m-p/1860596#M35057</guid>
      <dc:creator>NXP2</dc:creator>
      <dc:date>2024-05-07T13:52:35Z</dc:date>
    </item>
  </channel>
</rss>

