<?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: FreeRtos problems in S32K</title>
    <link>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034273#M6566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The SSRS register value is 0xC2.&lt;/P&gt;&lt;P&gt;I don't know why.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2020 06:44:39 GMT</pubDate>
    <dc:creator>赵子成</dc:creator>
    <dc:date>2020-04-28T06:44:39Z</dc:date>
    <item>
      <title>FreeRtos problems</title>
      <link>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034260#M6553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My project is OK without FreeRtos OS. When I add&amp;nbsp;&lt;SPAN&gt;FreeRtos OS and add&amp;nbsp;OSIF_MutexLock and&amp;nbsp;OSIF_MutexUnlock in the file &amp;lt;Var_Manage.c&amp;gt; and &amp;lt;E_Buf_A.c&amp;gt;, I got some problems.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1、When start&amp;nbsp;Scheduler, Can't enter the I2C interrupt----LPI2C_DRV_MasterIRQHandler， but Can enter the&amp;nbsp;&amp;nbsp;I2C interrupt before&amp;nbsp;starting&amp;nbsp;&lt;SPAN&gt;Scheduler.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;2、After a period of running time after Scheduler, the software will reset.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I don't know what is the root cause.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I don't know whether the FreeRtos OS configaration is OK.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I don't know the Mutex Using is OK or not.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I don't know the I2C drivers is OK or not(What attention after Using FreeRtos?)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Or anything else wrong?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Can anyone help me ? Can Experts check my project?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thanks Very much.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I attach&amp;nbsp; my project.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2020 08:23:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034260#M6553</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2020-03-30T08:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRtos problems</title>
      <link>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034261#M6554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;I was like a person who struggled in the Sea.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2020 10:00:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034261#M6554</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2020-04-01T10:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRtos problems</title>
      <link>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034262#M6555</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;One of the most usual reasons why the&amp;nbsp;OSIF_MutexLock and OSIF_MutexUnlock doesn't work is that the heap or the task stack isn't enough so I will suggest incrementing these two memory sizes:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/106275i83231DC9BBFB359D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/106276i9FC8BB98AAA35C47/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2020 15:38:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034262#M6555</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-04-13T15:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRtos problems</title>
      <link>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034263#M6556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand why we need so much RAM?&lt;/P&gt;&lt;P&gt;You know the S32K144 have only 64K RAM, It seems no reason using a half to FreeRTOS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 06:04:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034263#M6556</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2020-04-14T06:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRtos problems</title>
      <link>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034264#M6557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;P&gt;Another issue is when we exec&amp;nbsp;Par_SaveAllParaDataToFlash function, the software will reset, I don't know why?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 06:14:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034264#M6557</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2020-04-14T06:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRtos problems</title>
      <link>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034265#M6558</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;These values are only to show where to modify these parameters, depending on your application is the amount of stack and heap need it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;An usual error about the functions that save data in flash Par_SaveAllParaDataToFlash is that this need to be executed from RAM since you can read and write to the RAM at the same time, so I will suggest checking the following &lt;A _jive_internal="true" href="https://community.nxp.com/thread/389369"&gt;thread &lt;/A&gt;that explains how to do this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Alexis Andalon&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 18:29:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034265#M6558</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-04-14T18:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRtos problems</title>
      <link>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034266#M6559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes, It is&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;executed from RAM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The issue is that it is OK without FreeRTOS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;But when using&amp;nbsp;&lt;SPAN&gt;FreeRTOS, when running the function&amp;nbsp;Par_SaveAllParaDataToFlash, the software will reset.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Can you look through the code of &lt;SPAN style="background-color: #ffffff;"&gt;Par_SaveAllParaDataToFlash&amp;nbsp;&lt;/SPAN&gt;and point out the mistake?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Thanks very much.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2020 00:48:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034266#M6559</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2020-04-15T00:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRtos problems</title>
      <link>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034267#M6560</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;Can you let me know where did you find that function? I was looking in the flash component and the flash driver and I couldn't find it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2020 18:19:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034267#M6560</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-04-17T18:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRtos problems</title>
      <link>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034268#M6561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The function of&amp;nbsp;Par_SaveAllParaDataToFlash is in the file &amp;lt;Par_Manage.c&amp;gt;, which is in the directory of "BMS13S_APP_V2010_OS_ToNxp\Sources\Service\Par_Manage".&lt;/P&gt;&lt;P&gt;I am looking forward to your suggestion.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Apr 2020 02:56:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034268#M6561</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2020-04-18T02:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRtos problems</title>
      <link>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034269#M6562</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;This API/File is not in the SDK so I deduce that this is part of your application, would it be possible to share what instruction is causing the reset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2020 16:43:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034269#M6562</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-04-20T16:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRtos problems</title>
      <link>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034270#M6563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The source codes are in the attachments before.&lt;/P&gt;&lt;P&gt;I copy to be follows:&lt;/P&gt;&lt;P&gt;BOOL Par_SaveAllParaDataToFlash(void)&lt;BR /&gt;{&lt;BR /&gt; BOOL bResult = TRUE;&lt;/P&gt;&lt;P&gt;bResult = bResult &amp;amp;&amp;amp; DFA_SaveParaData(WR_DFLASH_PAR_SYS, &amp;amp;g_unParData);&lt;/P&gt;&lt;P&gt;bResult = bResult &amp;amp;&amp;amp; DFA_SaveParaData(WR_DFLASH_PAR_LECU, &amp;amp;g_unParData);&lt;/P&gt;&lt;P&gt;bResult = bResult &amp;amp;&amp;amp; DFA_SaveParaData(WR_DFLASH_PAR_ALARM_F_HALF, &amp;amp;g_unParData);&lt;/P&gt;&lt;P&gt;bResult = bResult &amp;amp;&amp;amp; DFA_SaveParaData(WR_DFLASH_PAR_ALARM_S_HALF, &amp;amp;g_unParData);&lt;/P&gt;&lt;P&gt;return bResult;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;where&amp;nbsp;DFA_SaveParaData is define:&lt;/P&gt;&lt;P&gt;BOOL DFA_SaveParaData(EM_WR_DFLASH emType, UN_PAR_DATA *punData)&lt;BR /&gt;{&lt;BR /&gt; BOOL bResult;&lt;/P&gt;&lt;P&gt;bResult = TRUE;&lt;/P&gt;&lt;P&gt;switch(emType)&lt;BR /&gt; {&lt;BR /&gt; case WR_DFLASH_PAR_COEF:&lt;/P&gt;&lt;P&gt;bResult = bResult &amp;amp;&amp;amp; DFA_WrOneSectorDflashOp(emType, (UINT8*)(punData-&amp;gt;stParData.aunParCoefData), DFLASH_BYTE_LENGTH_COEF, EM_SECTOR_NUM0_COEF_BYTE, 0);&lt;/P&gt;&lt;P&gt;break;&lt;/P&gt;&lt;P&gt;case WR_DFLASH_PAR_SYS:&lt;/P&gt;&lt;P&gt;bResult = bResult &amp;amp;&amp;amp; DFA_WrOneSectorDflashOp(emType, (UINT8*)(punData-&amp;gt;stParData.aunParSysData), DFLASH_BYTE_LENGTH_PAR_SYS, EM_SECTOR_NUM1_SYS, 0);&lt;/P&gt;&lt;P&gt;break;&lt;/P&gt;&lt;P&gt;case WR_DFLASH_PAR_LECU:&lt;/P&gt;&lt;P&gt;bResult = bResult &amp;amp;&amp;amp; DFA_WrOneSectorDflashOp(emType, (UINT8*)(punData-&amp;gt;stParData.aunParLecuData), DFLASH_BYTE_LENGTH_PAR_LECU, EM_SECTOR_NUM2_LECU, 0);&lt;/P&gt;&lt;P&gt;break;&lt;/P&gt;&lt;P&gt;case WR_DFLASH_PAR_BYTE:&lt;/P&gt;&lt;P&gt;bResult = bResult &amp;amp;&amp;amp; DFA_WrOneSectorDflashOp(emType, punData-&amp;gt;stParData.au8ParByteData, DFLASH_BYTE_LENGTH_BYTE, EM_SECTOR_NUM0_COEF_BYTE, DFLASH_POS_BYTE_START_INSEC);&lt;/P&gt;&lt;P&gt;break;&lt;/P&gt;&lt;P&gt;case WR_DFLASH_PAR_ALARM_F_HALF:&lt;/P&gt;&lt;P&gt;bResult = bResult &amp;amp;&amp;amp; DFA_WrOneSectorDflashOp(emType, (UINT8*)(punData-&amp;gt;stParData.aunParAlarmData), DFLASH_BYTE_LENGTH_PAR_ALARM / 2, EM_SECTOR_NUM4_ALARM_F_HALF, 0);&lt;/P&gt;&lt;P&gt;break;&lt;/P&gt;&lt;P&gt;case WR_DFLASH_PAR_ALARM_S_HALF:&lt;/P&gt;&lt;P&gt;bResult = bResult &amp;amp;&amp;amp; DFA_WrOneSectorDflashOp(emType, (UINT8*)(punData-&amp;gt;stParData.aunParAlarmData[ALM_ID_NUM / 2]), DFLASH_BYTE_LENGTH_PAR_ALARM / 2, EM_SECTOR_NUM5_ALARM_S_HALF, 0);&lt;/P&gt;&lt;P&gt;break;&lt;/P&gt;&lt;P&gt;case WR_DFLASH_PAR_UDS:&lt;/P&gt;&lt;P&gt;// bResult = bResult &amp;amp;&amp;amp; DFA_WrOneSectorDflashOp(emType, punData-&amp;gt;stParData.unParUdsPara.au8ParaUds, DFLASH_BYTE_LENGTH_PAR_UDS, EM_SECTOR_NUM6_UDS, 0);&lt;/P&gt;&lt;P&gt;break;&lt;/P&gt;&lt;P&gt;default:&lt;BR /&gt; bResult = FALSE;&lt;BR /&gt; break;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;return (bResult);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Where&amp;nbsp;DFA_WrOneSectorDflashOp is defined:&lt;/P&gt;&lt;P&gt;static BOOL DFA_WrOneSectorDflashOp(EM_WR_DFLASH emType, UINT8 *pu8Data, UINT16 u16Len, EM_SECTOR_NUM emSec, UINT16 u16AddrInSec)&lt;BR /&gt;{&lt;BR /&gt; status_t emResult; &lt;BR /&gt; UINT32 u32FailAddr;&lt;BR /&gt; UINT16 u16DFlashFlag, i, u16Block;&lt;BR /&gt; BOOL bResult;&lt;BR /&gt; UINT64 u64PitLastCount = 0;&lt;BR /&gt; UINT16 u16DelayMs = 0;&lt;/P&gt;&lt;P&gt;//Feed watchdog once&lt;BR /&gt; FeedWdgOneTime();&lt;/P&gt;&lt;P&gt;if(u16Len % FTFx_PHRASE_SIZE)&lt;BR /&gt; {&lt;BR /&gt; return FALSE;&lt;BR /&gt; }&lt;BR /&gt; if(u16AddrInSec % FTFx_PHRASE_SIZE)&lt;BR /&gt; {&lt;BR /&gt; return FALSE;&lt;BR /&gt; }&lt;BR /&gt; if((u16AddrInSec + u16Len) &amp;gt; FEATURE_FLS_DF_BLOCK_SECTOR_SIZE)&lt;BR /&gt; {&lt;BR /&gt; return FALSE;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;INT_SYS_DisableIRQGlobal();&lt;/P&gt;&lt;P&gt;u64PitLastCount = LPIT_GetUsCountBeforeRun();&lt;/P&gt;&lt;P&gt;bResult = TRUE;&lt;BR /&gt; emResult = STATUS_SUCCESS;&lt;/P&gt;&lt;P&gt;emResult = emResult || FLASH_DRV_EraseSector(&amp;amp;flashSSDConfig, ADDR_DFLASH_BACKUP_ADDR, FEATURE_FLS_DF_BLOCK_SECTOR_SIZE);&lt;/P&gt;&lt;P&gt;emResult = emResult || FLASH_DRV_VerifySection(&amp;amp;flashSSDConfig, ADDR_DFLASH_BACKUP_ADDR, FEATURE_FLS_DF_BLOCK_SECTOR_SIZE / FTFx_PHRASE_SIZE, 1u);&lt;/P&gt;&lt;P&gt;emResult = emResult || FLASH_DRV_Program(&amp;amp;flashSSDConfig, ADDR_DFLASH_BACKUP_ADDR + u16AddrInSec, u16Len, pu8Data);&lt;/P&gt;&lt;P&gt;if(LPIT_GetIntervalMsAfterRun(u64PitLastCount, &amp;amp;u16DelayMs))&lt;BR /&gt; {&lt;BR /&gt; STMR_AddTickCount(u16DelayMs);&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; SOFT_TRAP();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;INT_SYS_EnableIRQGlobal();&lt;/P&gt;&lt;P&gt;//&lt;SPAN&gt;Feed watchdog once&lt;/SPAN&gt;&lt;BR /&gt; FeedWdgOneTime();&lt;/P&gt;&lt;P&gt;INT_SYS_DisableIRQGlobal();&lt;/P&gt;&lt;P&gt;u64PitLastCount = LPIT_GetUsCountBeforeRun();&lt;/P&gt;&lt;P&gt;emResult = emResult || FLASH_DRV_ProgramCheck(&amp;amp;flashSSDConfig, ADDR_DFLASH_BACKUP_ADDR + u16AddrInSec, u16Len, pu8Data, &amp;amp;u32FailAddr, 1u);&lt;/P&gt;&lt;P&gt;bResult = bResult &amp;amp;&amp;amp; DFA_CheckProgram(ADDR_DFLASH_BACKUP_ADDR + u16AddrInSec, pu8Data, u16Len);&lt;/P&gt;&lt;P&gt;if(emType == WR_DFLASH_PAR_COEF)&lt;BR /&gt; {&lt;BR /&gt; if((DFLASH_BYTE_LENGTH_BYTE % WR_DFLASH_BUF_SIZE) != 0)&lt;BR /&gt; {&lt;BR /&gt; u16Block = DFLASH_BYTE_LENGTH_BYTE / WR_DFLASH_BUF_SIZE + 1;&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; u16Block = DFLASH_BYTE_LENGTH_BYTE / WR_DFLASH_BUF_SIZE;&lt;BR /&gt; }&lt;BR /&gt; for(i = 0; i &amp;lt; u16Block; i++)&lt;BR /&gt; {&lt;BR /&gt; DFA_FlashToRam(ADDR_DFLASH_ADDR + DFLASH_POS_BYTE_START_INSEC + i * WR_DFLASH_BUF_SIZE, au8WrBuf, WR_DFLASH_BUF_SIZE);&lt;/P&gt;&lt;P&gt;emResult = emResult || FLASH_DRV_Program(&amp;amp;flashSSDConfig, ADDR_DFLASH_BACKUP_ADDR + DFLASH_POS_BYTE_START_INSEC + i * WR_DFLASH_BUF_SIZE, WR_DFLASH_BUF_SIZE, au8WrBuf);&lt;/P&gt;&lt;P&gt;emResult = emResult || FLASH_DRV_ProgramCheck(&amp;amp;flashSSDConfig, ADDR_DFLASH_BACKUP_ADDR + DFLASH_POS_BYTE_START_INSEC + i * WR_DFLASH_BUF_SIZE, WR_DFLASH_BUF_SIZE, au8WrBuf, &amp;amp;u32FailAddr, 1u);&lt;/P&gt;&lt;P&gt;bResult = bResult &amp;amp;&amp;amp; DFA_CheckProgram(ADDR_DFLASH_BACKUP_ADDR + DFLASH_POS_BYTE_START_INSEC + i * WR_DFLASH_BUF_SIZE, au8WrBuf, WR_DFLASH_BUF_SIZE);&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; else if(emType == WR_DFLASH_PAR_BYTE)&lt;BR /&gt; {&lt;BR /&gt; if((DFLASH_BYTE_LENGTH_COEF % WR_DFLASH_BUF_SIZE) != 0)&lt;BR /&gt; {&lt;BR /&gt; u16Block = DFLASH_BYTE_LENGTH_COEF / WR_DFLASH_BUF_SIZE + 1;&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; u16Block = DFLASH_BYTE_LENGTH_COEF / WR_DFLASH_BUF_SIZE;&lt;BR /&gt; }&lt;BR /&gt; for(i = 0; i &amp;lt; u16Block; i++)&lt;BR /&gt; {&lt;BR /&gt; DFA_FlashToRam(ADDR_DFLASH_ADDR + DFLASH_POS_COEF_START_INSEC + i * WR_DFLASH_BUF_SIZE, au8WrBuf, WR_DFLASH_BUF_SIZE);&lt;/P&gt;&lt;P&gt;emResult = emResult || FLASH_DRV_Program(&amp;amp;flashSSDConfig, ADDR_DFLASH_BACKUP_ADDR + DFLASH_POS_COEF_START_INSEC + i * WR_DFLASH_BUF_SIZE, WR_DFLASH_BUF_SIZE, au8WrBuf);&lt;/P&gt;&lt;P&gt;emResult = emResult || FLASH_DRV_ProgramCheck(&amp;amp;flashSSDConfig, ADDR_DFLASH_BACKUP_ADDR + DFLASH_POS_COEF_START_INSEC + i * WR_DFLASH_BUF_SIZE, WR_DFLASH_BUF_SIZE, au8WrBuf, &amp;amp;u32FailAddr, 1u);&lt;/P&gt;&lt;P&gt;bResult = bResult &amp;amp;&amp;amp; DFA_CheckProgram(ADDR_DFLASH_BACKUP_ADDR + DFLASH_POS_COEF_START_INSEC + i * WR_DFLASH_BUF_SIZE, au8WrBuf, WR_DFLASH_BUF_SIZE);&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;if(LPIT_GetIntervalMsAfterRun(u64PitLastCount, &amp;amp;u16DelayMs))&lt;BR /&gt; {&lt;BR /&gt; STMR_AddTickCount(u16DelayMs);&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; SOFT_TRAP();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;INT_SYS_EnableIRQGlobal();&lt;/P&gt;&lt;P&gt;//&lt;SPAN&gt;Feed watchdog once&lt;/SPAN&gt;&lt;BR /&gt; FeedWdgOneTime();&lt;/P&gt;&lt;P&gt;INT_SYS_DisableIRQGlobal();&lt;/P&gt;&lt;P&gt;if((emResult != STATUS_SUCCESS) || (bResult == FALSE))&lt;BR /&gt; {&lt;BR /&gt; INT_SYS_EnableIRQGlobal();&lt;/P&gt;&lt;P&gt;return FALSE;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;u64PitLastCount = LPIT_GetUsCountBeforeRun();&lt;/P&gt;&lt;P&gt;//写writing begin&lt;BR /&gt; (void)EA_EeeReadU16Data(PAR_EEE_FLAG_DFLASH_DONE, &amp;amp;u16DFlashFlag);&lt;/P&gt;&lt;P&gt;u16DFlashFlag = (u16DFlashFlag &amp;amp; ~(UINT16)(EM_FLASH_STATUS_BLANK2 &amp;lt;&amp;lt; (emSec * 2))) | (EM_FLASH_STATUS_WRITING &amp;lt;&amp;lt; (emSec * 2));&lt;/P&gt;&lt;P&gt;(void)EA_EeeWriteU16Data(PAR_EEE_FLAG_DFLASH_DONE, u16DFlashFlag);&lt;/P&gt;&lt;P&gt;//写writing end&lt;/P&gt;&lt;P&gt;emResult = FLASH_DRV_EraseSector(&amp;amp;flashSSDConfig, ADDR_DFLASH_ADDR + emSec * FEATURE_FLS_DF_BLOCK_SECTOR_SIZE, FEATURE_FLS_DF_BLOCK_SECTOR_SIZE);&lt;/P&gt;&lt;P&gt;emResult = emResult || FLASH_DRV_VerifySection(&amp;amp;flashSSDConfig, ADDR_DFLASH_ADDR + emSec * FEATURE_FLS_DF_BLOCK_SECTOR_SIZE, FEATURE_FLS_DF_BLOCK_SECTOR_SIZE / FTFx_PHRASE_SIZE, 1u);&lt;/P&gt;&lt;P&gt;bResult = bResult &amp;amp;&amp;amp; DFA_WrFlashFromBackup(ADDR_DFLASH_ADDR + emSec * FEATURE_FLS_DF_BLOCK_SECTOR_SIZE, FEATURE_FLS_DF_BLOCK_SECTOR_SIZE / 2, 0);&lt;/P&gt;&lt;P&gt;if(LPIT_GetIntervalMsAfterRun(u64PitLastCount, &amp;amp;u16DelayMs))&lt;BR /&gt; {&lt;BR /&gt; STMR_AddTickCount(u16DelayMs);&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; SOFT_TRAP();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;INT_SYS_EnableIRQGlobal();&lt;/P&gt;&lt;P&gt;//&lt;SPAN&gt;Feed watchdog once&lt;/SPAN&gt;&lt;BR /&gt; FeedWdgOneTime();&lt;/P&gt;&lt;P&gt;INT_SYS_DisableIRQGlobal();&lt;/P&gt;&lt;P&gt;u64PitLastCount = LPIT_GetUsCountBeforeRun();&lt;/P&gt;&lt;P&gt;bResult = bResult &amp;amp;&amp;amp; DFA_WrFlashFromBackup(ADDR_DFLASH_ADDR + emSec * FEATURE_FLS_DF_BLOCK_SECTOR_SIZE, FEATURE_FLS_DF_BLOCK_SECTOR_SIZE / 2, FEATURE_FLS_DF_BLOCK_SECTOR_SIZE / 2);&lt;/P&gt;&lt;P&gt;if(LPIT_GetIntervalMsAfterRun(u64PitLastCount, &amp;amp;u16DelayMs))&lt;BR /&gt; {&lt;BR /&gt; STMR_AddTickCount(u16DelayMs);&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; SOFT_TRAP();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;INT_SYS_EnableIRQGlobal();&lt;/P&gt;&lt;P&gt;//&lt;SPAN&gt;Feed watchdog once&lt;/SPAN&gt;&lt;BR /&gt; FeedWdgOneTime();&lt;/P&gt;&lt;P&gt;INT_SYS_DisableIRQGlobal();&lt;/P&gt;&lt;P&gt;if((emResult != STATUS_SUCCESS) || (bResult == FALSE))&lt;BR /&gt; {&lt;BR /&gt; INT_SYS_EnableIRQGlobal();&lt;/P&gt;&lt;P&gt;return FALSE;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;u64PitLastCount = LPIT_GetUsCountBeforeRun();&lt;/P&gt;&lt;P&gt;//写done begin&lt;BR /&gt; (void)EA_EeeReadU16Data(PAR_EEE_FLAG_DFLASH_DONE, &amp;amp;u16DFlashFlag);&lt;/P&gt;&lt;P&gt;u16DFlashFlag = (u16DFlashFlag &amp;amp; ~(UINT16)(EM_FLASH_STATUS_BLANK2 &amp;lt;&amp;lt; (emSec * 2))) | (EM_FLASH_STATUS_DONE &amp;lt;&amp;lt; (emSec * 2)) ;&lt;/P&gt;&lt;P&gt;(void)EA_EeeWriteU16Data(PAR_EEE_FLAG_DFLASH_DONE, u16DFlashFlag);&lt;BR /&gt; //写done end&lt;/P&gt;&lt;P&gt;emResult = emResult || FLASH_DRV_EraseSector(&amp;amp;flashSSDConfig, ADDR_DFLASH_BACKUP_ADDR, FEATURE_FLS_DF_BLOCK_SECTOR_SIZE);&lt;/P&gt;&lt;P&gt;emResult = emResult || FLASH_DRV_VerifySection(&amp;amp;flashSSDConfig, ADDR_DFLASH_BACKUP_ADDR, FEATURE_FLS_DF_BLOCK_SECTOR_SIZE / FTFx_PHRASE_SIZE, 1u);&lt;/P&gt;&lt;P&gt;if(emResult != STATUS_SUCCESS)&lt;BR /&gt; {&lt;BR /&gt; bResult = FALSE;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;if(LPIT_GetIntervalMsAfterRun(u64PitLastCount, &amp;amp;u16DelayMs))&lt;BR /&gt; {&lt;BR /&gt; STMR_AddTickCount(u16DelayMs);&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; SOFT_TRAP();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;INT_SYS_EnableIRQGlobal();&lt;/P&gt;&lt;P&gt;return (bResult);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't point out where&amp;nbsp; the software will reset.&lt;/P&gt;&lt;P&gt;sometimes it happened in the code "INT_SYS_EnableIRQGlobal()", sometimes in the codes of "FeedWdgOneTime()".&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, 21 Apr 2020 03:08:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034270#M6563</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2020-04-21T03:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRtos problems</title>
      <link>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034271#M6564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Alexis,&lt;/P&gt;&lt;P&gt;IF I set the heap and stack as you pointed , the sw can run at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 09:25:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034271#M6564</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2020-04-22T09:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRtos problems</title>
      <link>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034272#M6565</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 download the code and trying to run it I found many errors that could not be possible to debug it. But for your explanations, I think this could be due to the WDOG, could you check the SSRS register at the start of your code to see what is the reset source?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2020 15:36:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034272#M6565</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-04-27T15:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRtos problems</title>
      <link>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034273#M6566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The SSRS register value is 0xC2.&lt;/P&gt;&lt;P&gt;I don't know why.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 06:44:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034273#M6566</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2020-04-28T06:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRtos problems</title>
      <link>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034274#M6567</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;It looks like the voltage is dropping bellow the critical point configurated, have you tried monitoring the MCU voltage?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 22:23:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FreeRtos-problems/m-p/1034274#M6567</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-04-28T22:23:21Z</dc:date>
    </item>
  </channel>
</rss>

