<?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: Can not enter the CAN Tx/Rx Interrupt. in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Can-not-enter-the-CAN-Tx-Rx-Interrupt/m-p/1478613#M16037</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199969"&gt;@liufei&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Can you let us know which platform version you're working on? (you can capture information on Publish Information tab)&lt;BR /&gt;Be side of that, can you share me your Can config on EB Tresos?&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2022 02:06:45 GMT</pubDate>
    <dc:creator>cuongnguyenphu</dc:creator>
    <dc:date>2022-06-23T02:06:45Z</dc:date>
    <item>
      <title>Can not enter the CAN Tx/Rx Interrupt.</title>
      <link>https://community.nxp.com/t5/S32K/Can-not-enter-the-CAN-Tx-Rx-Interrupt/m-p/1477091#M16006</link>
      <description>&lt;P&gt;Hello，&lt;/P&gt;&lt;P&gt;I make very simple CAN TX test used board with S32K148 144pin.can write function return OK,But&amp;nbsp;Can not enter the CAN Tx/Rx Interrupt.&lt;/P&gt;&lt;P&gt;I set MCAL by EB 24.0.1,Can Rx Processing Type,Can Tx Processing Type and&amp;nbsp;Can BusOff Processing Type s&lt;SPAN&gt;et all to interrupt.Then I also set interrupt setting in my test code beacuse without OS,like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;* can_test.c&lt;BR /&gt;*&lt;BR /&gt;* Created on: 2022年6月9日&lt;BR /&gt;* Author: liu-fei&lt;BR /&gt;*/&lt;BR /&gt;#include "Mcu.h"&lt;BR /&gt;#include "Port.h"&lt;BR /&gt;#include "Mcl.h"&lt;BR /&gt;#include "Spi.h"&lt;BR /&gt;#include "Dio.h"&lt;BR /&gt;#include "S32K148.h"&lt;BR /&gt;#include "startup.h"&lt;BR /&gt;#include "string.h"&lt;BR /&gt;#include "Can.h"&lt;BR /&gt;#include "stdio.h"&lt;BR /&gt;#include "Os_Hal_ContextInt.h"&lt;BR /&gt;#include "CanIf_Cbk.h"&lt;/P&gt;&lt;P&gt;#define MCAL_CAN_TEST&lt;BR /&gt;#ifdef MCAL_CAN_TEST&lt;/P&gt;&lt;P&gt;Can_PduType PduInfo_test;&lt;/P&gt;&lt;P&gt;/**&amp;lt; Variables which contains Can PDU data used in Can transmission */&lt;BR /&gt;uint8 CanApp_InputData[16U] =&lt;BR /&gt;{0xA1, 0x1A, 0xFF, 0xFF, 0xC1, 0x1C, 0xB1, 0x1B,&lt;BR /&gt;//0xA2, 0x2A, 0xFF, 0xFF, 0xC2, 0x2C, 0xB2, 0x2B,&lt;BR /&gt;//0xA3, 0x3A, 0xFF, 0xFF, 0xC3, 0x3C, 0xB3, 0x3B,&lt;BR /&gt;//0xA4, 0x4A, 0xFF, 0xFF, 0xC4, 0x4C, 0xB4, 0x4B,&lt;BR /&gt;//0xA5, 0x5A, 0xFF, 0xFF, 0xC5, 0x5C, 0xB5, 0x5B,&lt;BR /&gt;//0xA6, 0x6A, 0xFF, 0xFF, 0xC6, 0x6C, 0xB6, 0x6B,&lt;BR /&gt;//0xA7, 0x7A, 0xFF, 0xFF, 0xC7, 0x7C, 0xB7, 0x7B,&lt;BR /&gt;0xA8, 0x8A, 0xFF, 0xFF, 0xC8, 0x8C, 0xB8, 0x8B};&lt;/P&gt;&lt;P&gt;//ISR(Can_IsrFCA_BO);&lt;BR /&gt;ISR(Can_IsrFCB_MB_00_15);&lt;/P&gt;&lt;P&gt;uint32 counter = 0;&lt;BR /&gt;void Device_CAN_TEST(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;Can_ReturnType canRet;&lt;BR /&gt;isr_t func_p;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dio_LevelType channel_PTE_25;&lt;/P&gt;&lt;P&gt;Dio_WriteChannel(DioConf_DioChannel_PTE_25,1);//CANTRCV_TRCVMODE_NORMAL:TJA1043_EN&lt;/P&gt;&lt;P&gt;channel_PTE_25 = Dio_ReadChannel(DioConf_DioChannel_PTE_25);&lt;/P&gt;&lt;P&gt;Dio_LevelType channel_PTA_11;&lt;/P&gt;&lt;P&gt;Dio_WriteChannel(DioConf_DioChannel_PTA_11,1);//CANTRCV_TRCVMODE_NORMAL:TJA1043_STB_N&lt;/P&gt;&lt;P&gt;channel_PTA_11 = Dio_ReadChannel(DioConf_DioChannel_PTA_11);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Tx/Rx/Fifo Message Buffer Interrupt.&lt;BR /&gt;INT_installHandler(CAN1_ORed_0_15_MB_IRQn, Can_IsrFCB_MB_00_15, &amp;amp;func_p);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Os_Hal_NvicEnableIRQ(CAN1_ORed_0_15_MB_IRQn);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Os_Hal_NvicSetPriority(CAN1_ORed_0_15_MB_IRQn, 0x10);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PduInfo_test.length = 16U;&lt;/P&gt;&lt;P&gt;PduInfo_test.sdu = &amp;amp;CanApp_InputData[0U];&lt;/P&gt;&lt;P&gt;PduInfo_test.swPduHandle = 1; //L-PDU handle of CAN L-PDU successfully transmitted.This ID specifies the corresponding CAN L-PDU ID&lt;BR /&gt;// and implicitly the CAN Driver instance as well as the&lt;BR /&gt;// corresponding CAN controller device.&lt;/P&gt;&lt;P&gt;PduInfo_test.id = 0xA0 | 0x40000000U;//dentifies the HRH and its corresponding CAN Controller&lt;/P&gt;&lt;P&gt;Can_SetControllerMode(0,CAN_T_START);&lt;/P&gt;&lt;P&gt;#if 0&lt;BR /&gt;while(1)&lt;BR /&gt;{&lt;BR /&gt;canRet = Can_Write(0x1U, &amp;amp;PduInfo_test);&lt;BR /&gt;delay(5000000);&lt;BR /&gt;Can_SetControllerMode(0,CAN_T_START);&lt;/P&gt;&lt;P&gt;if(canRet == CAN_OK)&lt;BR /&gt;printf("CAN send OK！");&lt;/P&gt;&lt;P&gt;if(canRet == CAN_BUSY)&lt;BR /&gt;printf("CAN send NG！");&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;#else&lt;/P&gt;&lt;P&gt;canRet = Can_Write(0x1U, &amp;amp;PduInfo_test);&lt;/P&gt;&lt;P&gt;if(canRet == CAN_OK)&lt;BR /&gt;printf("CAN send OK！");&lt;/P&gt;&lt;P&gt;if(canRet == CAN_BUSY)&lt;BR /&gt;printf("CAN send NG！");&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;Could you please give me some&amp;nbsp;&lt;SPAN&gt;advise，Thank you！&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards，&lt;/P&gt;&lt;P&gt;Liufei&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 02:37:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Can-not-enter-the-CAN-Tx-Rx-Interrupt/m-p/1477091#M16006</guid>
      <dc:creator>liufei</dc:creator>
      <dc:date>2022-06-21T02:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can not enter the CAN Tx/Rx Interrupt.</title>
      <link>https://community.nxp.com/t5/S32K/Can-not-enter-the-CAN-Tx-Rx-Interrupt/m-p/1478613#M16037</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199969"&gt;@liufei&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Can you let us know which platform version you're working on? (you can capture information on Publish Information tab)&lt;BR /&gt;Be side of that, can you share me your Can config on EB Tresos?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 02:06:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Can-not-enter-the-CAN-Tx-Rx-Interrupt/m-p/1478613#M16037</guid>
      <dc:creator>cuongnguyenphu</dc:creator>
      <dc:date>2022-06-23T02:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can not enter the CAN Tx/Rx Interrupt.</title>
      <link>https://community.nxp.com/t5/S32K/Can-not-enter-the-CAN-Tx-Rx-Interrupt/m-p/1478647#M16038</link>
      <description>&lt;P&gt;Hi cuongnguyenphu,&lt;/P&gt;&lt;P&gt;Thanks for&amp;nbsp; reply,I have resolved this problem,&lt;/P&gt;&lt;P&gt;but I have some question about&amp;nbsp;&lt;SPAN&gt;Can config setting,like this,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can Controller Prescaller of description:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Prescaler = FreqCanClk / FreqTq; FreqTq = 1 / CanControllerTimeQuanta .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What dose CanControllerTimeQuanta mean？&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FreqTq is equal 1/Tq? right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CanControllerTimeQuanta is same to&amp;nbsp;Tq?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you please answer it,thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Liufei&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 02:51:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Can-not-enter-the-CAN-Tx-Rx-Interrupt/m-p/1478647#M16038</guid>
      <dc:creator>liufei</dc:creator>
      <dc:date>2022-06-23T02:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can not enter the CAN Tx/Rx Interrupt.</title>
      <link>https://community.nxp.com/t5/S32K/Can-not-enter-the-CAN-Tx-Rx-Interrupt/m-p/1480442#M16091</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199969"&gt;@liufei&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;As per Reference manual:&lt;BR /&gt;1.&amp;nbsp;&lt;SPAN&gt;What dose CanControllerTimeQuanta mean？&amp;gt;&amp;nbsp;&lt;/SPAN&gt;Time-Quantum = one Sclock period.&amp;nbsp;&lt;SPAN&gt;CanControllerTimeQuanta means&amp;nbsp;Sclock in below diagram. You can check more detail in&amp;nbsp;Reference manual&lt;/SPAN&gt;&lt;BR /&gt;2.&amp;nbsp;&lt;SPAN&gt;FreqTq is equal 1/ Tq ? right? &amp;gt; Yes, It's correct&lt;BR /&gt;3.&amp;nbsp;CanControllerTimeQuanta is same to&amp;nbsp;Tq?&amp;nbsp;&amp;gt; Yes, It's correct&lt;BR /&gt;&lt;BR /&gt;Additional information:&amp;nbsp;&lt;/SPAN&gt;&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="cuongnguyenphu_0-1656319314926.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/184729iC69F0A6D669965F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cuongnguyenphu_0-1656319314926.png" alt="cuongnguyenphu_0-1656319314926.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cuongnguyenphu_2-1656319596749.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/184731i6B58F0FD00746C29/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cuongnguyenphu_2-1656319596749.png" alt="cuongnguyenphu_2-1656319596749.png" /&gt;&lt;/span&gt;&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>Mon, 27 Jun 2022 08:49:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Can-not-enter-the-CAN-Tx-Rx-Interrupt/m-p/1480442#M16091</guid>
      <dc:creator>cuongnguyenphu</dc:creator>
      <dc:date>2022-06-27T08:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can not enter the CAN Tx/Rx Interrupt.</title>
      <link>https://community.nxp.com/t5/S32K/Can-not-enter-the-CAN-Tx-Rx-Interrupt/m-p/1480534#M16096</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;cuongnguyenphu,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Thank you very much!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;BestRegards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Liu&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 10:30:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Can-not-enter-the-CAN-Tx-Rx-Interrupt/m-p/1480534#M16096</guid>
      <dc:creator>liufei</dc:creator>
      <dc:date>2022-06-27T10:30:09Z</dc:date>
    </item>
  </channel>
</rss>

