<?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: linux SC16IS752 driver,Receive Line Status error</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/linux-SC16IS752-driver-Receive-Line-Status-error/m-p/754389#M30384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The SC16IS752 could be connected by SPI or I2C, therefore, SPI/I2C drivers should be used in the middle of the communication with the SC16IS752 part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could take a look at the following link for a Linux implementation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/torvalds/linux/blob/master/drivers/tty/serial/sc16is7xx.c"&gt;https://github.com/torvalds/linux/blob/master/drivers/tty/serial/sc16is7xx.c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, the links below provides bare-metal implementations, that helps to understand the SC16IS752 functionality:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-335332"&gt;https://community.nxp.com/docs/DOC-335332&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN10587.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN10587.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&lt;BR /&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>Tue, 14 Nov 2017 17:43:39 GMT</pubDate>
    <dc:creator>CarlosCasillas</dc:creator>
    <dc:date>2017-11-14T17:43:39Z</dc:date>
    <item>
      <title>linux SC16IS752 driver,Receive Line Status error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/linux-SC16IS752-driver-Receive-Line-Status-error/m-p/754388#M30383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I use the LPC3250 + SC16IS752, the SPI interface to expand two serial ports,OSC 11059200,SPI speed 4M, but now I am having problems, when the peripheral sends a large amount of data, far beyond the FIFO 64 bytes, at this time, &amp;nbsp;will receive the following error.&lt;BR /&gt;overrun error has occurred(LSR register)&lt;BR /&gt;Receive Line Status error(IIR register)&lt;BR /&gt;Specific kernel debugging information is as follows:&lt;/P&gt;&lt;P&gt;sc16is7x2 spi0.0: sc16is7x2_read_status ier=0x07 iir=0xc1 msr=0x00 lsr=0x60&lt;BR /&gt;sc16is7x2 spi0.0: sc16is7x2_handle_channel finished&lt;BR /&gt;sc16is7x2 spi0.0: sc16is7x2_handle_channel (0) irq ts=0xc3a00c00&lt;BR /&gt;sc16is7x2 spi0.0: sc16is7x2_read_status ier=0x07 iir=0xc6 msr=0x00 lsr=0x63&lt;BR /&gt;sc16is7x2 spi0.0: sc16is7x2_handle_rx (0) 64 bytes&lt;BR /&gt;sc16is7x2 spi0.0: +CWLAP:(3,"android",-36,"b0:d5:9d:81:10:27",11,-42,0)&lt;BR /&gt;+CWLAP:(2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(Lost some of the data here)&lt;BR /&gt;sc16is7x2 spi0.0: sc16is7x2_read_status ier=0x07 iir=0xc6 msr=0x00 lsr=0x63&lt;BR /&gt;sc16is7x2 spi0.0: sc16is7x2_handle_rx (0) 64 bytes&lt;BR /&gt;sc16is7x2 spi0.0: +CWLAP:(4,"重庆新赛亚二楼1",-75,"34:96:72:9c:e3:a8",1,-31&lt;BR /&gt;sc16is7x2 spi0.0: sc16is7x2_read_status ier=0x07 iir=0xc1 msr=0x00 lsr=0x60&lt;BR /&gt;sc16is7x2 spi0.0: sc16is7x2_handle_channel finished&lt;/P&gt;&lt;P&gt;..........................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The overall format of the data received should be as follows&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;+CWLAP:(3,"android",-36,"b0:d5:9d:81:10:27",11,-42,0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;+CWLAP:(2,"TEST",-21,"xx:xx:xx:xx:xx:xx",xx,xx,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;+CWLAP:(4,"重庆新赛亚二楼1",-75,"34:96:72:9c:e3:a8",1,-31,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does anyone encounter the same problem? How to fix this problem by modifying the driver?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 03:58:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/linux-SC16IS752-driver-Receive-Line-Status-error/m-p/754388#M30383</guid>
      <dc:creator>fq1110</dc:creator>
      <dc:date>2017-11-07T03:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: linux SC16IS752 driver,Receive Line Status error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/linux-SC16IS752-driver-Receive-Line-Status-error/m-p/754389#M30384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The SC16IS752 could be connected by SPI or I2C, therefore, SPI/I2C drivers should be used in the middle of the communication with the SC16IS752 part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could take a look at the following link for a Linux implementation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/torvalds/linux/blob/master/drivers/tty/serial/sc16is7xx.c"&gt;https://github.com/torvalds/linux/blob/master/drivers/tty/serial/sc16is7xx.c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, the links below provides bare-metal implementations, that helps to understand the SC16IS752 functionality:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-335332"&gt;https://community.nxp.com/docs/DOC-335332&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN10587.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN10587.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&lt;BR /&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>Tue, 14 Nov 2017 17:43:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/linux-SC16IS752-driver-Receive-Line-Status-error/m-p/754389#M30384</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2017-11-14T17:43:39Z</dc:date>
    </item>
  </channel>
</rss>

