<?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: Anyone know an easy way to enable old flexcan driver over the new fsl_flexcan?</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Anyone-know-an-easy-way-to-enable-old-flexcan-driver-over-the/m-p/339658#M10936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to transmit CAN messages.&lt;/P&gt;&lt;P&gt;I can see the device's reply with a tool (Vehicle Spy 3).&lt;/P&gt;&lt;P&gt;But, I never get the receive interrupt with the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, this same exact code works just fine under MQX v4.0.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Sep 2014 19:53:52 GMT</pubDate>
    <dc:creator>jamesmonczynski</dc:creator>
    <dc:date>2014-09-04T19:53:52Z</dc:date>
    <item>
      <title>Anyone know an easy way to enable old flexcan driver over the new fsl_flexcan?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Anyone-know-an-easy-way-to-enable-old-flexcan-driver-over-the/m-p/339657#M10935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I admit, I'm not that experienced with modifying the custom BSP based off of the twrk70f120m.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my legacy code uses the old flexcan driver (as opposed to the new fsl driver).&lt;/P&gt;&lt;P&gt;flexcan_mk70.c&lt;/P&gt;&lt;P&gt;kflexcan.c&lt;/P&gt;&lt;P&gt;kflexcan.h&lt;/P&gt;&lt;P&gt;kflexcan_int.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to add these files to the BSP, in the same "Peripheral_IO_Drivers\flexcan" folder, I get an error about adding files to a virtual folder.&lt;/P&gt;&lt;P&gt;So, I copied the files into my project, handled all compile errors, updated bsp.h to include appropriate files, and got the project to compile/link (minor warnings seen from bsp).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried out the project and CAN still does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I think I'm missing something by not disabling the new fsl flexcan driver and not enabling the old flexcan driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone point in the right direction to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 13:45:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Anyone-know-an-easy-way-to-enable-old-flexcan-driver-over-the/m-p/339657#M10935</guid>
      <dc:creator>jamesmonczynski</dc:creator>
      <dc:date>2014-09-04T13:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know an easy way to enable old flexcan driver over the new fsl_flexcan?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Anyone-know-an-easy-way-to-enable-old-flexcan-driver-over-the/m-p/339658#M10936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to transmit CAN messages.&lt;/P&gt;&lt;P&gt;I can see the device's reply with a tool (Vehicle Spy 3).&lt;/P&gt;&lt;P&gt;But, I never get the receive interrupt with the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, this same exact code works just fine under MQX v4.0.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 19:53:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Anyone-know-an-easy-way-to-enable-old-flexcan-driver-over-the/m-p/339658#M10936</guid>
      <dc:creator>jamesmonczynski</dc:creator>
      <dc:date>2014-09-04T19:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know an easy way to enable old flexcan driver over the new fsl_flexcan?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Anyone-know-an-easy-way-to-enable-old-flexcan-driver-over-the/m-p/339659#M10937</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;I recommend you study the following documents.&lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale_MQX_4_1\doc\mqx\MQX_BSP_Porting_Guide.pdf&lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale_MQX_4_1\doc\mqx\MQX_BSP_Porting_Example_User_Guide.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two documents described how to remove driver source files from BSP project, and how to add driver source files to BSP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 01:21:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Anyone-know-an-easy-way-to-enable-old-flexcan-driver-over-the/m-p/339659#M10937</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2014-09-05T01:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Anyone know an easy way to enable old flexcan driver over the new fsl_flexcan?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Anyone-know-an-easy-way-to-enable-old-flexcan-driver-over-the/m-p/339660#M10938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;The rub with the old flexcan drivers working with the newer MQX4.1.x is data types changed as well, and duplicate function declaration.&lt;/P&gt;&lt;P&gt;I'll attach all the files I touched into a ZIP that come from the MQX4.1.1 installation and specifically tested on the TWR-K70F120M.&lt;/P&gt;&lt;P&gt;I basically #defined out the new flexcan code in the fsl_flexcan_test.c and fsl_flexcan_test.h and replaced with the MQX4.0.1 test.c/.h code.&lt;/P&gt;&lt;P&gt;I then had to include flexcan_mk70.c, kflexcan_int.c, kflexcan.c, and kflexcan.h in the BSP-&amp;gt;Peripheral_IO_Drivers-&amp;gt;flexcan folder (simple drag-n-drop from the MQX4.0.1 path).&lt;/P&gt;&lt;P&gt;I also had to add one file (kflexcan.h) copy in the post build batch file to copy header file into the /lib path.&lt;/P&gt;&lt;P&gt;I did have to short R22 (signal PTC16 to edge connector for CAN1_RX signal) and R23 (signal PTC17 to edge connector for CAN1_TX signal) to allows signals to get to the TWR-SER card J5 header block.&lt;/P&gt;&lt;P&gt;Note I had to copy the flexcan_nk70.c file from MQX4.0.1 as it was not in the MQX4.1.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A screen shot of the files I touched is here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ScreenHunter_71 Sep. 05 13.37.gif"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45581i0874E3D17E80A530/image-size/large?v=v2&amp;amp;px=999" role="button" title="ScreenHunter_71 Sep. 05 13.37.gif" alt="ScreenHunter_71 Sep. 05 13.37.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I did test using 2 TWR-K70F120M tower kits with one setup as NODE 1 and the other NODE 2.&lt;/P&gt;&lt;P&gt;I also re-tested that I could change my #if 1 to #if 0 in the fls_flexcan_test.c source file to switch back to using the new flexcan driver.&lt;/P&gt;&lt;P&gt;The comment to that #if is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//DES 1=old &lt;SPAN style="text-decoration: underline;"&gt;flexcan&lt;/SPAN&gt; driver test.c code, 0=new &lt;SPAN style="text-decoration: underline;"&gt;flexcan&lt;/SPAN&gt; driver code&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 18:57:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Anyone-know-an-easy-way-to-enable-old-flexcan-driver-over-the/m-p/339660#M10938</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2014-09-05T18:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know an easy way to enable old flexcan driver over the new fsl_flexcan?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Anyone-know-an-easy-way-to-enable-old-flexcan-driver-over-the/m-p/339661#M10939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found out , after reading, it is VERY simple to remove new and restore old.&lt;/P&gt;&lt;P&gt;The problem for me was not copying the files, but using links. I need to read better :smileyhappy:.&lt;/P&gt;&lt;P&gt;I found the typedef problems, easy enough.&lt;/P&gt;&lt;P&gt;So, just as I got your post email, I was testing and my old flexcan was working. Woohoo!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, now I will look at what you have done because future projects will use the new fsl method.&lt;/P&gt;&lt;P&gt;It will be nice to be able to switch back and forth to support legacy code and new development.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 19:18:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Anyone-know-an-easy-way-to-enable-old-flexcan-driver-over-the/m-p/339661#M10939</guid>
      <dc:creator>jamesmonczynski</dc:creator>
      <dc:date>2014-09-05T19:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know an easy way to enable old flexcan driver over the new fsl_flexcan?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Anyone-know-an-easy-way-to-enable-old-flexcan-driver-over-the/m-p/1672553#M18802</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no access to these files. Kindly help.&lt;/P&gt;&lt;P&gt;I am actually trying to integrate the updated CAN driver(fslcan.c abd fslcan.h), There are no build errors after integration but the communication is not happening via can. I mean I couldn't send CAN messages from machine to board.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly Help.&lt;/P&gt;&lt;P&gt;Thanks much!!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 08:39:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Anyone-know-an-easy-way-to-enable-old-flexcan-driver-over-the/m-p/1672553#M18802</guid>
      <dc:creator>LavanyaK</dc:creator>
      <dc:date>2023-06-20T08:39:09Z</dc:date>
    </item>
  </channel>
</rss>

