<?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>FreeMASTERのトピックFreemaster connect target with K line</title>
    <link>https://community.nxp.com/t5/FreeMASTER/Freemaster-connect-target-with-K-line/m-p/1579289#M1238</link>
    <description>&lt;P&gt;Freemaster always report Response Timeout error. How to setup to connect?&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jan 2023 12:14:22 GMT</pubDate>
    <dc:creator>wangyanjun</dc:creator>
    <dc:date>2023-01-09T12:14:22Z</dc:date>
    <item>
      <title>Freemaster connect target with K line</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Freemaster-connect-target-with-K-line/m-p/1579289#M1238</link>
      <description>&lt;P&gt;Freemaster always report Response Timeout error. How to setup to connect?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 12:14:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Freemaster-connect-target-with-K-line/m-p/1579289#M1238</guid>
      <dc:creator>wangyanjun</dc:creator>
      <dc:date>2023-01-09T12:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Freemaster connect target with K line</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Freemaster-connect-target-with-K-line/m-p/1585357#M1239</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you need to be more specific when reporting problems like this.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;What is your target MCU board?&lt;/LI&gt;
&lt;LI&gt;How do you try to connect / what communication interface?&lt;/LI&gt;
&lt;LI&gt;Does a MCU freemaster demo application work with your hardware setup?&lt;/LI&gt;
&lt;LI&gt;What is the MCU application and what FreeMASTER driver you use (where it comes from)?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;From the subject, I'm guessing you try to use a K-Line (12V UART bus) so please also give more information how do you interface the MCU and PC to this bus.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Michal&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 10:34:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Freemaster-connect-target-with-K-line/m-p/1585357#M1239</guid>
      <dc:creator>MichalH</dc:creator>
      <dc:date>2023-01-19T10:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Freemaster connect target with K line</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Freemaster-connect-target-with-K-line/m-p/1585810#M1240</link>
      <description>&lt;P&gt;Target MCU: LPC54616J512BD100&lt;/P&gt;&lt;P&gt;Communication interface: USART (SERIAL in Freemaster)&lt;/P&gt;&lt;P&gt;Comm Driver from SDK 2_12_0&lt;/P&gt;&lt;P&gt;K-Line is single wire connection between Host and target and used in automotive for diagnostic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wang Yanjun&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 01:54:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Freemaster-connect-target-with-K-line/m-p/1585810#M1240</guid>
      <dc:creator>wangyanjun</dc:creator>
      <dc:date>2023-01-20T01:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Freemaster connect target with K line</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Freemaster-connect-target-with-K-line/m-p/1585903#M1241</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;thanks for initial information. I would recommend to use a logic analyzer or oscilloscope to debug if the serial communication reaches the MCU pins and if the FreeMASTER driver in the MCU gets the data bytes correctly. You can place a breakpoint at&amp;nbsp;FMSTR_ProtocolDecoder() in freemaster_protocol.c. If you get a hit there, you should be able to trace down if the response sent by the MCU reaches the K-Line bus and if PC can read it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are many places where an error may occur and it is hard for me to guess it for your custom hardware. Several tips:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Verify that the UART is set up properly in the MCU. Your application needs to set up UART clocks, pins, baudrate etc. and then call FMSTR_Init()&lt;/LI&gt;
&lt;LI&gt;Verify your applicaion's main() loop runs and calls FMSTR_Poll() fast enough for the protocol to be processed - alternatively, use an interrupt driven mode as documented in the MCU driver user manual.&lt;/LI&gt;
&lt;LI&gt;You can set&amp;nbsp;FMSTR_DEBUG_TX to 1 in freemaster_cfg.h to let the MCU to periodically transmit short test messages on UART. You should be able to see the communication on the PC using a simple terminal application (e.g. TeraTerm).&lt;/LI&gt;
&lt;LI&gt;Analyze this DEBUG_TX communication at the physical wire using a logic analyzer to see if the baudrate is correct.&lt;/LI&gt;
&lt;LI&gt;Check if the same baudrate is also selected in FreeMASTER on the PC side.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Michal&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 08:26:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Freemaster-connect-target-with-K-line/m-p/1585903#M1241</guid>
      <dc:creator>MichalH</dc:creator>
      <dc:date>2023-01-20T08:26:20Z</dc:date>
    </item>
  </channel>
</rss>

