<?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: MSCANDRIVER Questions in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/MSCANDRIVER-Questions/m-p/977773#M2720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To identify&amp;nbsp;from where is received the CAN message one way could be to set a Mailbox with each ID that you mention, this could help you identify from which ID came the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jan 2020 22:31:47 GMT</pubDate>
    <dc:creator>Alexis_A</dc:creator>
    <dc:date>2020-01-22T22:31:47Z</dc:date>
    <item>
      <title>MSCANDRIVER Questions</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/MSCANDRIVER-Questions/m-p/977772#M2719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a s9keaz64amlh user.&lt;BR /&gt;I want to inquire about MSCAN.&lt;BR /&gt;I use 'MSCANDRIVER' provided by nxp.&lt;BR /&gt;CAN communication was confirmed.&lt;BR /&gt;So I try to do what I want, but I'm not good at it.&lt;/P&gt;&lt;P&gt;I try to run the motor when I get a certain CAN ID.&lt;BR /&gt;For example, I want to make a program where 0X81 is motor operation and 0X82 is motor reverse operation.&lt;BR /&gt;However, after writing the code as below, the specific CANID cannot be identified.&lt;/P&gt;&lt;P&gt;int main (void)&lt;BR /&gt;{&lt;BR /&gt;UINT8 err_status;&lt;/P&gt;&lt;P&gt;UINT32 a;&lt;/P&gt;&lt;P&gt;UINT8 data [7] = {6, 0, 0xff, 0, 0xff, 0, 0xff};&lt;BR /&gt;UINT8 Rdata [8];&lt;BR /&gt;UINT8 buffer_status [2];&lt;/P&gt;&lt;P&gt;Init_CAN (0, FAST);&lt;BR /&gt;Config_CAN_MB (0, 2, RXDF, 1);&lt;BR /&gt;GPIO_Init ();&lt;BR /&gt;Clk_Init ();&lt;BR /&gt;FAIL_APPLY ();&lt;BR /&gt;MSCAN_ModuleEn ();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GPIOB_PDDR | = (1 &amp;lt;&amp;lt; 16);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GPIOB_PCOR = (1 &amp;lt;&amp;lt; 16);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;EnableInterrupts;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for (;;) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;What should I modify in this code and how do I set a specific id?&lt;/P&gt;&lt;P&gt;I would appreciate it if you let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( a == 0x81){&lt;/P&gt;&lt;P&gt;&amp;nbsp;motor operation;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else if (a ==82){&lt;/P&gt;&lt;P&gt;&amp;nbsp;motor reverse operation;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know a function or variable that sets a == 0x81 or 0x82.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 07:37:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/MSCANDRIVER-Questions/m-p/977772#M2719</guid>
      <dc:creator>ljs20104</dc:creator>
      <dc:date>2020-01-21T07:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: MSCANDRIVER Questions</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/MSCANDRIVER-Questions/m-p/977773#M2720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To identify&amp;nbsp;from where is received the CAN message one way could be to set a Mailbox with each ID that you mention, this could help you identify from which ID came the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2020 22:31:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/MSCANDRIVER-Questions/m-p/977773#M2720</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-01-22T22:31:47Z</dc:date>
    </item>
  </channel>
</rss>

