<?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>MQX Software Solutions中的主题 Re: Can't get working FlexCAN</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Can-t-get-working-FlexCAN/m-p/281744#M8827</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything appeared to be pretty easy. A surprise from our HW guy. One undocumented pin which must be in a defined state to allow CAN transactions. That's all, thanks everyone!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Nov 2013 14:22:40 GMT</pubDate>
    <dc:creator>mikhailburakov</dc:creator>
    <dc:date>2013-11-18T14:22:40Z</dc:date>
    <item>
      <title>Can't get working FlexCAN</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Can-t-get-working-FlexCAN/m-p/281743#M8826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the few last days I tried to get working FlexCAN via MQX IO api. Now it looks like i am totally failed. I use custom board with MK20DX256VLK7 CPU and MQX 4.0.1. The problem is, that no data ever leaves mailboxes, it spams errors infinitely instead: CAN0_ECR is changing, code in CAN0_CS0 is stuck on 0xc, no timestamp in CAN0_CS0. The code is simple:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define CAN_DEVICE&amp;nbsp;&amp;nbsp; ( 0 )&lt;BR /&gt;#define FREQUENCY&amp;nbsp;&amp;nbsp;&amp;nbsp; ( 1000 )&lt;BR /&gt;#define MAILBOX_TX ( 0 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void canbus_task(uint_32 initial_data)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _bsp_flexcan_io_init(CAN_DEVICE);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLEXCAN_Initialize(CAN_DEVICE, 0, 0, FREQUENCY, FLEXCAN_IPBUS_CLK);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLEXCAN_Initialize_mailbox(CAN_DEVICE, MAILBOX_TX, 0x111, 8, FLEXCAN_TX, FLEXCAN_STANDARD, FLEXCAN_DISABLE);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLEXCAN_Activate_mailbox(CAN_DEVICE, MAILBOX_TX, FLEXCAN_TX_MSG_BUFFER_NOT_ACTIVE);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLEXCAN_Select_mode(CAN_DEVICE, FLEXCAN_NORMAL_MODE);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned char data[] = { 0x23, 0x10, 0x19, 0x67, 0x11, 0x22, 0x33, 0x44 };&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLEXCAN_Tx_mailbox(CAN_DEVICE, MAILBOX_TX, data);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _task_block();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one verify that this is the correct code? The hardware is functional, on the other end i have PCAN-USB. It works for sure, because i was able to receive messages from this board without the use of MQX (another project). The situation is really weird because i even tried to manually configure CAN0 module in exact the same way as in barebone project. I verified that all the registers are totally equal (except CAN0_TIMER of course). But sending data fails anyway. I feel that i miss some obvious tiny detail, but this is my first experience with canbus, and i am out of ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me, dear community :)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 16:01:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Can-t-get-working-FlexCAN/m-p/281743#M8826</guid>
      <dc:creator>mikhailburakov</dc:creator>
      <dc:date>2013-11-15T16:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get working FlexCAN</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Can-t-get-working-FlexCAN/m-p/281744#M8827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything appeared to be pretty easy. A surprise from our HW guy. One undocumented pin which must be in a defined state to allow CAN transactions. That's all, thanks everyone!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 14:22:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Can-t-get-working-FlexCAN/m-p/281744#M8827</guid>
      <dc:creator>mikhailburakov</dc:creator>
      <dc:date>2013-11-18T14:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get working FlexCAN</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Can-t-get-working-FlexCAN/m-p/281745#M8828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can try to communicate FlexCan on k60 120mhz micro controller using MQX,I can try it in processor expert it work pretty but i can try in MQX it doesn't work,plz tell me any configuration in MQX and also if any source code plz help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 11:02:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Can-t-get-working-FlexCAN/m-p/281745#M8828</guid>
      <dc:creator>adt</dc:creator>
      <dc:date>2014-03-01T11:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get working FlexCAN</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Can-t-get-working-FlexCAN/m-p/281746#M8829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please send your barebone project( i mean without os dependency)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 04:18:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Can-t-get-working-FlexCAN/m-p/281746#M8829</guid>
      <dc:creator>sreevenkedesh</dc:creator>
      <dc:date>2014-07-18T04:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get working FlexCAN</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Can-t-get-working-FlexCAN/m-p/281747#M8830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please tell me more about your solution? I have a similar problem on a K60.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 12:05:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Can-t-get-working-FlexCAN/m-p/281747#M8830</guid>
      <dc:creator>andershørtvedt</dc:creator>
      <dc:date>2014-10-31T12:05:33Z</dc:date>
    </item>
  </channel>
</rss>

