<?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 [Question] CAN-FD setup issues with FlexCan in S32G</title>
    <link>https://community.nxp.com/t5/S32G/Question-CAN-FD-setup-issues-with-FlexCan/m-p/1447263#M733</link>
    <description>&lt;P&gt;&lt;SPAN&gt;The operation status was checked with FlexCan set as follows using linux socket can.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) ip link set can0 up type can bitrate 500000 sample-point 0.75 dbitrate 5000000 dsample-point 0.8 fd on&lt;/SPAN&gt;&lt;BR /&gt;2)&amp;nbsp;&lt;SPAN&gt;ip link set can0 up type can bitrate 1000000 sample-point 0.75 dbitrate 8000000 dsample-point 0.8 fd on&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, if the FlexCAN CBT bitrate is set to 4500 kbps or higher using S32DS on the M7, it will not work normally.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The source code used for the test is as follows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/* FlexCan for Test */&lt;BR /&gt;#define FLEXCAN_INST 0U&lt;BR /&gt;#define MSG_ID 0x123&lt;BR /&gt;#define RX_MB_IDX 1U&lt;BR /&gt;#define TX_MB_IDX 0U&lt;BR /&gt;uint8 dummyData[6] = {0x00,0xFF,0x0F,0xF0,0x55,0xAA};&lt;BR /&gt;const uint8 CAN_TxData[64] = {0x00,0xFF,0x0F,0xF0,0x55,0xAA};&lt;/P&gt;&lt;P&gt;Flexcan_Ip_DataInfoType CAN_FD_TxInfo = {&lt;BR /&gt;.msg_id_type = FLEXCAN_MSG_ID_STD,&lt;BR /&gt;.data_length = 6u,&lt;/P&gt;&lt;P&gt;.fd_enable = TRUE,&lt;BR /&gt;.fd_padding = 0,&lt;BR /&gt;.enable_brs = TRUE,&lt;/P&gt;&lt;P&gt;.is_polling = TRUE,&lt;BR /&gt;.is_remote = FALSE&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FlexCAN_Ip_Init(FLEXCAN_INST, &amp;amp;FlexCAN_State0, &amp;amp;FlexCAN_Config0);&lt;BR /&gt;FlexCAN_Ip_SetStartMode(FLEXCAN_INST);&lt;BR /&gt;FlexCAN_Ip_Send(FLEXCAN_INST, TX_MB_IDX, &amp;amp;CAN_FD_TxInfo, MSG_ID, (uint8 *)&amp;amp;CAN_TxData);&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Apr 2022 13:05:54 GMT</pubDate>
    <dc:creator>ljy</dc:creator>
    <dc:date>2022-04-21T13:05:54Z</dc:date>
    <item>
      <title>[Question] CAN-FD setup issues with FlexCan</title>
      <link>https://community.nxp.com/t5/S32G/Question-CAN-FD-setup-issues-with-FlexCan/m-p/1447263#M733</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The operation status was checked with FlexCan set as follows using linux socket can.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) ip link set can0 up type can bitrate 500000 sample-point 0.75 dbitrate 5000000 dsample-point 0.8 fd on&lt;/SPAN&gt;&lt;BR /&gt;2)&amp;nbsp;&lt;SPAN&gt;ip link set can0 up type can bitrate 1000000 sample-point 0.75 dbitrate 8000000 dsample-point 0.8 fd on&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, if the FlexCAN CBT bitrate is set to 4500 kbps or higher using S32DS on the M7, it will not work normally.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The source code used for the test is as follows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/* FlexCan for Test */&lt;BR /&gt;#define FLEXCAN_INST 0U&lt;BR /&gt;#define MSG_ID 0x123&lt;BR /&gt;#define RX_MB_IDX 1U&lt;BR /&gt;#define TX_MB_IDX 0U&lt;BR /&gt;uint8 dummyData[6] = {0x00,0xFF,0x0F,0xF0,0x55,0xAA};&lt;BR /&gt;const uint8 CAN_TxData[64] = {0x00,0xFF,0x0F,0xF0,0x55,0xAA};&lt;/P&gt;&lt;P&gt;Flexcan_Ip_DataInfoType CAN_FD_TxInfo = {&lt;BR /&gt;.msg_id_type = FLEXCAN_MSG_ID_STD,&lt;BR /&gt;.data_length = 6u,&lt;/P&gt;&lt;P&gt;.fd_enable = TRUE,&lt;BR /&gt;.fd_padding = 0,&lt;BR /&gt;.enable_brs = TRUE,&lt;/P&gt;&lt;P&gt;.is_polling = TRUE,&lt;BR /&gt;.is_remote = FALSE&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FlexCAN_Ip_Init(FLEXCAN_INST, &amp;amp;FlexCAN_State0, &amp;amp;FlexCAN_Config0);&lt;BR /&gt;FlexCAN_Ip_SetStartMode(FLEXCAN_INST);&lt;BR /&gt;FlexCAN_Ip_Send(FLEXCAN_INST, TX_MB_IDX, &amp;amp;CAN_FD_TxInfo, MSG_ID, (uint8 *)&amp;amp;CAN_TxData);&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 13:05:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Question-CAN-FD-setup-issues-with-FlexCan/m-p/1447263#M733</guid>
      <dc:creator>ljy</dc:creator>
      <dc:date>2022-04-21T13:05:54Z</dc:date>
    </item>
  </channel>
</rss>

