<?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 Initialization Problem KE06 - Processor Expert in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/CAN-Initialization-Problem-KE06-Processor-Expert/m-p/605248#M7609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Luca,&lt;/P&gt;&lt;P&gt;Sorry it seems there is a bug in the generated code of&amp;nbsp; the function "CAN1_Init()",&lt;/P&gt;&lt;P&gt;it have not enable the TX interrupt . Please add this code into this function have&lt;/P&gt;&lt;P&gt;a try :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MSCAN_PDD_EnableTxMessageBufferInterruptMask(MSCAN_BASE_PTR,0X01U);&lt;/EM&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/9263i86264515A6B0CDB4/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;After add this word , then enable the "Don't Write Generated Component Moudules":&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/9300i8934F1F7E76AB1D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then build your project , have a try , if still have question , please contact me without any hesitate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice Yang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2016 08:53:24 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2016-11-28T08:53:24Z</dc:date>
    <item>
      <title>CAN Initialization Problem KE06 - Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/CAN-Initialization-Problem-KE06-Processor-Expert/m-p/605244#M7605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use&amp;nbsp;two FRDM-KE06Z boards to test a simple CAN application (bare metal style).&lt;/P&gt;&lt;P&gt;I've removed the SDA connection, and I'm debugging the appliction&amp;nbsp;by the PE Micro Universal Multilink.&lt;/P&gt;&lt;P&gt;I've started the the main timer interrupt and it works fine, then I've added the CAN Initialization Routine, as it is generated by the Precessor Expert (included in the CodeWarrior vers. 10.6.4).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, the initialization routine doesn't exit from the initial state. It&amp;nbsp;seems it&amp;nbsp;tries to clear the INITRQ bit of the CANCTL0&amp;nbsp;register,&amp;nbsp;but it doesn't succed.&amp;nbsp;Entering the debugging mode&amp;nbsp;I see that the application&amp;nbsp;is looping&amp;nbsp;checking the INITAK bit of the CANCTL1 register, which&amp;nbsp;never&amp;nbsp;goes to low state (please have a look to the attached picture).&lt;/P&gt;&lt;P&gt;I've tried to rewrite the Init routine following the KE06 user manual, but I've got bad results (unandled interrupt stop,...).&lt;/P&gt;&lt;P&gt;I also attach the simple configuration sets (all interrupts are disabled).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anybody help me? Any suggestion welcome...&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much in advance&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Luca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Nov 2016 08:41:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/CAN-Initialization-Problem-KE06-Processor-Expert/m-p/605244#M7605</guid>
      <dc:creator>lucaag</dc:creator>
      <dc:date>2016-11-20T08:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Initialization Problem KE06 - Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/CAN-Initialization-Problem-KE06-Processor-Expert/m-p/605245#M7606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Luca,&lt;/P&gt;&lt;P&gt;- There is example under CAN_LDD component , you can refer to it&amp;nbsp; :&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/8883i6CF824DB1B04F335/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;- After refer to the Typical Usage , if still can not work , you can share your project to me , and i check it on my side for you .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice Yang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 02:48:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/CAN-Initialization-Problem-KE06-Processor-Expert/m-p/605245#M7606</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-11-21T02:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Initialization Problem KE06 - Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/CAN-Initialization-Problem-KE06-Processor-Expert/m-p/605246#M7607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you again for your suggestion.&lt;/P&gt;&lt;P&gt;Unfortunately I'm still not able to make the system working. Be aware I'm trying to debug&amp;nbsp;the application on a couple of boards FRDM_KE06Z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I've tried to&amp;nbsp;write&amp;nbsp;a simple application in two parts: the first one&amp;nbsp;should&amp;nbsp;send a&amp;nbsp;frame after initialization as per the&amp;nbsp;Processor Expert examples, the second one should&amp;nbsp;wait&amp;nbsp;for two frames after the intialisation.&amp;nbsp;After theese operations, the two board should start to blink the led (the&amp;nbsp;blue one the&amp;nbsp;sender and the green one the receiver).&lt;/P&gt;&lt;P&gt;When I enter in debug mode, I see that the&amp;nbsp;application loops waiting&amp;nbsp;the flag &amp;nbsp;DataFrameTxFlg/DataFrameRxFlg&amp;nbsp;to be set. Neither enter the interrupt. Once I remove the waiting of the flag, the led start to work regularly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know what is wrong... may be the bus should be taken off theBus Off condition...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I forward the two simple&amp;nbsp;projects. If you can have a look at your site, I'd be very greatful.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2016 10:39:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/CAN-Initialization-Problem-KE06-Processor-Expert/m-p/605246#M7607</guid>
      <dc:creator>lucaag</dc:creator>
      <dc:date>2016-11-26T10:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Initialization Problem KE06 - Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/CAN-Initialization-Problem-KE06-Processor-Expert/m-p/605247#M7608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hereby the last version which includes both TX/RX. As I mentioned, it sends the two frames only during the FRDM_KE06 initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, Luca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Nov 2016 08:19:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/CAN-Initialization-Problem-KE06-Processor-Expert/m-p/605247#M7608</guid>
      <dc:creator>lucaag</dc:creator>
      <dc:date>2016-11-27T08:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Initialization Problem KE06 - Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/CAN-Initialization-Problem-KE06-Processor-Expert/m-p/605248#M7609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Luca,&lt;/P&gt;&lt;P&gt;Sorry it seems there is a bug in the generated code of&amp;nbsp; the function "CAN1_Init()",&lt;/P&gt;&lt;P&gt;it have not enable the TX interrupt . Please add this code into this function have&lt;/P&gt;&lt;P&gt;a try :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MSCAN_PDD_EnableTxMessageBufferInterruptMask(MSCAN_BASE_PTR,0X01U);&lt;/EM&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/9263i86264515A6B0CDB4/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;After add this word , then enable the "Don't Write Generated Component Moudules":&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/9300i8934F1F7E76AB1D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then build your project , have a try , if still have question , please contact me without any hesitate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice Yang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 08:53:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/CAN-Initialization-Problem-KE06-Processor-Expert/m-p/605248#M7609</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-11-28T08:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Initialization Problem KE06 - Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/CAN-Initialization-Problem-KE06-Processor-Expert/m-p/605249#M7610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice and Luca,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;I'm back from an absence of 6 month on a similar project using a couple (more then two) of FRDM-KE06Z board.&amp;nbsp;&lt;/SPAN&gt;Has you wrote earlier, I think I have a similar problem. When I try to use the code example of the typical use in the CAN_LDD help the interrupt never happen and the CAN controller send the same CAN frame indefinitely (continually).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;I tried to add the : «&lt;/SPAN&gt;&lt;EM style="border: none windowtext 1.0pt; padding: 0cm; color: #51626f; background: white; font-size: 11.5pt;"&gt;MSCAN_PDD_EnableTxMessageBufferInterruptMask(MSCAN_BASE_PTR,0X01U);&amp;nbsp;» &lt;/EM&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;instruction in the CAN1_Init() function but there’s no change.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;I’m using Freemaster to see all the CAN registers and a CAN analyzer to monitor the CAN frame during debug but I’m a bit confuse on where to look to find what’s wrong. Beside the missing TX interrupt enable, is there something else?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Bruno&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 17:20:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/CAN-Initialization-Problem-KE06-Processor-Expert/m-p/605249#M7610</guid>
      <dc:creator>brunotremblay</dc:creator>
      <dc:date>2017-04-03T17:20:03Z</dc:date>
    </item>
  </channel>
</rss>

