<?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>S32KのトピックRe: MCAL CAN issue</title>
    <link>https://community.nxp.com/t5/S32K/MCAL-CAN-issue/m-p/1265951#M10633</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;may I ask what do you mean, in edit 2, with "...&lt;SPAN&gt;repeated the calculations for 24 MHz instead of 4 MHz"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I ran on a similar issue and using the SYS clock reference, but not actually changed any specific calculation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;F.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Apr 2021 15:16:31 GMT</pubDate>
    <dc:creator>francescoficili</dc:creator>
    <dc:date>2021-04-21T15:16:31Z</dc:date>
    <item>
      <title>MCAL CAN issue</title>
      <link>https://community.nxp.com/t5/S32K/MCAL-CAN-issue/m-p/1053479#M6971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am trying to set up the MCAL CAN driver on S32K118 EVB powered through USB micro connector. I did the configurations on EB Tresos and enabled the Loop-Back mode. I am using the POLLING option for both TX and RX. In my code, I set up a PDU similar to the example can_pal_s32k118 and called&amp;nbsp;Can_Write() function. I have also set up a timer to call&amp;nbsp;Can_MainFunction_Read() and Can_MainFunction_Write() at every 10 milliseconds or so. The Loop-Back mode worked properly and I had no issues with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I tried to communicate with Kvaser's CAN bus. To do this I unchecked the Loop_Back mode configuration on EB Tresos. and did not change anything. After having issues communicating with Kvaser, I decided to measure the CAN_HI pin of Evaluation Board. As I suspected it stays at 0 Volts even after initialization and the voltage does not change when&amp;nbsp;&lt;SPAN&gt;Can_Write() and&amp;nbsp;Can_MainFunction_Write() are called respectively. I am guessing it should stay at a HIGH voltage and the voltage should change during write operations.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What am I missing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;M. Talha Uyar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Edit: After using the 12V external power instead of the USB micro connector, The CAN_HI and CAN_LO voltages are started working expectedly. However, I still cannot communicate with Kvaser's CAN bus. Both are&amp;nbsp;at 20 kbps and I have connected the 120 Ohm termination resistors&amp;nbsp;between Kvaser's CAN_HI and CAN_LO.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Edit2: Ok, I have previously configured SOSCDIV2_CLK for the CAN in EB Tresos since in the Reference Manual it is mentioned that FlexCAN oscillator clock is&amp;nbsp;SOSCDIV2_CLK. I have changed that to SYS_CLK and repeated the calculations for 24 MHz instead of 4 MHz. It is now working fine and I am able to communicate with Kvaser's CAN bus.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 06:42:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/MCAL-CAN-issue/m-p/1053479#M6971</guid>
      <dc:creator>talha_uyar</dc:creator>
      <dc:date>2020-05-21T06:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: MCAL CAN issue</title>
      <link>https://community.nxp.com/t5/S32K/MCAL-CAN-issue/m-p/1265951#M10633</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;may I ask what do you mean, in edit 2, with "...&lt;SPAN&gt;repeated the calculations for 24 MHz instead of 4 MHz"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I ran on a similar issue and using the SYS clock reference, but not actually changed any specific calculation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;F.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 15:16:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/MCAL-CAN-issue/m-p/1265951#M10633</guid>
      <dc:creator>francescoficili</dc:creator>
      <dc:date>2021-04-21T15:16:31Z</dc:date>
    </item>
  </channel>
</rss>

