<?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 BUS communication for MK20DN512VLL10  in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598359#M35076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;This board will be used by our customer.&amp;nbsp; Currently they want to have CAN addressing and CAN communication on it.&amp;nbsp; That was why we had to use this board.&amp;nbsp; Please let me know if you get any responses from Trinamic.&amp;nbsp; We look forward to have a direction on how to implementing this on the board.&amp;nbsp; What are the necessary steps from your point of view?&amp;nbsp; Below are the steps that we have done.&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; Got the KSDK&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; Compiled the firmware code from Trinamic successfully.&amp;nbsp; We were able to get the .hex file and ready to load onto the board.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you recommend us what to do next?&amp;nbsp; We are looking on how CAN works, but what other information can we get?&amp;nbsp; How do we get CAN driver for the chip that we use (&lt;EM&gt;K20DN512VLL10&lt;/EM&gt;)?&amp;nbsp; Thanks a lot for your help.&amp;nbsp; We really appreciate it. &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Dec 2016 21:18:50 GMT</pubDate>
    <dc:creator>kiemvo</dc:creator>
    <dc:date>2016-12-12T21:18:50Z</dc:date>
    <item>
      <title>CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598351#M35068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are developing a motion control board using the below processor&lt;/P&gt;&lt;TABLE width="166"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="166"&gt;K20DN512VLL10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have pin 100, 98, 97,72, and 71 connected to a CAN transceiver (CAN address pin 0 - 4).&amp;nbsp; I also have pin 99, 42, and 43 connected to CAN transceiver (CAN_speed, CAN_TX, and CAN_RX).&amp;nbsp; There is also a DIP switch to set the CAN address.&amp;nbsp; Do you have any sample code for CAN communication on this chip?&amp;nbsp; What SDK is the best for this kind of development?&amp;nbsp; Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2016 01:10:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598351#M35068</guid>
      <dc:creator>kiemvo</dc:creator>
      <dc:date>2016-12-10T01:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598352#M35069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The list of connections is confusing.&amp;nbsp; Are you working with the internal Kinetis CAN peripheral, or an external CAN packet processor?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2016 03:49:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598352#M35069</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2016-12-11T03:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598353#M35070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is Kinetis CAN peripheral.&amp;nbsp; You can see the schematic portion below.&amp;nbsp; The CAN I/O ports are connected to a switch and then to the MCU pins as describe above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2016-12-10_223221.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/9640iCA0E7030799B88C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="2016-12-10_223221.jpg" alt="2016-12-10_223221.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2016 06:35:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598353#M35070</guid>
      <dc:creator>kiemvo</dc:creator>
      <dc:date>2016-12-11T06:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598354#M35071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get K20DN512 dual-CAN support at&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CAN document at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FuTasker%2FuTaskerCAN.PDF" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerCAN.PDF&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Video of utilisation: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DHa8cv_XEvco" rel="nofollow" target="_blank"&gt;https://www.youtube.com/watch?v=Ha8cv_XEvco&lt;/A&gt;&lt;BR /&gt;including simulation and monitoring of CAN bus with Total Phase Komodo CAN Duo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works directly with KDS, CW, S32, IAR, Keil, Atollic, Rowley, Green Hills, CooCox, GCC, VS so IDE is simply a case of preference. The simulation interface simplifies developments greatly compared to traditional methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2016 19:34:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598354#M35071</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-12-11T19:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598355#M35072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the CAN links.  The main task that we need to do right now us to provide CAN addressing using DIP switch and basic CAN communication.  Since we are new to CAN bus, what are the appropriate steps and recommendations? &lt;/P&gt;&lt;P&gt;-- &lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;   Kiem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2016 20:50:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598355#M35072</guid>
      <dc:creator>kiemvo</dc:creator>
      <dc:date>2016-12-11T20:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598356#M35073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can get more details about CAN addressing at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCAN_bus" rel="nofollow" target="_blank"&gt;https://en.wikipedia.org/wiki/CAN_bus&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you have a 5 bit DIP switch on your board you can only set 5 of the 11 or (extended addressing mode) 18 bits so you will need to define what address range or which masks you use with this. Based on the DIP switch value you can set the rx ID and its mask as appropriate and receive and CAN message addressed to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg. of setting a unique extended address and starting operation would be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned char ucID = fnReadDIP(); // get 5 bits of ID&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ucID |= 0x26c0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // add fixed bits&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CANTABLE tCANParameters;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // table for passing information to driver&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tCANParameters.ulRxID = (CAN_EXTENDED_ID | ucID);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // our ID (extended)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tCANParameters.ulRxIDMask = CAN_EXTENDED_MASK;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CAN_interface_ID0 = fnOpen(TYPE_CAN, FOR_I_O, &amp;amp;tCANParameters);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // open interface&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each time a message is received for the ID there is an event called &lt;STRONG&gt;CAN_RX_MSG&lt;/STRONG&gt; which is handled by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Length = fnRead(CAN_interface_ID0, ucInputMessage, (GET_CAN_RX_TIME_STAMP | GET_CAN_RX_ID)); // read received CAN message&lt;/STRONG&gt;&lt;BR /&gt;This places the ID of the transmitter, the message time stamp, plus the message content into the buffer &lt;STRONG&gt;ucInputMessage&lt;/STRONG&gt;, which can then be processed accordingly.&lt;BR /&gt;You can see this in operation in the video.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2016 21:14:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598356#M35073</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-12-11T21:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598357#M35074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow. Thanks for the quick response. Our firmware is based on Trinamic (see below).  Would the utasker code can be ported in easily based on your experience?  Have a good day.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.trinamic.com/support/eval-kits/eval-kits/landungsbruecke" target="test_blank"&gt;http://www.trinamic.com/support/eval-kits/eval-kits/landungsbruecke&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-- &lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;   Kiem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2016 22:01:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598357#M35074</guid>
      <dc:creator>kiemvo</dc:creator>
      <dc:date>2016-12-11T22:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598358#M35075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The uTasker project works immediately on almost any Kinetis (K, KL, KE, KEA, KV, KM etc.) and can be ported to any board within few minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11695i22AD419977DA05E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just set up a "TRINAMIC Landungsbrücke" target (see above) but couldn't complete it immediately due to the fact that the evaluation board is not correctly supported on the TRINAMIC web site - it gives you an STM32 based circuit diagram instead.... I see that the boards are obtainable at Digikey but are not that cheap. I therefore wonder why you chose this board and whether it is in fact used by anyone else?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I wrote to TRINAMIC to point out that the circuits are incorrect and also that they spell "Fresscale" incorrectly but got an automated response that technical support is only possibly via a ticketing system at a certain link. The link pointed to a dead page and on the web site there only mention of an old ticketing system that seems to no longer be offered. &lt;EM&gt;However I did later receive a response with the correct set diagrams and so have completed it in the meantime. Note that the chip on the board is the &lt;STRONG&gt;K20DX256VLL10&lt;/STRONG&gt; and not K20DN512VLL10!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 08:45:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598358#M35075</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-12-12T08:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598359#M35076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;This board will be used by our customer.&amp;nbsp; Currently they want to have CAN addressing and CAN communication on it.&amp;nbsp; That was why we had to use this board.&amp;nbsp; Please let me know if you get any responses from Trinamic.&amp;nbsp; We look forward to have a direction on how to implementing this on the board.&amp;nbsp; What are the necessary steps from your point of view?&amp;nbsp; Below are the steps that we have done.&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; Got the KSDK&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; Compiled the firmware code from Trinamic successfully.&amp;nbsp; We were able to get the .hex file and ready to load onto the board.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you recommend us what to do next?&amp;nbsp; We are looking on how CAN works, but what other information can we get?&amp;nbsp; How do we get CAN driver for the chip that we use (&lt;EM&gt;K20DN512VLL10&lt;/EM&gt;)?&amp;nbsp; Thanks a lot for your help.&amp;nbsp; We really appreciate it. &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 21:18:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598359#M35076</guid>
      <dc:creator>kiemvo</dc:creator>
      <dc:date>2016-12-12T21:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598360#M35077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the uTasker project you can immediately run CAN on your board by doing the following:&lt;BR /&gt;&lt;SPAN&gt;- import the project into KDS (or other IDE of preference) - KDS import details are at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2Fcompilers.html%23KDS" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/compilers.html#KDS&lt;/A&gt;&lt;BR /&gt;- enable TEENSY_3_1 as target (in config.h) - this is close to your board&lt;BR /&gt;- change #define KINETIS_MAX_SPEED&amp;nbsp;&amp;nbsp;&amp;nbsp; 72000000 to 100000000 (in config.h) to match your part&lt;BR /&gt;- enable CAN (in config.h) with #define CAN_INTERFACE&lt;BR /&gt;- change the command line interface to match your board (RS232) in app_hw_kinetis.h with&lt;BR /&gt;#define DEMO_UART&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;BR /&gt;- change the package size from&lt;BR /&gt;#define PIN_COUNT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIN_COUNT_64_PIN to PIN_COUNT_100_PIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you run this code on your board it will offer a command line interface on the RS232 with a CAN menu. It will configure CAN on PTA12 and PTA13 at 1'000'000 b/s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command line menu allows the following things to be done:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; CAN commands&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;===================&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;up&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; go to main menu&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;can&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Send to default [ch] &amp;lt;data hex&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;can_s&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Send to id [ch] &amp;lt;id&amp;gt; &amp;lt;data hex&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;can_e&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Send to ext. id [ch] &amp;lt;id&amp;gt; &amp;lt;data hex&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;can_r&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Request remote default [ch]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;can_rs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Request remote id [ch] &amp;lt;id&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;can_re&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Request remote ext. id [ch] &amp;lt;id&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;can_f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Free remote rx when no response&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;can_d&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Deposit remote message [ch] &amp;lt;data hex&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;can_c&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Clear remote message [ch]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;help&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Display menu specific help&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;quit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Leave command mode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More details at the video. You can then change IDs used, the frequency, port pin used or the CAN controller used in the CAN configuration interface if desired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't use KSDS; if you need to use KSDS you need to experiment with any CAN support that it has. You will probably need to use the KSDS forum in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 17:48:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598360#M35077</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-12-13T17:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598361#M35078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info, Mark.&amp;nbsp; The problem is that we need to use the &lt;A href="http://www.trinamic.com/support/eval-kits/eval-kits/landungsbruecke/" title="Landungsbruecke"&gt;Landungsbruecke &lt;/A&gt;firmware and develop everything based on that one.&amp;nbsp; Please correct me if I am wrong about the information that I have for the past few day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say I have a board that use Kinetis chip.&amp;nbsp; This is a simple board the SPI, UART, PWM, USB and CAN, and I would like to develop a firmware for it.&amp;nbsp; So what I need to do is:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; Get the KSDS and use Processor Expert to generate the driver for those interfaces.&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; Modify those drivers to match with the hardware (pin, clock speed, etc...)&lt;/P&gt;&lt;P&gt;3)&amp;nbsp; Compile and generate the firmware that has all those drivers&lt;/P&gt;&lt;P&gt;4)&amp;nbsp; Load onto the board&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing any steps?&amp;nbsp; This is the first time we work with Kinetis chip.&amp;nbsp; We have worked with Sigma Designs chip before.&amp;nbsp; Now, let say we have a firmware and would like to add another interface like Step/Direction.&amp;nbsp; Do we have to redo all the above steps again or we can just use the Processor Expert to generate the needed interface driver and combine it to the exist firmware?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much again.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 19:20:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598361#M35078</guid>
      <dc:creator>kiemvo</dc:creator>
      <dc:date>2016-12-13T19:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598362#M35079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are various methods to achieve a firmware solution (they will all work at the end) - &lt;EM&gt;the main difference being in the amount of time it takes to complete the exercise to the required level of functionality and quality&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Landungsbruecke software is a simple main loop calling some parts that look to be specific to their external motor parts. Then they have packed in a number of peripherals that look to originate from the Freescale libraries - I don't know whether they work in the project or are there to help extensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I were doing the project I would simply drop this main loop into a task in the uTasker project so that you have all of that plus a more flexible project (including more peripherals and more USB classes, the peripherals that you need that are also documented). PE is not of any advantage in this case since the work has already been completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you prefer to use PE and mix parts from various sources and adapt their drivers where necessary it is also possible but may take many times longer before you have basic functionality and possible many times longer again until you have complete reliable operation - depending on your experience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Adding existing code that you have to a project is described in chapter 8 of &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FuTasker%2FuTaskerV1.4_user_guide.PDF" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerV1.4_user_guide.PDF&lt;/A&gt;&lt;BR /&gt;I would estimate about 3 hours work to complete an operating framework of such a project using this technique (with some learning of project details on the way and I would also directly simulate the Tinamic part in the process to be sure of its details and the correct operation before attempting to run on the HW).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 22:33:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598362#M35079</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-12-13T22:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598363#M35080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your valuable information.&amp;nbsp; Let's say for the current code from Trinamic (for Landungsbruecke board) and forget about other interfaces, if I would like to have CAN communication only, where and how I can obtain the CAN library source code and driver?&amp;nbsp; Do I need to use PE to generate it or I can just get the source code and driver from NXP?&amp;nbsp; Sorry about these questions but this is the first time we work with Freescale MCU.&amp;nbsp; When I searched the project structure, there is only CAN_PDD.h file.&amp;nbsp; Thanks again.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 23:31:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598363#M35080</guid>
      <dc:creator>kiemvo</dc:creator>
      <dc:date>2016-12-13T23:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598364#M35081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kiem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry but I don't work with the PE or the KSDK components.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you need an immediate and complete solution I can give you one but if you need to use the NXP components I can't help and you will need to contact NXP, wait until someone can help, or experiment until you achieve it. Probably it is better to ask in the KSDK forum rather than the general Kinetis one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 00:14:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598364#M35081</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-12-14T00:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598365#M35082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much for all your helps.&amp;nbsp; Your information is really helpful.&amp;nbsp; Have a good day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 00:49:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598365#M35082</guid>
      <dc:creator>kiemvo</dc:creator>
      <dc:date>2016-12-14T00:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598366#M35083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best complete solution to achieve this in a minimal amount of time?&amp;nbsp; Thank you very much.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 19:34:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598366#M35083</guid>
      <dc:creator>kiemvo</dc:creator>
      <dc:date>2016-12-14T19:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598367#M35084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have implemented CAN bus.&amp;nbsp; However, we have an issue.&amp;nbsp; The CAN master keeps sending out messages (we probed and saw the waveform on Oscilloscope), but the slave nodes cannot receive or respond.&amp;nbsp; We also probed CAN-H and CAN-L pins of the slave and saw the exact waveform, but the slaves take no actions.&amp;nbsp; In the meantime, it seems to us that the sending function had issue with interruption (it could not get out the critical session).&amp;nbsp; My co-worker has also posted the question here &lt;A href="https://community.nxp.com/message/866758"&gt;https://community.nxp.com/message/866758&lt;/A&gt; .&amp;nbsp; Any helps will be greatly appreciate.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 19:02:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598367#M35084</guid>
      <dc:creator>kiemvo</dc:creator>
      <dc:date>2017-01-11T19:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598368#M35085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiem&lt;BR /&gt;&lt;BR /&gt;Unfortunately I can't really help with PE generated code - possibly it is not correctly mapping the interrupt ID to match the chip you use?&lt;/P&gt;&lt;P&gt;Take a look at the uTasker project that you received to see how it does it (you can also check the operation in VisualStudio without need for HW).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 19:31:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598368#M35085</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-01-11T19:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598369#M35086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Earl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use Kinetis CAN peripheral.&amp;nbsp; We have implemented CAN bus.&amp;nbsp; However, we have an issue.&amp;nbsp; The CAN master keeps sending out messages (we probed and saw the waveform on Oscilloscope), but the slave nodes cannot receive or respond.&amp;nbsp; We also probed CAN-H and CAN-L pins of the slave and saw the exact waveform, but the slaves take no actions.&amp;nbsp; In the meantime, it seems to us that the sending function had issue with interruption (it could not get out the critical session).&amp;nbsp; My co-worker has also posted the question here &lt;A _jive_internal="true" class="" data-containerid="2019" data-containertype="14" data-objectid="442352" data-objecttype="1" href="https://community.nxp.com/thread/442352"&gt;Problem with CAN BUS communication (MK20DN512VLL10)&lt;/A&gt; .&amp;nbsp; Any helps will be greatly appreciate.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 03:11:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598369#M35086</guid>
      <dc:creator>kiemvo</dc:creator>
      <dc:date>2017-01-12T03:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: CAN BUS communication for MK20DN512VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598370#M35087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CAN is quite intolerant of comunication link parameter variations.&amp;nbsp; I assume these 'slave nodes' are 'known to work' in the speed of interest.&amp;nbsp; Do you see these slave(s) attempt to TX anything [strobes on their TX pin(s)] at the end of these Kinetis-sent packets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the 'ultimate' clock source for your Kinetis CAN peripheral?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 00:32:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-BUS-communication-for-MK20DN512VLL10/m-p/598370#M35087</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-01-13T00:32:40Z</dc:date>
    </item>
  </channel>
</rss>

