<?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のトピックK60 Flexcan maximum mailboxes available</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/K60-Flexcan-maximum-mailboxes-available/m-p/386291#M12869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know the mailboxes available in the K60FX512. I set up the register CAN1_MCR |= CAN_MCR_MAXMB(31) and also the interrupt bits into the register CAN_IMASK1 for the 31 mailboxes . However, when the bit 16 of this register is enabled, it remains in 0. I have tried to find out the maximum of mailboxes available on this microcontroller but I have not been able to find out it.&lt;/P&gt;&lt;P&gt;If 16 (from 0 to 15) mailboxes are enabled, everything works properly, getting the interrupt flags.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Best Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Feb 2015 13:52:16 GMT</pubDate>
    <dc:creator>juanandujar</dc:creator>
    <dc:date>2015-02-19T13:52:16Z</dc:date>
    <item>
      <title>K60 Flexcan maximum mailboxes available</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/K60-Flexcan-maximum-mailboxes-available/m-p/386291#M12869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know the mailboxes available in the K60FX512. I set up the register CAN1_MCR |= CAN_MCR_MAXMB(31) and also the interrupt bits into the register CAN_IMASK1 for the 31 mailboxes . However, when the bit 16 of this register is enabled, it remains in 0. I have tried to find out the maximum of mailboxes available on this microcontroller but I have not been able to find out it.&lt;/P&gt;&lt;P&gt;If 16 (from 0 to 15) mailboxes are enabled, everything works properly, getting the interrupt flags.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Best Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 13:52:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/K60-Flexcan-maximum-mailboxes-available/m-p/386291#M12869</guid>
      <dc:creator>juanandujar</dc:creator>
      <dc:date>2015-02-19T13:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: K60 Flexcan maximum mailboxes available</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/K60-Flexcan-maximum-mailboxes-available/m-p/386292#M12870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Juan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately there is not an api in order to know the mailboxes available, however you can use the below functions:&lt;/P&gt;&lt;P&gt;the FLEXCAN_Int_status() function. This function returns the interrupt status of the specified FlexCAN module based on the value of ERRSTAT register.&lt;/P&gt;&lt;P&gt;Return Value&lt;/P&gt;&lt;P&gt;• FLEXCAN_OK (success)&lt;/P&gt;&lt;P&gt;• FLEXCAN_INVALID_ADDRESS (wrong device number)&lt;/P&gt;&lt;P&gt;• FLEXCAN_TX_RX_INT (any message buffer interrupt pending)&lt;/P&gt;&lt;P&gt;• FLEXCAN_ERROR_INT (error interrupt pending)&lt;/P&gt;&lt;P&gt;• FLEXCAN_BUSOFF_INT (bus off interrupt pending)&lt;/P&gt;&lt;P&gt;• FLEXCAN_WAKEUP_INT (wake up interrupt pending)&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;/* get interrupt status */&lt;/P&gt;&lt;P&gt;uint32_t result = FLEXCAN_Int_status(0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FLEXCAN_Tx_mailbox() function.This function transmits message once. The mailbox must already be set up. The length of the input data buffer must correspond to the mailbox data length.&lt;/P&gt;&lt;P&gt;Return Value&lt;/P&gt;&lt;P&gt;• FLEXCAN_OK (success)&lt;/P&gt;&lt;P&gt;• FLEXCAN_INVALID_ADDRESS (wrong device number)&lt;/P&gt;&lt;P&gt;• FLEXCAN_INVALID_MAILBOX (wrong message buffer number)&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;/* send data using message buffer 15 */&lt;/P&gt;&lt;P&gt;uint32_t result = FLEXCAN_Tx_mailbox(0,15,data_ptr);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FLEXCAN_Rx_mailbox() function. This function receives data from a given message buffer. User should check the error codes for appropriate&lt;/P&gt;&lt;P&gt;handling. The mailbox is again activated and prepared for further receiving.&lt;/P&gt;&lt;P&gt;Return Value&lt;/P&gt;&lt;P&gt;• FLEXCAN_OK (data received, success)&lt;/P&gt;&lt;P&gt;• FLEXCAN_MESSAGE_BUSY (data received, but the state was busy)&lt;/P&gt;&lt;P&gt;• FLEXCAN_MESSAGE_LOST (data received, but one or more messages were lost)&lt;/P&gt;&lt;P&gt;• FLEXCAN_INVALID_ADDRESS (wrong device number)&lt;/P&gt;&lt;P&gt;• FLEXCAN_INVALID_MAILBOX (wrong message buffer number)&lt;/P&gt;&lt;P&gt;• FLEXCAN_NO_MESSAGE (mailbox is empty)&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;/* receive data from message buffer 15 */&lt;/P&gt;&lt;P&gt;uint32_t result = FLEXCAN_Rx_mailbox(0,15,data_ptr);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find more information in the Freescale MQX™ I/O Drivers – User Guide (chapter 17) that you can find at the next path: C:\Freescale\Freescale_MQX_4_1\doc\mqx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt; Sol &lt;BR /&gt; &lt;BR /&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, 23 Feb 2015 22:14:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/K60-Flexcan-maximum-mailboxes-available/m-p/386292#M12870</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-02-23T22:14:25Z</dc:date>
    </item>
  </channel>
</rss>

