<?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>S32K中的主题 Re: PROGRAMMING THE S32K FLASH</title>
    <link>https://community.nxp.com/t5/S32K/PROGRAMMING-THE-S32K-FLASH/m-p/665555#M635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexandre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing the same issue of board getting reset as you mentioned above when executing FTFC.&lt;/P&gt;&lt;P&gt;As you mentioned it works when putting breakpoints but doesn't without a breakpoint.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share how you were able to solve this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Jun 2019 14:44:25 GMT</pubDate>
    <dc:creator>vikasmalik22</dc:creator>
    <dc:date>2019-06-22T14:44:25Z</dc:date>
    <item>
      <title>PROGRAMMING THE S32K FLASH</title>
      <link>https://community.nxp.com/t5/S32K/PROGRAMMING-THE-S32K-FLASH/m-p/665549#M629</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'm planning to implement a boot loader on the&amp;nbsp;S32K144EVB which is going to be used as basis for the production bootldr.&lt;/P&gt;&lt;P&gt;I'm planning to start my boot loader at location 0 and the APP at the&amp;nbsp;1ST 64Kbyte boundary. which will be accomplished by writing the offset in the VTOR register and then jump to&amp;nbsp;0x10004 after the APP image has been flashed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My QUESTION IS:&lt;/P&gt;&lt;P&gt;Can I&amp;nbsp;issue the ERASE and PROGRAM command from the boot loader residing in the flash section starting at 0x00 to 0xffff targeting the application locations(0x10000-- whatever)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the answers is yes then what are the sections of the flash that this could be done?&lt;/P&gt;&lt;P&gt;and what is the following paragraph actually stating(page 714 ref man)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;While executing from a particular PFLASH read partition , FTFC commands (except&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;parallel boot) cannot run over that PFLASH read partition.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Knowing that s32k144 has only one partition of 512k.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style=": ; font-size: x-large; font-family: HelveticaLTStd-Bold;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Now is parallel boot is a normal boot the one that takes place every time the board is powered up?&lt;/P&gt;&lt;P&gt;This a bit confusing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Koorosh Hajiani&lt;/P&gt;&lt;P&gt;248-778-6396&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 21:49:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PROGRAMMING-THE-S32K-FLASH/m-p/665549#M629</guid>
      <dc:creator>hajianik</dc:creator>
      <dc:date>2017-06-19T21:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROGRAMMING THE S32K FLASH</title>
      <link>https://community.nxp.com/t5/S32K/PROGRAMMING-THE-S32K-FLASH/m-p/665550#M630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can't erase/program PFLASH when the code is running from PFLASH. Take a look at:&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/24163i778C8F550D20B96A/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;I shared simple example here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-332754"&gt;Example S32K144 Flash RW simple&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It shows how to force some code to RAM memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parallel boot mode is kind of secure boot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24203i8CD335DEEAA11104/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24245i8CF7627671D31789/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 11:23:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PROGRAMMING-THE-S32K-FLASH/m-p/665550#M630</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-06-27T11:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROGRAMMING THE S32K FLASH</title>
      <link>https://community.nxp.com/t5/S32K/PROGRAMMING-THE-S32K-FLASH/m-p/665551#M631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;Thanks for your reply, It contains very useful information. I also looked the project you provided which is also very helpful.&lt;/P&gt;&lt;P&gt;Just a few questions to make sure I understand every thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;In main.c you have:&lt;/P&gt;&lt;P&gt;__attribute__ ((section(".MyRamCode"))) // place the code below into .MyRamCode section&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This will place this function at the load address of "MyRamCode" section&amp;nbsp;which is at "m_my_flash" section which is at &lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;0x0007FE00 according to the linker file, and then use memcpy to move it to RAM at m_my_ram(0x20006E00).&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;which is fine.&lt;/P&gt;&lt;P&gt;I was wondering however if we could use the attribute to place this function in the .data section so that the start up code do the copying,&lt;/P&gt;&lt;P&gt;Is there a reason not to do that?&lt;/P&gt;&lt;P&gt;I have a few more questions on RWW part of the flash that will ask later.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Koorosh Hajiani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 15:18:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PROGRAMMING-THE-S32K-FLASH/m-p/665551#M631</guid>
      <dc:creator>hajianik</dc:creator>
      <dc:date>2017-06-27T15:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: PROGRAMMING THE S32K FLASH</title>
      <link>https://community.nxp.com/t5/S32K/PROGRAMMING-THE-S32K-FLASH/m-p/665552#M632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just talked with S32DS expert to be sure... You can use pre-defined .code_ram section. Startup files then contains this piece of code which copies the code to RAM (it's in startup.c):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Copy functions from ROM to RAM */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (code_rom_end != code_rom)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *code_ram = *code_rom;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; code_ram++;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; code_rom++;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use own section (not .code_ram), you must copy the code by yourself (for example by memcpy) or you must re-write the startup code, so it copies also your new section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 13:58:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PROGRAMMING-THE-S32K-FLASH/m-p/665552#M632</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-06-28T13:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROGRAMMING THE S32K FLASH</title>
      <link>https://community.nxp.com/t5/S32K/PROGRAMMING-THE-S32K-FLASH/m-p/665553#M633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so,&amp;nbsp;basically just do this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: small;"&gt;&lt;STRONG&gt;__attribute__&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; ((section(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;".code_ram"&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;))) &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// place the code below into .code_ram section&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: small;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; &lt;STRONG&gt;EraseAndProgram&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;is that correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;Also something unrelated to this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;If my Program flash size is&amp;nbsp;say 1M&amp;nbsp;or 2M then according to the reference manual there are more than 1 bank in the flash and if I'm not mistaken I can run ERASE/PROGRAM command from bank1 to modify bank2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;Is that correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 18:38:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PROGRAMMING-THE-S32K-FLASH/m-p/665553#M633</guid>
      <dc:creator>hajianik</dc:creator>
      <dc:date>2017-06-28T18:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: PROGRAMMING THE S32K FLASH</title>
      <link>https://community.nxp.com/t5/S32K/PROGRAMMING-THE-S32K-FLASH/m-p/665554#M634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;Thanks for all, this topic helps me a lot.&lt;BR /&gt;In spite of that, i have always some problems :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I try to access to the flash with indications that you describe above.&lt;BR /&gt;I place the code in .code_ram section, (I work with the SDK version 1.0 and S32DS 2.0).&lt;BR /&gt;But when i send instructions to the FTFC, the board reset.&lt;BR /&gt;More surprising, the process works if i execute the code step by step in debug mode.&lt;/P&gt;&lt;P&gt;Indeed i need to place a breakpoint on the last 'while instruction' for each sequence.&lt;BR /&gt;If i try to execute this last while, without breakpoint, the board restart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In second time, I try to use the CSEC module to generate a random number and i have some problems.&lt;BR /&gt;The CSEC module works on the S32K144-Q100 board but doesn't work on the FRDMDK-144-Q100 board.&lt;BR /&gt;The difference between these two boards seems to be the chip reference.&lt;BR /&gt;The S32K144-Q100 has the PS32K144UAVLL and the FRDMPK144-Q100 has the PS32K144HFVLL.&lt;BR /&gt;I don't know why the freescale version doesn't work.&lt;BR /&gt;Furthermore, the SDK if define only for the PS32K144HFVLL version and not for PS32K144UAVLL.&lt;BR /&gt;So, to compile on the NXP board, we define the MCU as PS32K144HFVLL but that works, so i continue like this.&lt;/P&gt;&lt;P&gt;Can you confirm that the SDK works the same for these two references? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alexandre HOCHART.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 15:08:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PROGRAMMING-THE-S32K-FLASH/m-p/665554#M634</guid>
      <dc:creator>alexandrehochar</dc:creator>
      <dc:date>2017-09-14T15:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: PROGRAMMING THE S32K FLASH</title>
      <link>https://community.nxp.com/t5/S32K/PROGRAMMING-THE-S32K-FLASH/m-p/665555#M635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexandre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing the same issue of board getting reset as you mentioned above when executing FTFC.&lt;/P&gt;&lt;P&gt;As you mentioned it works when putting breakpoints but doesn't without a breakpoint.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share how you were able to solve this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jun 2019 14:44:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PROGRAMMING-THE-S32K-FLASH/m-p/665555#M635</guid>
      <dc:creator>vikasmalik22</dc:creator>
      <dc:date>2019-06-22T14:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROGRAMMING THE S32K FLASH</title>
      <link>https://community.nxp.com/t5/S32K/PROGRAMMING-THE-S32K-FLASH/m-p/665556#M636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm apologize i can't remember how i solved it.&lt;BR /&gt;But i can give you my FTFC command function.&lt;/P&gt;&lt;P&gt;I also remember something about HSRUN clock mode limitation with the FTFC module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Initialization:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FLASH_DRV_Init(&amp;amp;flash1_InitConfig0, &amp;amp;internalFlash_flashSSDConfig);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;if (internalFlash_flashSSDConfig.EEESize == 0) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLASH_DRV_DEFlashPartition(&amp;amp;internalFlash_flashSSDConfig, 0x2, 0x4, 0x3, true, true);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CSEC_DRV_Init(&amp;amp;csec1_State);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CSEC_DRV_InitRNG();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Prototype:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;void executeFlashCommand(uint8_t a_cmd, uint32_t a_addr, uint8_t *a_pageBuffer) __attribute__ ((section(".code_ram")));&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Function:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;void executeFlashCommand(uint8_t a_cmd, uint32_t a_addr, uint8_t *a_pageBuffer) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;uint8_t v_AddrVec[3];&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;v_AddrVec[0] = (a_addr &amp;amp; 0x00FF0000) &amp;gt;&amp;gt; 16;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;v_AddrVec[1] = (a_addr &amp;amp; 0x0000FF00) &amp;gt;&amp;gt; 8;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;v_AddrVec[2] = (a_addr &amp;amp; 0x000000FF) &amp;gt;&amp;gt; 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;INT_SYS_DisableIRQGlobal();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;while ((FTFC-&amp;gt;FSTAT &amp;amp; FTFC_FSTAT_CCIF_MASK) == 0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;FTFC-&amp;gt;FSTAT = FTFC_FSTAT_ACCERR_MASK | FTFC_FSTAT_FPVIOL_MASK;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;FTFC-&amp;gt;FCCOB[3] = a_cmd; //Program Phrase command (0x07)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;FTFC-&amp;gt;FCCOB[2] = v_AddrVec[0]; //Flash address [23:16]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;FTFC-&amp;gt;FCCOB[1] = v_AddrVec[1]; //Flash address [15:08]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;FTFC-&amp;gt;FCCOB[0] = v_AddrVec[2]; //Flash address [7:0]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (a_pageBuffer != NULL) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FTFC-&amp;gt;FCCOB[7] = a_pageBuffer[0]; //data&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FTFC-&amp;gt;FCCOB[6] = a_pageBuffer[1];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FTFC-&amp;gt;FCCOB[5] = a_pageBuffer[2];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FTFC-&amp;gt;FCCOB[4] = a_pageBuffer[3];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FTFC-&amp;gt;FCCOB[11] = a_pageBuffer[4];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FTFC-&amp;gt;FCCOB[10] = a_pageBuffer[5];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FTFC-&amp;gt;FCCOB[9] = a_pageBuffer[6];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FTFC-&amp;gt;FCCOB[8] = a_pageBuffer[7];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;FTFC-&amp;gt;FSTAT = FTFC_FSTAT_CCIF_MASK; //launch command&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;while ((FTFC-&amp;gt;FSTAT &amp;amp; FTFC_FSTAT_CCIF_MASK) == 0); //wait for done&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;INT_SYS_EnableIRQGlobal();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2019 06:57:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PROGRAMMING-THE-S32K-FLASH/m-p/665556#M636</guid>
      <dc:creator>alexandrehochar</dc:creator>
      <dc:date>2019-06-24T06:57:24Z</dc:date>
    </item>
  </channel>
</rss>

