<?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: Is it possible to load a user application onto the KL27Z with the ROM bootloader using SPI from a Raspberry Pi? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-it-possible-to-load-a-user-application-onto-the-KL27Z-with/m-p/441863#M25903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now sorted my problem by writing a Python script on the Pi which uploads an application on to the MCU over SPI. It turned out to not be as hard as I thought it might once I had read over the manual thoroughly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for all your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Toby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Nov 2015 17:39:54 GMT</pubDate>
    <dc:creator>tobyfrankau</dc:creator>
    <dc:date>2015-11-04T17:39:54Z</dc:date>
    <item>
      <title>Is it possible to load a user application onto the KL27Z with the ROM bootloader using SPI from a Raspberry Pi?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-it-possible-to-load-a-user-application-onto-the-KL27Z-with/m-p/441859#M25899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can use blhost to upload my application onto the KL27Z over USB but I want to be able to do it over SPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the blhost user &lt;SPAN style="font-size: 10pt;"&gt;guide&lt;/SPAN&gt; says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P data-canvas-width="689.1984" style="font-family: sans-serif;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;"The blhost and Kinetis Updater applications do not support firmware download over I2C and SPI &lt;/SPAN&gt;&lt;/P&gt;&lt;P data-canvas-width="34.70720000000001" style="font-family: sans-serif;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;peripherals. Special hardware and host tools are required to support I2C and SPI firmware down load."&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-canvas-width="34.70720000000001" style="font-family: sans-serif;"&gt;&lt;/P&gt;&lt;P data-canvas-width="34.70720000000001" style="font-family: sans-serif;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;What special hardware and host tools are required to support SPI download? How do I do it?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 15:50:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-it-possible-to-load-a-user-application-onto-the-KL27Z-with/m-p/441859#M25899</guid>
      <dc:creator>tobyfrankau</dc:creator>
      <dc:date>2015-10-29T15:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load a user application onto the KL27Z with the ROM bootloader using SPI from a Raspberry Pi?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-it-possible-to-load-a-user-application-onto-the-KL27Z-with/m-p/441860#M25900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Toby Frankau:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually in the &lt;A href="http://cache.freescale.com/files/microcontrollers/doc/user_guide/KBLHOSTUG.pdf"&gt;&lt;STRONG&gt;blhost_User's_Guide&lt;/STRONG&gt;&lt;/A&gt; you can find &lt;STRONG&gt;Appendix C BusPal&lt;/STRONG&gt;. It basically describes that BusPal is an embedded software tool which serves as a translator or "bridge" between the &lt;STRONG&gt;blhost&lt;/STRONG&gt; PC application and the target Kinetis device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently the software is available for the&lt;STRONG&gt; FRDM-KL25Z&lt;/STRONG&gt; and &lt;STRONG&gt;TWR-KV46F150M&lt;/STRONG&gt; platforms. The source code is delivered together with the &lt;A href="http://www.freescale.com/products/arm-processors/kinetis-cortex-m/kinetis-symbols-footprints-and-models/kinetis-bootloader:KBOOT?tid=vanKBOOT"&gt;&lt;STRONG&gt;KBOOT&lt;/STRONG&gt;&lt;/A&gt; installation in the path [&lt;STRONG&gt;C:\Freescale\FSL_Kinetis_Bootloader_1_2_0\apps\bus_pal&lt;/STRONG&gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would need to port such code to the Raspberry Pi platform so you are able to load applications to the KL27 via SPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not comfortable with the migration or you want to avoid the use of &lt;STRONG&gt;blhost&lt;/STRONG&gt; completely, then you can create a custom SPI bootloader using part of the KL27 Flash memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps to clarify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;BR /&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Nov 2015 05:28:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-it-possible-to-load-a-user-application-onto-the-KL27Z-with/m-p/441860#M25900</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-11-01T05:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load a user application onto the KL27Z with the ROM bootloader using SPI from a Raspberry Pi?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-it-possible-to-load-a-user-application-onto-the-KL27Z-with/m-p/441861#M25901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I correct in thinking that BusPal requires a UART connection? Is there any way of uploading an application to the board just using an SPI connection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Toby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 10:23:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-it-possible-to-load-a-user-application-onto-the-KL27Z-with/m-p/441861#M25901</guid>
      <dc:creator>tobyfrankau</dc:creator>
      <dc:date>2015-11-02T10:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load a user application onto the KL27Z with the ROM bootloader using SPI from a Raspberry Pi?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-it-possible-to-load-a-user-application-onto-the-KL27Z-with/m-p/441862#M25902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Toby:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is correct, BusPal requires UART. It receives commands via UART from the PC tool and then replicates the commands but using I2C or SPI for the target device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure it may be possible to upload an application using only SPI, but that is not implemented. You would need to replicate the blhost software in the "Master" device (e.g. the Raspberry). This could be a very hard task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead if you strictly require using only SPI, then it would be easier to develop your own custom SPI bootloader using part of the Flash memory and bypass the ROM bootloader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 22:55:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-it-possible-to-load-a-user-application-onto-the-KL27Z-with/m-p/441862#M25902</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-11-03T22:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load a user application onto the KL27Z with the ROM bootloader using SPI from a Raspberry Pi?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-it-possible-to-load-a-user-application-onto-the-KL27Z-with/m-p/441863#M25903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now sorted my problem by writing a Python script on the Pi which uploads an application on to the MCU over SPI. It turned out to not be as hard as I thought it might once I had read over the manual thoroughly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for all your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Toby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 17:39:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-it-possible-to-load-a-user-application-onto-the-KL27Z-with/m-p/441863#M25903</guid>
      <dc:creator>tobyfrankau</dc:creator>
      <dc:date>2015-11-04T17:39:54Z</dc:date>
    </item>
  </channel>
</rss>

