<?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: MK10 series P-Flash question about Read/Write for bootload in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351181#M17366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you send your project to me ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2015 06:43:38 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2015-03-03T06:43:38Z</dc:date>
    <item>
      <title>MK10 series P-Flash question about Read/Write for bootload</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351176#M17361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;I have trouble to writing p-flash area for coding bootload.&lt;/P&gt;&lt;P&gt;Basically my code is depending on AN2295 SW.&lt;/P&gt;&lt;P&gt;I want to write some word like 0x2143. But it is not writing at the address 0x0410. It is written at 0x1FFF8000. Here is SRAM area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My modified code is blow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__attribute__((section(".programbuff"))) Byte buffer[200];&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;FCC0B_STR CommandObj;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;#define FLASH_FlashCommandSequence ((LWord (*)(Byte))&amp;amp;buffer[1])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLASH_ProgramLongWord(destination, *pSource++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CommandObj.regsLong.fccob3210 = destination;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CommandObj.regs.fccob0 = FLASH_PROGRAM_LONGWORD;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CommandObj.regsLong.fccob7654 = data32b;&lt;/P&gt;&lt;P&gt;&amp;nbsp; return FLASH_FlashCommandSequence(PROGRAM_LONGWORD_INDEX);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I set the destination 0x410&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;*pSource is data array pointer.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;But it write at 0x1FFF8000 not 0x0410.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error message is this: No source available for "0x1FFF8000 (0x1FFF8000)() "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is meaning of #define FLASH_FlashCommandSequence&lt;SPAN style="font-size: 13.3333330154419px;"&gt;((LWord (*)(Byte))&amp;amp;buffer[1]) &lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;Why i need this? and What is FCC0B STR CommandObj? I can't understand this meaning.&lt;/P&gt;&lt;P&gt;And my syntax is right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Eunseok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 02:02:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351176#M17361</guid>
      <dc:creator>eunseokjung</dc:creator>
      <dc:date>2015-03-03T02:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 series P-Flash question about Read/Write for bootload</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351177#M17362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jung,&lt;/P&gt;&lt;P&gt;Please check the linker file ,the section".programbuff" is in which segment .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 05:24:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351177#M17362</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-03-03T05:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 series P-Flash question about Read/Write for bootload</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351178#M17363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Programbuff is in&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;m_programbuff (RW) : ORIGIN = 0x1FFF8000, LENGTH = 0x00001000&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Is this the reason for writing in 0x1FFF8000?&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I changed the region &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;m_programbuff (RW) : ORIGIN = 0x020000, LENGTH = 0x00001000.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;But it is not working properly.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;The debug always error when it run #define FLASH_FlashCommandSequence ((LWord (*)(Byte))&amp;amp;buffer[1]) command.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;And what is m_text segment(or session?) What is written&amp;nbsp; in here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 06:04:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351178#M17363</guid>
      <dc:creator>eunseokjung</dc:creator>
      <dc:date>2015-03-03T06:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 series P-Flash question about Read/Write for bootload</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351179#M17364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HIi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which IDE do you use ?&lt;/P&gt;&lt;P&gt;Mainly fcous on the "SECTION " part of Linker file .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'inherit','serif'; color: #3d3d3d;"&gt;------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'inherit','serif'; color: #3d3d3d;"&gt;If this post answers your question, please click the Correct Answer button. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;-----------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;If this post help your question, please click the helpful Answer button. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 06:15:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351179#M17364</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-03-03T06:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 series P-Flash question about Read/Write for bootload</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351180#M17365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using CW10.3 with Multilink Universal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't SECTION part in the Linker file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MEMORY {&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x000001BC&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX) : ORIGIN = 0x00000410, LENGTH = 0x0001FBF0&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW) : ORIGIN = 0x1FFF9000, LENGTH = 0x00007000&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_data_20000000 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00008000&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_programbuff (RW) : ORIGIN = 0x00020000, LENGTH = 0x00001000&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_cfmprotrom&amp;nbsp; (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code has problem when it runs "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;The debug always error when it run #define FLASH_FlashCommandSequence ((LWord (*)(Byte))&amp;amp;buffer[1])" command.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 06:31:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351180#M17365</guid>
      <dc:creator>eunseokjung</dc:creator>
      <dc:date>2015-03-03T06:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 series P-Flash question about Read/Write for bootload</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351181#M17366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you send your project to me ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 06:43:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351181#M17366</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-03-03T06:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 series P-Flash question about Read/Write for bootload</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351182#M17367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I uploaded my project file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 06:49:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351182#M17367</guid>
      <dc:creator>eunseokjung</dc:creator>
      <dc:date>2015-03-03T06:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 series P-Flash question about Read/Write for bootload</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351183#M17368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，&lt;/P&gt;&lt;P&gt;This is this the SECTION :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/50960iBB6441EC836195B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from this part , you can find the place of your&amp;nbsp; ".programbuff"&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;m_programbuff (RW) : ORIGIN = 0x00020000, LENGTH = 0x00001000&lt;/P&gt;&lt;P&gt;.........&lt;/P&gt;&lt;P&gt;&amp;nbsp; .m_programbuff : AT(___m_programbuff_ROMStart)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ___m_programbuff_RAMStart = .;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *(.m_programbuff) /* This is an User defined section */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ___m_programbuff_RAMEnd = .;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;/P&gt;&lt;P&gt;&amp;nbsp; } &amp;gt; m_programbuff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 07:33:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351183#M17368</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-03-03T07:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 series P-Flash question about Read/Write for bootload</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351184#M17369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I paste your code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; .m_programbuff : AT(___m_programbuff_ROMStart)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; {&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ___m_programbuff_RAMStart = .;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *(.m_programbuff) /* This is an User defined section */&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ___m_programbuff_RAMEnd = .;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; } &amp;gt; m_programbuff&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;in the section.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But the result is same. Error is same. It is not working....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 08:18:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351184#M17369</guid>
      <dc:creator>eunseokjung</dc:creator>
      <dc:date>2015-03-03T08:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 series P-Flash question about Read/Write for bootload</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351185#M17370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry you misunderstand me .&lt;/P&gt;&lt;P&gt;I just tell you how to check the Linker file,&amp;nbsp; to find the&amp;nbsp; setion ".programbuff" in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now , i just find there is a error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; change this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; __attribute__((section(".programbuff"))) Byte buffer[200];&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; __attribute__((section(".m_programbuff"))) Byte buffer[200];&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;And if still have question , please tell me what'e the problem , and what's your aim.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 08:31:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351185#M17370</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-03-03T08:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 series P-Flash question about Read/Write for bootload</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351186#M17371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My problem is occurred when i run "#define FLASH_FlashCommandSequence ((LWord (*)(Byte))&amp;amp;buffer[0])" . It makes error.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I want write some value at 0x00020000.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But this code can't write at 0x00020000.&lt;SPAN style="font-size: 13.3333330154419px;"&gt;This code write value at 0x1FFF9040 instead of 0x00020000.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How can i write value at 0x00020000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you~&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 08:55:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351186#M17371</guid>
      <dc:creator>eunseokjung</dc:creator>
      <dc:date>2015-03-03T08:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 series P-Flash question about Read/Write for bootload</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351187#M17372</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 think the 0x1fff9040 is the address of your write_buffer[i] , please check.&lt;/P&gt;&lt;P&gt;And it seems that you have not erase the flash you want to write.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if your aim is simple write data to flash , you can not use the bootlaoder , can simple configurate the linker file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 11:16:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351187#M17372</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-03-03T11:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 series P-Flash question about Read/Write for bootload</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351188#M17373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eunseok Jung,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alice Yang is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; In your code, you do the following definition:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;for(i = 0;i&amp;lt;10; i++)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;{&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt; &lt;/TD&gt;&lt;TD&gt;write_buffer[i] = 0x2143;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;//#if BOOTLOADER_CRC_ENABLE == 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;//&amp;nbsp; CRC_AddByte(write_buffer[i]);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;//#endif &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;}&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;That's why you see your 0x2143 in the RAM address, because you define it in the RAM.&lt;/P&gt;&lt;P&gt;Before you do flash writing , you should erase it at first, otherwise , your flash operation won't be successed.&lt;/P&gt;&lt;P&gt;Actually, in AN2295, from address 0x00000410, it is the bootloader code.&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/50978iF9F36F72BFA69FFD/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;/P&gt;&lt;P&gt;I don't know, why you write the word 0x2143 in the bootloader code area.&lt;/P&gt;&lt;P&gt;If you want to realize the function of uart bootloader, you need to modify your application code address, not the bootloader code address.&lt;/P&gt;&lt;P&gt;Please read our &lt;A href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2295.pdf"&gt;AN2295.pdf&lt;/A&gt; at first, this application write how to realize the uart bootloader in details, please read Chapter 7 carefully.&lt;/P&gt;&lt;P&gt;If you stll have quesiton, please let us know.&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 06:44:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351188#M17373</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2015-03-04T06:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 series P-Flash question about Read/Write for bootload</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351189#M17374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jingjing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason why i want to write at 0x0000410 is just practice for bootload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i ask one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you explain this function? It is from AN2295SW file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LWord FLASH_FlashCommandSequenceStart(Byte index)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; Byte* ptrFccobReg = (Byte*)&amp;amp;FLASH_BASE_PTR-&amp;gt;FCCOB3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Byte* ptrCommandObj = (Byte*)&amp;amp;CommandObj;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* wait till CCIF bit is set */&lt;/P&gt;&lt;P&gt;&amp;nbsp; while(!(FLASH_FSTAT &amp;amp; FLASH_FSTAT_CCIF_MASK)){};&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* clear RDCOLERR &amp;amp; ACCERR &amp;amp; FPVIOL flag in flash status register */&lt;/P&gt;&lt;P&gt;&amp;nbsp; FLASH_FSTAT = FLASH_FSTAT_ACCERR_MASK | FLASH_FSTAT_FPVIOL_MASK | FLASH_FSTAT_RDCOLERR_MASK; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* load FCCOB registers */ &lt;/P&gt;&lt;P&gt;&amp;nbsp; while(index--)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *ptrFccobReg++ = *ptrCommandObj++;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; //&amp;nbsp; launch a command&lt;/P&gt;&lt;P&gt;&amp;nbsp; FLASH_FSTAT |= FLASH_FSTAT_CCIF_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp; //&amp;nbsp; waiting for the finishing of the command&lt;/P&gt;&lt;P&gt;&amp;nbsp; while(!(FLASH_FSTAT &amp;amp; FLASH_FSTAT_CCIF_MASK)){};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; /* Check error bits */&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Get flash status register value */&lt;/P&gt;&lt;P&gt;&amp;nbsp; return (FLASH_FSTAT &amp;amp; (FLASH_FSTAT_ACCERR_MASK | FLASH_FSTAT_FPVIOL_MASK | FLASH_FSTAT_MGSTAT0_MASK)); &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more question.&lt;/P&gt;&lt;P&gt;In AN2295SW file, they defined some indexes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define ERASE_BLOCK_INDEX&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;#define PROGRAM_LONGWORD_INDEX&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;#define PROGRAM_PHRASE_INDEX&amp;nbsp;&amp;nbsp;&amp;nbsp; 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why ERASE BLOCK INDEX is 4 and why LONGWORD is 8 and phrase is 12?&lt;/P&gt;&lt;P&gt;Could you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Eunseok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 06:55:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351189#M17374</guid>
      <dc:creator>eunseokjung</dc:creator>
      <dc:date>2015-03-04T06:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Re: MK10 series P-Flash question about Read/Write for bootload</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351190#M17375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eunseok Jung,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLASH_FlashCommandSequenceStart function is used for the flash command operation sequence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; As you know, every flash operation is using the according command to realize the flash operation function by write the FCCOBx register.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The index is means how many FCCOB register to control, the base address is defined as FLASH_BASE_PTR-&amp;gt;FCCOB3:Just FCCOB3,&lt;/P&gt;&lt;P&gt;&amp;nbsp; From our flash register table, you will know FCCOB3 is the base address of FCCOBn, just like the following:&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/51003iD182A4B30EC655D0/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;/P&gt;&lt;P&gt;#define ERASE_BLOCK_INDEX&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;#define PROGRAM_LONGWORD_INDEX&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;#define PROGRAM_PHRASE_INDEX&amp;nbsp;&amp;nbsp;&amp;nbsp; 12&lt;/P&gt;&lt;P&gt;The index number should be the number of FCCOB registers which need to control.&lt;/P&gt;&lt;P&gt;（1）ERASE_BLOCK_INDEX 4&amp;nbsp; means Erase block is just control 4 FCCOB registers:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/51006i234B38EC57585C98/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;（2） PROGRAM_LONGWORD_INDEX 8 means&amp;nbsp; this command should control 8 FCCOB registers:&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/51004i1FF9F10D0304393A/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;/P&gt;&lt;P&gt;(3) PORGRAM_PHASE_INDEX 12&lt;/P&gt;&lt;P&gt;I think it should be the Progarm check command, this command should control 12 FCCOB registers:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/51005iA3A78D65DBD55350/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please find more detals from our K10 reference manual, chapter 29 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 07:33:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-series-P-Flash-question-about-Read-Write-for-bootload/m-p/351190#M17375</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2015-03-04T07:33:07Z</dc:date>
    </item>
  </channel>
</rss>

