<?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>LPC MicrocontrollersのトピックRe: I can't configure CAN on an LPC54608</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-can-t-configure-CAN-on-an-LPC54608/m-p/1080557#M41526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Diego,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the board LPC54618 and had similar problems with CAN. Unfortunately I am not familiar with the other devices.&lt;/P&gt;&lt;P&gt;The code you posted is certainly from one of those reference examples from the SDK, isn't it?&lt;BR /&gt;But it seems to me that it is not complete.&amp;nbsp;I also took a reference example and modified it, but it contains more lines of code. Could you possibly attach the whole code? It will help me enormously with the debugging and I could try out your code on my board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An error source could be the identifier. That was also my first mistake. Do the other boards also react to the ID &lt;EM&gt;0x321&lt;/EM&gt;? This is the ID from the example, but the boards in the network may expect a different ID.&lt;/P&gt;&lt;P&gt;This seems to me to be the most likely case, because you can see the signals on the oscilloscope, but the other participants do not react to them.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For debugging, I had the messages sent via &lt;EM&gt;PRINTF&lt;/EM&gt; output to the console. Furthermore I used the callback function to display the status registers, which told me that my CAN is not initialized at all:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;static void mcan_callback(CAN_Type *base, mcan_handle_t *handle, status_t status, uint32_t result, void *userData)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;PRINTF("Callback&amp;nbsp;&amp;nbsp; status: 0x%x", status);&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;PRINTF("&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IR: 0x%x \r\n", base-&amp;gt;IR);&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;switch (status)...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About this output I could find out the error. You can find more information about this in my case at&amp;nbsp;&lt;A href="https://community.nxp.com/thread/531091"&gt;MCUXpresso combine mcan and ethernet&lt;/A&gt;&amp;nbsp; in the later comments. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I could help. If it doesn't solve your problem, I&amp;nbsp;would try your code on my board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2020 19:10:50 GMT</pubDate>
    <dc:creator>simon_hilt</dc:creator>
    <dc:date>2020-05-14T19:10:50Z</dc:date>
    <item>
      <title>I can't configure CAN on an LPC54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-can-t-configure-CAN-on-an-LPC54608/m-p/1080556#M41525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;Hi, I have a CAN network with an MPC5634 and an MCF51JM128 assembled and now I want to add an LPC54608 to that network and I cannot find the correct configuration.&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;The MPC5634 has the following configuration:&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;/*-----------------------------------------------------------*/&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;/*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CAN_A.MCR Module Control Register&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*/&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;/*-----------------------------------------------------------*/&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;CAN_A.MCR.R = 0x5980000F;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Enabling the CAN module : Enabled */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Freeze Enable :Enabled*/&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* FIFO Enable :Disabled */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Halt : Enabled*/&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Wake Up Interrupt Mask : Disabled */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Soft Reset : Disabled */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Supervisor Mode : Enabled */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Self Wake Up : Disabled */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Warning Interrupt : Disabled */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Wake Up Source : Disabled */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Doze Mode : Disabled */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Self Reception : Disabled */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Backwards Compatibility Configuration : Disabled */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Local Priority Enable : Disabled */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Abort Enable : Disabled */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* ID Acceptance Mode : A*/&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Maximum Number of Message Buffers : 15*/&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;/*------------------------------------------------------------*/&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;/*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CAN_A.CRControl Register&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*/&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;/*------------------------------------------------------------*/&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;CAN_A.CR.R&amp;nbsp;= 0x09DB2006;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Bus -Off Interrupt Mask: Disabled */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* CAN bit Sampling Mode: 1 Sample */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* CAN Error Interrupt Mask: Disabled */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Clock Source: System */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Listen Only Mode: Disabled */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Loop Back Mode: Disabled */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Bus off Recovery: Enabled */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Lowest Buffer Transfer First: Disabled*/&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Phase Segment1: 4 */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Phase Segment2: 4 */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Prescalar Division Factor: 10 */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Propagation Segment: 7 */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Resynchronization Jump Width: 4 */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Timer Synch Mode: Disabled */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;And the Coldfire has the following configuration:&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&lt;IMG alt="XP - CodeWarrior-2020-05-12-20-28-27" src="https://support.nxp.com/sfc/servlet.shepherd/version/download/0682p00000AWqNS?asPdf=false&amp;amp;operationContext=CHATTER" style="border: 0px; margin-bottom: 0.75rem;" /&gt;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;For the LPC54608 I am using the MCUXpresso IDE SDK with the following configuration:&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;MCAN_GetDefaultConfig(&amp;amp;mcanConfig);&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;MCAN_Init(EXAMPLE_MCAN, &amp;amp;mcanConfig, MCAN_CLK_FREQ);&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;/* Create MCAN handle structure and set call back function. */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;MCAN_TransferCreateHandle(EXAMPLE_MCAN, &amp;amp;mcanHandle, mcan_callback, NULL);&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;/* Set Message RAM base address and clear to avoid BEU/BEC error. */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;MCAN_SetMsgRAMBase(EXAMPLE_MCAN, MSG_RAM_BASE);&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;uint32_t *p=(uint32_t *)(MSG_RAM_BASE);&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;memset(p, 0, TX_BUFFER_OFS + 0x10U);&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;/* TX buffer config. */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;txBuffer.address = TX_BUFFER_OFS;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;txBuffer.dedicatedSize = 1U;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;txBuffer.fqSize = 0;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;txBuffer.datafieldSize = kMCAN_8ByteDatafield;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;MCAN_SetTxBufferConfig(EXAMPLE_MCAN, &amp;amp;txBuffer);&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;/* Finish software initialization and enter normal mode, synchronizes to&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CAN bus, ready for communication */&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;MCAN_EnterNormalMode(EXAMPLE_MCAN);&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;txIdentifier = 0x321U;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;uint8_t tx_data[8]={0x0,0x1U,0x2U,0x3U,0x4U,0x5U,0x6U,0x7U};&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;tx_data[0] += count++;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;txFrame.xtd = kMCAN_FrameIDStandard;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;txFrame.rtr = kMCAN_FrameTypeData;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;txFrame.fdf = 0;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;txFrame.brs = 0;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;txFrame.dlc = 8U;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;txFrame.id = txIdentifier &amp;lt;&amp;lt; STDID_OFFSET;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;txFrame.data = tx_data;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;txFrame.size = 8U;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;txXfer.frame = &amp;amp;txFrame;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;txXfer.bufferIdx = 0;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;MCAN_TransferSendNonBlocking(EXAMPLE_MCAN, &amp;amp;mcanHandle, &amp;amp;txXfer);&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;After this the signal is seen on the oscilloscope but none of the devices on the network detect it.&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;I tried several options that the SDK allows me without results.&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;I need help.&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;Best Regards&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.8); font-size: 13px;"&gt;Diego Perea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2020 23:42:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-can-t-configure-CAN-on-an-LPC54608/m-p/1080556#M41525</guid>
      <dc:creator>diegoperea</dc:creator>
      <dc:date>2020-05-12T23:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: I can't configure CAN on an LPC54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-can-t-configure-CAN-on-an-LPC54608/m-p/1080557#M41526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Diego,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the board LPC54618 and had similar problems with CAN. Unfortunately I am not familiar with the other devices.&lt;/P&gt;&lt;P&gt;The code you posted is certainly from one of those reference examples from the SDK, isn't it?&lt;BR /&gt;But it seems to me that it is not complete.&amp;nbsp;I also took a reference example and modified it, but it contains more lines of code. Could you possibly attach the whole code? It will help me enormously with the debugging and I could try out your code on my board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An error source could be the identifier. That was also my first mistake. Do the other boards also react to the ID &lt;EM&gt;0x321&lt;/EM&gt;? This is the ID from the example, but the boards in the network may expect a different ID.&lt;/P&gt;&lt;P&gt;This seems to me to be the most likely case, because you can see the signals on the oscilloscope, but the other participants do not react to them.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For debugging, I had the messages sent via &lt;EM&gt;PRINTF&lt;/EM&gt; output to the console. Furthermore I used the callback function to display the status registers, which told me that my CAN is not initialized at all:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;static void mcan_callback(CAN_Type *base, mcan_handle_t *handle, status_t status, uint32_t result, void *userData)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;PRINTF("Callback&amp;nbsp;&amp;nbsp; status: 0x%x", status);&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;PRINTF("&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IR: 0x%x \r\n", base-&amp;gt;IR);&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;switch (status)...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About this output I could find out the error. You can find more information about this in my case at&amp;nbsp;&lt;A href="https://community.nxp.com/thread/531091"&gt;MCUXpresso combine mcan and ethernet&lt;/A&gt;&amp;nbsp; in the later comments. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I could help. If it doesn't solve your problem, I&amp;nbsp;would try your code on my board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 19:10:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-can-t-configure-CAN-on-an-LPC54608/m-p/1080557#M41526</guid>
      <dc:creator>simon_hilt</dc:creator>
      <dc:date>2020-05-14T19:10:50Z</dc:date>
    </item>
  </channel>
</rss>

