<?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: Porting AN4368 to K70 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-AN4368-to-K70/m-p/193735#M2403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at AN4370SW. It includes functional routines for K70 flash configuration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Sep 2012 22:41:57 GMT</pubDate>
    <dc:creator>PaoloRenzo</dc:creator>
    <dc:date>2012-09-03T22:41:57Z</dc:date>
    <item>
      <title>Porting AN4368 to K70</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-AN4368-to-K70/m-p/193733#M2401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to create a bootloader, for a K70, using the ideas in AN4368.&amp;nbsp; My problem is with the flash driver supplied.&amp;nbsp; In particular the routine 'Flash_ByteProgram".&amp;nbsp; It is returning a 'Flash access error'.&amp;nbsp; In flash_FTFL.h the flash write command is defined as 0x06 using '#define &lt;FONT size="2"&gt;FlashCmd_ProgramLongWord&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x06'.&amp;nbsp; However looking at the K70 reference manual there is no 0x06 command.&amp;nbsp; See section 30.4.10.2.&amp;nbsp; There is a 'Program Phrase' command that writes eight bytes.&amp;nbsp; Is the flash driver supplied with AN4368 incorrect?&amp;nbsp; Is a corrected one available?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I have attached both flash_FTFL.c and flash_FTFL.h that were supplied with AN4368.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2012 11:03:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-AN4368-to-K70/m-p/193733#M2401</guid>
      <dc:creator>mrupp_viatechno</dc:creator>
      <dc:date>2012-09-01T11:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Porting AN4368 to K70</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-AN4368-to-K70/m-p/193734#M2402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't help with the application note code but older code's FLASH driver can be adapted to the devices with FPU by respecting the following points:&lt;/P&gt;&lt;P&gt;- the FLASH granularity (smallest block that can be erased) is 4k rather than 2k&lt;/P&gt;&lt;P&gt;- writes to flash have to be done in 'phrases' of 8 bytes rather than as long words&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The driver changes are quite easy but there can be a bigger impact on the higher layers which may neen adaptation to work with the larger write/erase size restrictions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However not only the Flash is different - the PLL setup needs to be calculated differently since the PLL works internally twices as fast.&lt;/P&gt;&lt;P&gt;If using the DMA controller this is a little different (it has groups that need to be set up correctly to avoid conflicts).&lt;/P&gt;&lt;P&gt;The USB source clock set up is a little different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore you may find that the application note in question requires a more thorough K70 target configuration review before it is completely operation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P,S. I have K70 loaders for UART (S-rec), USB CDC device, USB-MSD device, SD card and Ethernet (FTP, TFT or Web server) but unfortunately not for a USB-stick....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2012 02:47:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-AN4368-to-K70/m-p/193734#M2402</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2012-09-02T02:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Porting AN4368 to K70</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-AN4368-to-K70/m-p/193735#M2403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at AN4370SW. It includes functional routines for K70 flash configuration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 22:41:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-AN4368-to-K70/m-p/193735#M2403</guid>
      <dc:creator>PaoloRenzo</dc:creator>
      <dc:date>2012-09-03T22:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Porting AN4368 to K70</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-AN4368-to-K70/m-p/193736#M2404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using MQX which handles the PLL and DMA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 20:59:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-AN4368-to-K70/m-p/193736#M2404</guid>
      <dc:creator>mrupp_viatechno</dc:creator>
      <dc:date>2012-09-05T20:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Porting AN4368 to K70</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-AN4368-to-K70/m-p/193737#M2405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code in AN4370SW uses the correct Flash command (0x07) but it still has bugs.&amp;nbsp; It only works when the number of data bytes in the S record is&amp;nbsp;an integral number of 'phrases'.&amp;nbsp; The default in CodeWarrior 10.2 does not have this.&amp;nbsp; I needed to change the projects ARM Linker Output so that the 'Max S-Record Length' is 84.&amp;nbsp; It defaults to 80 which results in 9.5 phrases per S record.&amp;nbsp; Also, the address in the S record must be on an 8-byte boundary (not four as tested in the program).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changing the 'Max S-Record Length' to 84 created a file where each record had an integral number of 'phrases' and the address was on 8-byte boundaries.&amp;nbsp; Programming the flash then worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am worried about the future.&amp;nbsp; Specified the 'Max S-Record Length' as 84; but did not specify a minimum. What's to stop CW 10.3 from using 80 regardless of the Max setting.&amp;nbsp; Also I did not see any way to tell the linker to create S records that have addresses on 8-byte boundaries.&amp;nbsp; But this is a problem for another day.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&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;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 21:23:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-AN4368-to-K70/m-p/193737#M2405</guid>
      <dc:creator>mrupp_viatechno</dc:creator>
      <dc:date>2012-09-05T21:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Porting AN4368 to K70</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-AN4368-to-K70/m-p/193738#M2406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Documentation for Kinetis K70 (Graphic LCD 120/150 MHz MCUs) can be found at "&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=K70_120&amp;amp;nodeId=01624698C9DE2DDDB1&amp;amp;fpsp=1&amp;amp;tab=Documentation_Tab"&gt;K70_120 Product Summary Page&lt;/A&gt;", Freescale folks are constantly uploading new resources (like ANs) to help you all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definitely, that page deserves a bookmark &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2012 23:50:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Porting-AN4368-to-K70/m-p/193738#M2406</guid>
      <dc:creator>squadmcu</dc:creator>
      <dc:date>2012-09-09T23:50:50Z</dc:date>
    </item>
  </channel>
</rss>

