<?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>S32 SDKのトピックFlash Init Problem</title>
    <link>https://community.nxp.com/t5/S32-SDK/Flash-Init-Problem/m-p/1342604#M2286</link>
    <description>&lt;P&gt;Hello together&lt;/P&gt;&lt;P&gt;I have a project where I use the internal EEPROM functionality of the S32K148. I adjusted the example code from NXP to write an driver which uses the SDK. For several versions of our Software it worked correctly without any problems.&lt;BR /&gt;But now I'm facing the problem that the software gets stucked in the Flash Init routine. But this problem pops up only during flashing a brand new MCU, which was never flashed before.&lt;/P&gt;&lt;P&gt;If I'm flashing an older version of our software, it works without problems (even if the driver of the flash/EEPROM has no changes between these two versions).&lt;BR /&gt;I attached the Init routine of my driver. The software stucks as follows:&lt;BR /&gt;...&lt;BR /&gt;flashinit()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |__&amp;gt;&amp;nbsp; FLASH_DRV_DEFlashPartition()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; |__&amp;gt; FLASH_DRV_CommandSequence()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; |__&amp;gt; Programm stops and restart from beginning.&lt;/P&gt;&lt;P&gt;What could be the problem here?&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;</description>
    <pubDate>Mon, 20 Sep 2021 05:48:04 GMT</pubDate>
    <dc:creator>EE_CW</dc:creator>
    <dc:date>2021-09-20T05:48:04Z</dc:date>
    <item>
      <title>Flash Init Problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/Flash-Init-Problem/m-p/1342604#M2286</link>
      <description>&lt;P&gt;Hello together&lt;/P&gt;&lt;P&gt;I have a project where I use the internal EEPROM functionality of the S32K148. I adjusted the example code from NXP to write an driver which uses the SDK. For several versions of our Software it worked correctly without any problems.&lt;BR /&gt;But now I'm facing the problem that the software gets stucked in the Flash Init routine. But this problem pops up only during flashing a brand new MCU, which was never flashed before.&lt;/P&gt;&lt;P&gt;If I'm flashing an older version of our software, it works without problems (even if the driver of the flash/EEPROM has no changes between these two versions).&lt;BR /&gt;I attached the Init routine of my driver. The software stucks as follows:&lt;BR /&gt;...&lt;BR /&gt;flashinit()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |__&amp;gt;&amp;nbsp; FLASH_DRV_DEFlashPartition()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; |__&amp;gt; FLASH_DRV_CommandSequence()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; |__&amp;gt; Programm stops and restart from beginning.&lt;/P&gt;&lt;P&gt;What could be the problem here?&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 05:48:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/Flash-Init-Problem/m-p/1342604#M2286</guid>
      <dc:creator>EE_CW</dc:creator>
      <dc:date>2021-09-20T05:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Init Problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/Flash-Init-Problem/m-p/1342763#M2287</link>
      <description>&lt;P&gt;Hello Mario,&lt;/P&gt;
&lt;P&gt;If this init routine has not been changed, the issue must be elsewhere.&lt;/P&gt;
&lt;P&gt;If it crashes during this function FLASH_DRV_CommandSequence(), I think there could be two reasons.&lt;/P&gt;
&lt;P&gt;1. The function is not in SRAM - please check the .map file of the new SW.&lt;/P&gt;
&lt;P&gt;2. The MCU accesses the Flash memory during the partitioning (interrupts, DMA) - can you disable interrupts before the partitioning starts?&lt;/P&gt;
&lt;P&gt;I have noticed you install FTFC interrupt routine there. But do you use it in the application?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 13:38:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/Flash-Init-Problem/m-p/1342763#M2287</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-09-21T13:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Init Problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/Flash-Init-Problem/m-p/1343294#M2288</link>
      <description>&lt;P&gt;Hi Daniel&lt;BR /&gt;&lt;BR /&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;In the .map file I Couldn't find the FLASH_DRV_CommandSequence. I'm not sure if it should be listed in there in this case?&lt;BR /&gt;But your second hint about the interrupts was helpful.&lt;/P&gt;&lt;P&gt;I found something in another part of the software, that caused some interrupts. These were interrupting the partitioning and caused the reset. Now I init the flash as early as possible, before the other part is initialized and starts to cause interrupts.&lt;/P&gt;&lt;P&gt;With this change, I tested it successfully.&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Mario&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 13:30:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/Flash-Init-Problem/m-p/1343294#M2288</guid>
      <dc:creator>EE_CW</dc:creator>
      <dc:date>2021-09-21T13:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Init Problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/Flash-Init-Problem/m-p/1343311#M2289</link>
      <description>&lt;P&gt;Hi Mario,&lt;/P&gt;
&lt;P&gt;To be sure, you can mask&amp;nbsp;(PRIMASK) all the interrupts before the partitioning starts.&lt;/P&gt;
&lt;P&gt;There would be no problem if the interrupt vector table, the interrupt routines and all the resources that the routines use were in SRAM.&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>Tue, 21 Sep 2021 13:54:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/Flash-Init-Problem/m-p/1343311#M2289</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-09-21T13:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Init Problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/Flash-Init-Problem/m-p/1652989#M3089</link>
      <description>&lt;P&gt;hello:&lt;/P&gt;&lt;P&gt;I have encountered the same problem。&lt;/P&gt;&lt;P&gt;1)"FLASH-DRV_CommandSequence"was not placed in SRAM。When I run the "FLASH-DRV-DEFlashPartition" function，Generated 'b Default ISR'.&amp;nbsp;The address of the 'FLASH-DRV_CommandSequence' function is 0x000000f54.&lt;/P&gt;&lt;P&gt;2)"FLASH-DRV_CommandSequence" was&amp;nbsp; placed in SRAM。When I run the "FLASH-DRV-DEFlashPartition" function.D-Flash Partition successful."FLASH-DRV_ The CommandSequence "function address was not found in the map file&lt;/P&gt;&lt;P&gt;My question is why we need to use FLASH-DRV_ The CommandSequence function is placed in RAM to avoid generating abnormal interrupts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 09:02:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/Flash-Init-Problem/m-p/1652989#M3089</guid>
      <dc:creator>TM_207</dc:creator>
      <dc:date>2023-05-18T09:02:14Z</dc:date>
    </item>
  </channel>
</rss>

