<?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>MCX Microcontrollersのトピックblhost with CAN without companion board</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/blhost-with-CAN-without-companion-board/m-p/2013457#M2181</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;We are evaluating a MCXN-series microcontroller and our need is using rom bootloader to program flash through CAN bus&lt;/P&gt;&lt;P&gt;We analyzed blhost documentation and we intended that to use CAN bus it is necessary to use a companion board such as&amp;nbsp;&lt;SPAN&gt;TWR-SER to interface PC serial port to CAN bus. On the other hand it seems that I2C or SPI peripherals can be used directly if PC is natively equipped with these peripherals.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We wonder if the same approach is possible also with CAN bus. In other words is it possible to interface blhost directly with CAN peripheral when this is available in the host PC ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If this approach is possible I kindly ask you if this feature has already been developed and available for test and integration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&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;</description>
    <pubDate>Fri, 13 Dec 2024 08:33:40 GMT</pubDate>
    <dc:creator>flexeos</dc:creator>
    <dc:date>2024-12-13T08:33:40Z</dc:date>
    <item>
      <title>blhost with CAN without companion board</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/blhost-with-CAN-without-companion-board/m-p/2013457#M2181</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;We are evaluating a MCXN-series microcontroller and our need is using rom bootloader to program flash through CAN bus&lt;/P&gt;&lt;P&gt;We analyzed blhost documentation and we intended that to use CAN bus it is necessary to use a companion board such as&amp;nbsp;&lt;SPAN&gt;TWR-SER to interface PC serial port to CAN bus. On the other hand it seems that I2C or SPI peripherals can be used directly if PC is natively equipped with these peripherals.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We wonder if the same approach is possible also with CAN bus. In other words is it possible to interface blhost directly with CAN peripheral when this is available in the host PC ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If this approach is possible I kindly ask you if this feature has already been developed and available for test and integration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&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;</description>
      <pubDate>Fri, 13 Dec 2024 08:33:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/blhost-with-CAN-without-companion-board/m-p/2013457#M2181</guid>
      <dc:creator>flexeos</dc:creator>
      <dc:date>2024-12-13T08:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: blhost with CAN without companion board</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/blhost-with-CAN-without-companion-board/m-p/2013699#M2190</link>
      <description>Hello,&lt;BR /&gt;yes, it is possible to use the CAN bus as an interface for blhost. The support is based on python-can library. Take a look at supported hardware interfaces: &lt;A href="https://python-can.readthedocs.io/en/stable/interfaces.html" target="_blank"&gt;https://python-can.readthedocs.io/en/stable/interfaces.html&lt;/A&gt; I have tried it with Peak-System PCAN USB adapter. &lt;BR /&gt;&lt;BR /&gt;CAN might be used with -cb/--can interface option with blhost.&lt;BR /&gt;  -cb, --can interface[,channel,bitrate,rxid,txid]&lt;BR /&gt;                                  CAN Bus settings&lt;BR /&gt;&lt;BR /&gt;                                  interface[,channel,bitrate,rxid,txid]&lt;BR /&gt;                                  - interface ... CAN interface name (refer to python-can library)&lt;BR /&gt;                                  - channel ... CAN channel number&lt;BR /&gt;                                  - bitrate ... CAN bitrate (default=1000000)&lt;BR /&gt;                                  - rxid ... default arbitration ID for RX (default=0x123)&lt;BR /&gt;                                  - txid ... default arbitration ID for TX (default=0x321)&lt;BR /&gt;&lt;BR /&gt;For example in case of PCAN, the interface name would be pcan, so the full command to get-property 1 using the PCAN can interface is.&lt;BR /&gt;&lt;BR /&gt;blhost --can pcan get-property 1&lt;BR /&gt;&lt;BR /&gt;Please note that SPSDK must be installed with "can" extras like this: pip install spsdk[can] &lt;A href="https://spsdk.readthedocs.io/en/latest/examples/_knowledge_base/installation_guide.html#can-support" target="_blank"&gt;https://spsdk.readthedocs.io/en/latest/examples/_knowledge_base/installation_guide.html#can-support&lt;/A&gt;</description>
      <pubDate>Fri, 13 Dec 2024 15:12:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/blhost-with-CAN-without-companion-board/m-p/2013699#M2190</guid>
      <dc:creator>MarekVitula</dc:creator>
      <dc:date>2024-12-13T15:12:11Z</dc:date>
    </item>
  </channel>
</rss>

