<?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>LPC MicrocontrollersのトピックRe: LPC54114 ISP over SPI</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916165#M36596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Senthil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to what you mentioned the error code the LPC returns is correct if you are not sending the correct sector the error 0x7 is INVALID SECTOR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check below image from error.h file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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/91145iA314615E1ADD3230/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;&lt;/P&gt;&lt;P&gt;By any chance, did you enable CRP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jul 2019 22:11:47 GMT</pubDate>
    <dc:creator>FelipeGarcia</dc:creator>
    <dc:date>2019-07-12T22:11:47Z</dc:date>
    <item>
      <title>LPC54114 ISP over SPI</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916157#M36588</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;&lt;/P&gt;&lt;P&gt;How to verify the LPC54114 SPI ISP from the host. I am planning to imx8 as my host.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I've put my LPC54114 in ISP SPI mode by pressing ISP0 and ISP1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Should I need to write a proper c programming to code to send the SPI ISP commands?&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Is there any utility like echo "0xA1" &amp;gt; /dev/spidev0.1 can be used?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - I tried to send echo 0xA1 and the response from LPC is always 0xFF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share the right procedure to verify the ISP over SPI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Senthil&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2019 14:49:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916157#M36588</guid>
      <dc:creator>seku</dc:creator>
      <dc:date>2019-06-28T14:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54114 ISP over SPI</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916158#M36589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Senthil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The LPC will respond correctly to the host if the host is sending the appropriate commands to the LPC54114.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check image below for the process.&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/90287iD269A99F8307EF6F/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;Also, please make sure that you are configuring the SPI correctly on the host side:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SPI Config:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;-Clock should not exceed 2 MHz.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;-SPI SSEL to first clock timing should not be less than 100 us.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;-SPI transfer configuration should be SPI Mode 0 with 8 data bits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition I recommend you to read chapter 4.7 of the &lt;A href="https://www.nxp.com/webapp/sps/download/preDownload.jsp?render=true"&gt;User Manual&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2019 15:34:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916158#M36589</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-07-03T15:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54114 ISP over SPI</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916159#M36590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felipe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the spi utility on the imx8 side and setting the clock speed 2Mhz and mode = 0 and 8 bits, delay=100us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a next step, I am going to probe in the imx8m side to make sure all are configured properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please clarify how this was tested at your end ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2019 15:55:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916159#M36590</guid>
      <dc:creator>seku</dc:creator>
      <dc:date>2019-07-03T15:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54114 ISP over SPI</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916160#M36591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;Hi Felipe,&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;I've connected the probe and make sure that all SPI connections were good between imx8 and LPC. The clock is good (2MHZ), delay 100 and the data sending is '0xA1' to get the version information using my test application.&amp;nbsp;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;root@imx8mmevk:/home# ./spi_test -D /dev/spidev1.0 -s 2000000 -d 100 -p 0xA1 -v&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;spi mode: 0x0&lt;BR /&gt;bits per word: 8&lt;BR /&gt;max speed: 2000000 Hz (2000 KHz)&lt;BR /&gt;TX | 30 78 41 31 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __&amp;nbsp; |0xA1|&lt;BR /&gt;RX | FF FF FF FF __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __&amp;nbsp; |....|&lt;BR /&gt;&lt;A href="mailto:root@imx8mmevk:/home" style="color: #2989c5; text-decoration: none;"&gt;root@imx8mmevk:/home#&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;I've connected wire on the ISP1_IRQ1 and probed the signal, the line is always high after I sent the command packet - 0xA1.&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;As per the flow diagram, the ISP1_IRQ1 should go low. anything else am I missing ?&amp;nbsp;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;Please share your inputs.&amp;nbsp;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;Note : ISP0&amp;nbsp; &amp;amp; ISP1 were pressed to put the LPC in SPI ISP mode.&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;Thanks,&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 19:08:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916160#M36591</guid>
      <dc:creator>seku</dc:creator>
      <dc:date>2019-07-04T19:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54114 ISP over SPI</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916161#M36592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Senthil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please accept my apologies for my late reply. Could you please try sending the &lt;STRONG&gt;probe command&lt;/STRONG&gt; first? Please check UM chapter &lt;STRONG&gt;4.8.5&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;This command is required to select I2C or SPI interface when booting from a reset condition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check flowchart below:&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/90589i2CEFA7C2B6B5C667/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;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2019 15:24:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916161#M36592</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-07-08T15:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54114 ISP over SPI</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916162#M36593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felipe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried with the probe command this morning and am able to see the response from LPC. The ISP1_IRQ de-asserted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script :&amp;nbsp;&lt;/P&gt;&lt;P&gt;----------------&lt;/P&gt;&lt;DIV&gt;#!/bin/sh&lt;/DIV&gt;&lt;DIV&gt;# Gpio pin for ISP_IRQ from LPC to IMX8M&lt;BR /&gt;echo 137 &amp;gt; /sys/class/gpio/export&lt;/DIV&gt;&lt;DIV&gt;echo "Sending 0xA5..."&lt;BR /&gt;./spi_test -D /dev/spidev1.0 -s 2000000 -d 100 -p "\xa5\x04\x00\x00\x00\x00\x00\xa1" -v&lt;BR /&gt;echo -n "ISP1_IRQ state:"&lt;BR /&gt;cat /sys/class/gpio/gpio137/value&lt;BR /&gt;echo -n "ISP1_IRQ state:"&lt;BR /&gt;cat /sys/class/gpio/gpio137/value&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script Output :&lt;/P&gt;&lt;P&gt;------------------&lt;/P&gt;&lt;P&gt;Sending 0xA5...&lt;BR /&gt;spi mode: 0x0&lt;BR /&gt;bits per word: 8&lt;BR /&gt;max speed: 2000000 Hz (2000 KHz)&lt;BR /&gt;TX | A5 04 00 00 00 00 00 A1 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __&amp;nbsp; |........|&lt;BR /&gt;RX | 55 A5 00 00 00 00 00 00 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __&amp;nbsp; |U.......|&lt;BR /&gt;ISP1_IRQ state:0&lt;BR /&gt;ISP1_IRQ state:0&lt;BR /&gt;root@imx8mmevk:/home# cat /sys/class/gpio/gpio137/value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clarify if I execute the next command for example - command - 0xA1". Will the ISP1_IRQ pin will stay low ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2019 15:52:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916162#M36593</guid>
      <dc:creator>seku</dc:creator>
      <dc:date>2019-07-08T15:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54114 ISP over SPI</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916163#M36594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Senthil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, the MCU will respond to the Host command by driving ISP1_IRQ low. Please have in mind the following note from the user manual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note: SPI transactions are bi-directional. During the command packet phase, the host&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;system should ignore the read data (send data from LPC5411x). During the response&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;phase, the LPC5411x will ignore the read data (send data from host).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 20:05:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916163#M36594</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-07-10T20:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54114 ISP over SPI</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916164#M36595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felipe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to get the response from LPC when I chose SPI in Probe command.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whenever I execute the flash related commands (page erase, sector erase and bulk erase), the response is 80 or 01.&lt;/P&gt;&lt;P&gt;Should I need to do anything special for flash commands?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I give the wrong sector number then LPC reports the error code as 0x7.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share your inputs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@imx8mmevk:/home# ./myspi&lt;/P&gt;&lt;P&gt;// Probe command&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tx:A5 04 00 00 00 00 00 A1&lt;BR /&gt;Rx:00 00 00 00 00 00 00 00&lt;BR /&gt;Tx:A5 04 00 00 00 00 00 A1&lt;BR /&gt;Rx:55 A5 00 00 01 00 00 00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Get version command&amp;nbsp;&lt;BR /&gt;Tx:A1 00 00 00 00 00 00 00&lt;BR /&gt;Rx:55 A1 02 00 80 01 00 00&lt;BR /&gt;Tx:A1 00 00 00 00 00 00 00&lt;BR /&gt;Rx:55 A1 02 00 80 01 00 00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Flash Sector Erase command&amp;nbsp;&lt;BR /&gt;Tx:A8 00 00 00 00 00 00 00&lt;BR /&gt;Rx:80 80 80 80 80 80 80 80&amp;nbsp; // Weird output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2019 15:40:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916164#M36595</guid>
      <dc:creator>seku</dc:creator>
      <dc:date>2019-07-12T15:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54114 ISP over SPI</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916165#M36596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Senthil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to what you mentioned the error code the LPC returns is correct if you are not sending the correct sector the error 0x7 is INVALID SECTOR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check below image from error.h file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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/91145iA314615E1ADD3230/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;&lt;/P&gt;&lt;P&gt;By any chance, did you enable CRP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2019 22:11:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916165#M36596</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-07-12T22:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54114 ISP over SPI</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916166#M36597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. When I set the ISP0 and ISP1 for USB boot mode. I could see that CRP DISABLED as a label in the windows machine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope the CRP disabled for SPI ISP mode also. Am I CORRECT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to set the CRP mode disabled? Any jumper settings?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2019 16:59:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916166#M36597</guid>
      <dc:creator>seku</dc:creator>
      <dc:date>2019-07-15T16:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54114 ISP over SPI</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916167#M36598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Senthil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CRP is invoked when you program an specific pattern in the flash image at offset&lt;STRONG&gt; 0x0000 02FC&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend you to check chapter &lt;STRONG&gt;4.3.6&lt;/STRONG&gt; of the User Manual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2019 14:43:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916167#M36598</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-07-17T14:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54114 ISP over SPI</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916168#M36599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felpie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I programmed the hex file using SWD and the CRP is not enabled.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if !defined (CORE_M0PLUS)&lt;BR /&gt;#include &amp;lt;NXP/crp.h&amp;gt;&lt;BR /&gt;__CRP const unsigned int CRP_WORD = CRP_NO_CRP ;&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;//**********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached the HEX file for reference. After that, I put the LPC in ISP SPI mode and sent the following command to erase the sector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Request command&amp;nbsp;&lt;/P&gt;&lt;P&gt;cmd[0] = 0xA8;&lt;BR /&gt; cmd[1] = 0x00;&lt;BR /&gt; cmd[2] = 0x00;&lt;BR /&gt; cmd[3] = 0x01;&lt;/P&gt;&lt;P&gt;ret = send_cmd(fd,cmd,4);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; My code output :&amp;nbsp;&lt;/P&gt;&lt;P&gt;[*] Enter the menu :2&lt;BR /&gt;[*] Erasing sector(s) command ...&lt;BR /&gt;[*] LPC Part Id : 0x36454113&lt;BR /&gt;[*] LPC Part : LPC54113J256&lt;BR /&gt;[*] Flash base : 0x00000000&lt;BR /&gt;[*] Flash size : 0x00040000&lt;BR /&gt;[*] Firmware file size : 14244&lt;BR /&gt;[*] Number of sector to be erased : 1&lt;BR /&gt;[*] Sending command (A8)&lt;BR /&gt;[*] Wait for response...&lt;BR /&gt;[*] Exporting gpio..&lt;BR /&gt;[*] ISP1_IRQ state : ACTIVE_LOW&lt;BR /&gt;[*] Response ready indication&lt;BR /&gt;[*] Response for command (A8) :55 A8 04 00 07 00 00 00&lt;BR /&gt;[*] Erasing sector 1 is not completed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure that when the CRP is disabled, the LPC always returning that invalid sector number. I am trying to erase the sector 1 from 0x8000 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the right format to send the erase sector command?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my hex file output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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/82183i9CD6B00E4A1F8CD6/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2019 19:12:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916168#M36599</guid>
      <dc:creator>seku</dc:creator>
      <dc:date>2019-07-19T19:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54114 ISP over SPI</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916169#M36600</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;Sorry for the late response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this error happening only in sector 1? Are you able to send a different command than erase sector?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 15:36:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916169#M36600</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-07-24T15:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54114 ISP over SPI</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916170#M36601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felipe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes. The probe and get version commands were working fine with the proper response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried for only sector 1. I can try other sectors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you confirm whether the command format is correct ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 15:42:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916170#M36601</guid>
      <dc:creator>seku</dc:creator>
      <dc:date>2019-07-24T15:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54114 ISP over SPI</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916171#M36602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I passed sector 2. I've received invalid sector for sector 2 as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 16:02:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916171#M36602</guid>
      <dc:creator>seku</dc:creator>
      <dc:date>2019-07-24T16:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54114 ISP over SPI</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916172#M36603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Senthil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command seems correct. I am wondering if there is an issue with the flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2019 17:13:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-ISP-over-SPI/m-p/916172#M36603</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-07-29T17:13:58Z</dc:date>
    </item>
  </channel>
</rss>

