<?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: [imx8mp] use FLEXCAN2 controller by M7 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-use-FLEXCAN2-controller-by-M7/m-p/1893781#M225448</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;it is actually a bit difficult to use FlexCAN2 on the EVK, as the pins used for this one are shared with PDM and also there is a switch that need to be enabled in order for it to actually be selected.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AldoG_0-1719333130590.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/285696iAA48AFA75EF53A04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AldoG_0-1719333130590.png" alt="AldoG_0-1719333130590.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So, it is not enough to just mux the FlexCAN correctly but to set this switch as well, to see an example of such implementation one could refer to the Linux Device tree:&lt;BR /&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx8mp-evk.dts#L422" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx8mp-evk.dts#L422&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx8mp-evk.dts#L1077" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx8mp-evk.dts#L1077&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx8mp-evk.dts#L1090" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx8mp-evk.dts#L1090&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards/Saludos,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2024 16:34:42 GMT</pubDate>
    <dc:creator>AldoG</dc:creator>
    <dc:date>2024-06-25T16:34:42Z</dc:date>
    <item>
      <title>[imx8mp] use FLEXCAN2 controller by M7</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-use-FLEXCAN2-controller-by-M7/m-p/1893689#M225442</link>
      <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;&lt;BR /&gt;I am new here and I got my hands on an imx8mp µC.&lt;BR /&gt;On the µC I want to run an application which needs two CANs.&lt;BR /&gt;For this µC are CAN demo implementations available, which I am able to run on my Hardware.&lt;BR /&gt;&lt;BR /&gt;To run one of this examples on FLEXCAN2 instead of FLEXCAN1 the board configuration has to change.&lt;BR /&gt;In particular I added the PIN and Clock config for FLEXCAN2.&lt;BR /&gt;&lt;BR /&gt;Currently the initialization for FLEXCAN1 is running fine, but the initialization of FLEXCAN2 is stuck while disabling the FLEXCAN Module.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Within the Demo Code is a init for an specific GPIO pin.&lt;BR /&gt;/* GPIO5_IO05 is used to control CAN1_STBY which is ebaled active high */&lt;BR /&gt;gpio_pin_config_t config = {kGPIO_DigitalOutput, 1, kGPIO_NoIntmode};&lt;BR /&gt;GPIO_PinInit(GPIO5, 5U, &amp;amp;config);&lt;BR /&gt;&lt;BR /&gt;I do not set an GPIO for CAN2 and I think there is my issue.&lt;BR /&gt;Does anyone know where I can find the information which GPIO I have to use for CAN2?&lt;BR /&gt;&lt;BR /&gt;Thanks for your help in advance.&lt;BR /&gt;&lt;BR /&gt;Greetings&lt;BR /&gt;schwammal&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 13:41:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-use-FLEXCAN2-controller-by-M7/m-p/1893689#M225442</guid>
      <dc:creator>schwammal</dc:creator>
      <dc:date>2024-06-25T13:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: [imx8mp] use FLEXCAN2 controller by M7</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-use-FLEXCAN2-controller-by-M7/m-p/1893781#M225448</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;it is actually a bit difficult to use FlexCAN2 on the EVK, as the pins used for this one are shared with PDM and also there is a switch that need to be enabled in order for it to actually be selected.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AldoG_0-1719333130590.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/285696iAA48AFA75EF53A04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AldoG_0-1719333130590.png" alt="AldoG_0-1719333130590.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So, it is not enough to just mux the FlexCAN correctly but to set this switch as well, to see an example of such implementation one could refer to the Linux Device tree:&lt;BR /&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx8mp-evk.dts#L422" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx8mp-evk.dts#L422&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx8mp-evk.dts#L1077" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx8mp-evk.dts#L1077&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx8mp-evk.dts#L1090" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx8mp-evk.dts#L1090&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards/Saludos,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 16:34:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-use-FLEXCAN2-controller-by-M7/m-p/1893781#M225448</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2024-06-25T16:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: [imx8mp] use FLEXCAN2 controller by M7</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-use-FLEXCAN2-controller-by-M7/m-p/1894113#M225481</link>
      <description>&lt;P&gt;Hi Aldo,&lt;BR /&gt;&lt;BR /&gt;thanks for this information.&lt;BR /&gt;From the Files you have shared I assume, that I have to set the&amp;nbsp;&lt;SPAN&gt;MX8MP_IOMUXC_SAI2_MCLK__GPIO4_IO27 to high to switch for CAN2.&lt;BR /&gt;&lt;BR /&gt;The initialization is still not working properly, but I will talk to my colleagues about it bevor posting an update.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards&lt;BR /&gt;schwammal&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 07:09:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-use-FLEXCAN2-controller-by-M7/m-p/1894113#M225481</guid>
      <dc:creator>schwammal</dc:creator>
      <dc:date>2024-06-26T07:09:31Z</dc:date>
    </item>
  </channel>
</rss>

