<?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: LPC55S16JBD64 CAN is not working</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16JBD64-CAN-is-not-working/m-p/1726654#M54154</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As the pin assignment in data sheet of LPC551x, the Func bits should be 1 instead of 9.&lt;/P&gt;
&lt;P&gt;So pls try to use the code in the pin_mux.c&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;const uint32_t port1_pin3_config = (/* Pin is configured as CAN0_RD */
                                         IOCON_PIO_FUNC1 |
                                         /* Selects pull-up function */
                                         IOCON_PIO_MODE_PULLUP |
                                         /* Standard mode, output slew rate control is enabled */
                                         IOCON_PIO_SLEW_STANDARD |
                                         /* Input function is not inverted */
                                         IOCON_PIO_INV_DI |
                                         /* Enables digital function */
                                         IOCON_PIO_DIGITAL_EN |
                                         /* Open drain is disabled */
                                         IOCON_PIO_OPENDRAIN_DI);
    /* PORT1 PIN22 (coords: 41) is configured as CAN0_RD */
    IOCON_PinMuxSet(IOCON, 1U, 3U, port1_pin3_config);

    const uint32_t port1_pin2_config = (/* Pin is configured as CAN0_TD */
                                         IOCON_PIO_FUNC1 |
                                         /* Selects pull-up function */
                                         IOCON_PIO_MODE_PULLUP |
                                         /* Standard mode, output slew rate control is enabled */
                                         IOCON_PIO_SLEW_STANDARD |
                                         /* Input function is not inverted */
                                         IOCON_PIO_INV_DI |
                                         /* Enables digital function */
                                         IOCON_PIO_DIGITAL_EN |
                                         /* Open drain is disabled */
                                         IOCON_PIO_OPENDRAIN_DI);
    /* PORT1 PIN27 (coords: 85) is configured as CAN0_TD */
    IOCON_PinMuxSet(IOCON, 1U, 2U, port1_pin2_config);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1695264665936.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/241904i1C1944F86BB0AC04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1695264665936.png" alt="xiangjun_rong_0-1695264665936.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pls have a try&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 02:54:09 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2023-09-21T02:54:09Z</dc:date>
    <item>
      <title>LPC55S16JBD64 CAN is not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16JBD64-CAN-is-not-working/m-p/1726404#M54150</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I have tested CAN feature in LPCXPRESSO55S16 EVAL board with the (SDK) &lt;A title="CAN example" href="https://github.com/nxp-mcuxpresso/mcux-sdk-examples/tree/main/lpcxpresso55s16/driver_examples/mcan/interrupt_transfer" target="_self"&gt;CAN example&lt;/A&gt; , now I'm trying the same example with LPC55S16JBD64 micro controller (custom board ) with modified pin configuration in pin_mux.c file, but I'm not getting any data, I have already raised the &lt;A title="issue" href="https://github.com/zephyrproject-rtos/zephyr/discussions/62566" target="_self"&gt;issue&lt;/A&gt; in zephyr community but this issue is more specific to LPC&amp;nbsp; micro controller so I'm raising issue here also.&lt;/P&gt;&lt;P&gt;modified pin_mux.c file&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/*
 * Copyright 2017-2020 ,2021 NXP
 * All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

/***********************************************************************************************************************
 * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file
 * will be overwritten if the respective MCUXpresso Config Tools is used to update this file.
 **********************************************************************************************************************/

/* clang-format off */
/*
 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
!!GlobalInfo
product: Pins v9.0
processor: LPC55S16
package_id: LPC55S16JBD100
mcu_data: ksdk2_0
processor_version: 9.0.0
 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
 */
/* clang-format on */

#include "fsl_common.h"
#include "fsl_iocon.h"
#include "pin_mux.h"

/* FUNCTION ************************************************************************************************************
 *
 * Function Name : BOARD_InitBootPins
 * Description   : Calls initialization functions.
 *
 * END ****************************************************************************************************************/
void BOARD_InitBootPins(void)
{
    BOARD_InitPins();
}

/* clang-format off */
/*
 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
BOARD_InitPins:
- options: {callFromInitBoot: 'true', coreID: cm33_core0, enableClock: 'true'}
- pin_list:
  - {pin_num: '21', peripheral: SWD, signal: SWO, pin_signal: PIO0_10/FC6_SCK/CT_INP10/CTIMER2_MAT0/FC1_TXD_SCL_MISO_WS/SCT0_OUT2/SWO/SECURE_GPIO0_10/ADC0_1, mode: inactive,
    slew_rate: standard, invert: disabled, open_drain: disabled, asw: disabled}
  - {pin_num: '92', peripheral: FLEXCOMM0, signal: RXD_SDA_MOSI_DATA, pin_signal: PIO0_29/FC0_RXD_SDA_MOSI_DATA/CTIMER2_MAT3/SCT0_OUT8/CMP0_OUT/PLU_OUT2/SECURE_GPIO0_29,
    mode: inactive, slew_rate: standard, invert: disabled, open_drain: disabled}
  - {pin_num: '94', peripheral: FLEXCOMM0, signal: TXD_SCL_MISO_WS, pin_signal: PIO0_30/FC0_TXD_SCL_MISO_WS/CTIMER0_MAT0/SCT0_OUT9/SECURE_GPIO0_30, mode: inactive,
    slew_rate: standard, invert: disabled, open_drain: disabled}
  - {pin_num: '85', peripheral: CAN0, signal: CAN_TD, pin_signal: PIO1_27/FC2_RTS_SCL_SSEL1/CTIMER0_MAT3/CLKOUT/PLU_IN4/CAN0_TD, mode: pullUp, slew_rate: standard,
    invert: disabled, open_drain: disabled}
  - {pin_num: '41', peripheral: CAN0, signal: CAN_RD, pin_signal: PIO1_22/CTIMER2_MAT3/SCT_GPI5/FC4_SSEL3/PLU_OUT4/CAN0_RD, mode: pullUp, slew_rate: standard, invert: disabled,
    open_drain: disabled}
 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
 */
/* clang-format on */

/* FUNCTION ************************************************************************************************************
 *
 * Function Name : BOARD_InitPins
 * Description   : Configures pin routing and optionally pin electrical features.
 *
 * END ****************************************************************************************************************/
/* Function assigned for the Cortex-M33 */
void BOARD_InitPins(void)
{
    /* Enables the clock for the I/O controller.: Enable Clock. */
    CLOCK_EnableClock(kCLOCK_Iocon);

    const uint32_t port0_pin8_config = (/* Pin is configured as SWO */
                                         IOCON_PIO_FUNC6 |
                                         /* No addition pin function */
                                         IOCON_PIO_MODE_INACT |
                                         /* Standard mode, output slew rate control is enabled */
                                         IOCON_PIO_SLEW_STANDARD |
                                         /* Input function is not inverted */
                                         IOCON_PIO_INV_DI |
                                         /* Enables digital function */
                                         IOCON_PIO_DIGITAL_EN |
                                         /* Open drain is disabled */
                                         IOCON_PIO_OPENDRAIN_DI |
                                         /* Analog switch is open (disabled) */
                                         IOCON_PIO_ASW_DI);
    /* PORT0 PIN10 (coords: 21) is configured as SWO */
    IOCON_PinMuxSet(IOCON, 0U, 8U, port0_pin8_config);

    const uint32_t port0_pin29_config = (/* Pin is configured as FC0_RXD_SDA_MOSI_DATA */
                                         IOCON_PIO_FUNC1 |
                                         /* No addition pin function */
                                         IOCON_PIO_MODE_INACT |
                                         /* Standard mode, output slew rate control is enabled */
                                         IOCON_PIO_SLEW_STANDARD |
                                         /* Input function is not inverted */
                                         IOCON_PIO_INV_DI |
                                         /* Enables digital function */
                                         IOCON_PIO_DIGITAL_EN |
                                         /* Open drain is disabled */
                                         IOCON_PIO_OPENDRAIN_DI);
    /* PORT0 PIN29 (coords: 92) is configured as FC0_RXD_SDA_MOSI_DATA */
   // IOCON_PinMuxSet(IOCON, 0U, 29U, port0_pin29_config);

    const uint32_t port0_pin30_config = (/* Pin is configured as FC0_TXD_SCL_MISO_WS */
                                         IOCON_PIO_FUNC1 |
                                         /* No addition pin function */
                                         IOCON_PIO_MODE_INACT |
                                         /* Standard mode, output slew rate control is enabled */
                                         IOCON_PIO_SLEW_STANDARD |
                                         /* Input function is not inverted */
                                         IOCON_PIO_INV_DI |
                                         /* Enables digital function */
                                         IOCON_PIO_DIGITAL_EN |
                                         /* Open drain is disabled */
                                         IOCON_PIO_OPENDRAIN_DI);
    /* PORT0 PIN30 (coords: 94) is configured as FC0_TXD_SCL_MISO_WS */
  //  IOCON_PinMuxSet(IOCON, 0U, 30U, port0_pin30_config);

    const uint32_t port1_pin3_config = (/* Pin is configured as CAN0_RD */
                                         IOCON_PIO_FUNC9 |
                                         /* Selects pull-up function */
                                         IOCON_PIO_MODE_PULLUP |
                                         /* Standard mode, output slew rate control is enabled */
                                         IOCON_PIO_SLEW_STANDARD |
                                         /* Input function is not inverted */
                                         IOCON_PIO_INV_DI |
                                         /* Enables digital function */
                                         IOCON_PIO_DIGITAL_EN |
                                         /* Open drain is disabled */
                                         IOCON_PIO_OPENDRAIN_DI);
    /* PORT1 PIN22 (coords: 41) is configured as CAN0_RD */
    IOCON_PinMuxSet(IOCON, 1U, 3U, port1_pin3_config);

    const uint32_t port1_pin2_config = (/* Pin is configured as CAN0_TD */
                                         IOCON_PIO_FUNC9 |
                                         /* Selects pull-up function */
                                         IOCON_PIO_MODE_PULLUP |
                                         /* Standard mode, output slew rate control is enabled */
                                         IOCON_PIO_SLEW_STANDARD |
                                         /* Input function is not inverted */
                                         IOCON_PIO_INV_DI |
                                         /* Enables digital function */
                                         IOCON_PIO_DIGITAL_EN |
                                         /* Open drain is disabled */
                                         IOCON_PIO_OPENDRAIN_DI);
    /* PORT1 PIN27 (coords: 85) is configured as CAN0_TD */
    IOCON_PinMuxSet(IOCON, 1U, 2U, port1_pin2_config);
}
/***********************************************************************************************************************
 * EOF
 **********************************************************************************************************************/&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;console prints&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SEGGER J-Link GDB Server V7.84a - Terminal output channel
Please select local node as A or B:
Note: Node B should start first.
Node:B
B
Start to Wait data from Node A&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try to send CAN frame ID 0X321 with 500kbps baud rate&amp;nbsp; from PCAN_view tool , I'm not getting any echo back data in PCAN_view, but if I try the same example with modified pin_mux.c file in LPCXPRESSO55S16 EVAL board I'm getting echo data in PCAN_view tool, as well as I can see data in console.&lt;/P&gt;&lt;P&gt;Note: I have checked the hardware of custom board , there is no signal in CAN micro controller pins, while sending or receiving CAN frames.&lt;/P&gt;&lt;P&gt;Please help me to fix this issue.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/103451"&gt;@lpcxpresso_supp&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/94872"&gt;@lpcware&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/214321"&gt;@lpcxpresso&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 14:30:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16JBD64-CAN-is-not-working/m-p/1726404#M54150</guid>
      <dc:creator>aravinth_k</dc:creator>
      <dc:date>2023-09-20T14:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S16JBD64 CAN is not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16JBD64-CAN-is-not-working/m-p/1726654#M54154</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As the pin assignment in data sheet of LPC551x, the Func bits should be 1 instead of 9.&lt;/P&gt;
&lt;P&gt;So pls try to use the code in the pin_mux.c&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;const uint32_t port1_pin3_config = (/* Pin is configured as CAN0_RD */
                                         IOCON_PIO_FUNC1 |
                                         /* Selects pull-up function */
                                         IOCON_PIO_MODE_PULLUP |
                                         /* Standard mode, output slew rate control is enabled */
                                         IOCON_PIO_SLEW_STANDARD |
                                         /* Input function is not inverted */
                                         IOCON_PIO_INV_DI |
                                         /* Enables digital function */
                                         IOCON_PIO_DIGITAL_EN |
                                         /* Open drain is disabled */
                                         IOCON_PIO_OPENDRAIN_DI);
    /* PORT1 PIN22 (coords: 41) is configured as CAN0_RD */
    IOCON_PinMuxSet(IOCON, 1U, 3U, port1_pin3_config);

    const uint32_t port1_pin2_config = (/* Pin is configured as CAN0_TD */
                                         IOCON_PIO_FUNC1 |
                                         /* Selects pull-up function */
                                         IOCON_PIO_MODE_PULLUP |
                                         /* Standard mode, output slew rate control is enabled */
                                         IOCON_PIO_SLEW_STANDARD |
                                         /* Input function is not inverted */
                                         IOCON_PIO_INV_DI |
                                         /* Enables digital function */
                                         IOCON_PIO_DIGITAL_EN |
                                         /* Open drain is disabled */
                                         IOCON_PIO_OPENDRAIN_DI);
    /* PORT1 PIN27 (coords: 85) is configured as CAN0_TD */
    IOCON_PinMuxSet(IOCON, 1U, 2U, port1_pin2_config);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1695264665936.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/241904i1C1944F86BB0AC04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1695264665936.png" alt="xiangjun_rong_0-1695264665936.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pls have a try&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 02:54:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16JBD64-CAN-is-not-working/m-p/1726654#M54154</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-09-21T02:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S16JBD64 CAN is not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16JBD64-CAN-is-not-working/m-p/1726737#M54156</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26034"&gt;@xiangjun_rong&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;I changed the pin_mux.c as mentioned in your comment, but still if I try to send the CAN frame I'm getting bus heavy error also I'm not getting any data in console, please let me know if any other configuration I have to change.&lt;/P&gt;&lt;P&gt;Thanks in advance !&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 05:19:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16JBD64-CAN-is-not-working/m-p/1726737#M54156</guid>
      <dc:creator>aravinth_k</dc:creator>
      <dc:date>2023-09-21T05:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S16JBD64 CAN is not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16JBD64-CAN-is-not-working/m-p/1726900#M54160</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I suppose that you know the CAN protocol, in order to communicate via CAN bus, each CAN node has to connect a PHY, with the PHY, two can node can communicate. Because CAN requires handshaking signal, you have to connect two CAN nodes at least so that they can communicate.&lt;/P&gt;
&lt;P&gt;What is your issue now?&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 07:34:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16JBD64-CAN-is-not-working/m-p/1726900#M54160</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-09-21T07:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S16JBD64 CAN is not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16JBD64-CAN-is-not-working/m-p/1726949#M54161</link>
      <description>&lt;P&gt;I might add, for a simple test with a similiar CAN device (another LPC board with the same voltage levels), direct connection between the two CAN-Rx/CAN-Tx pins would work as well.&lt;BR /&gt;The connection would have to be short, and include a GND wire.&lt;/P&gt;&lt;P&gt;And even without another bus participant, a scope should reveal if the interface basically works, or not.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 08:18:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16JBD64-CAN-is-not-working/m-p/1726949#M54161</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2023-09-21T08:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S16JBD64 CAN is not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16JBD64-CAN-is-not-working/m-p/1731284#M54238</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is with power cycle initialization procedure , the CAN driver's standby pin must be initialized during the power cycle initialization ,&amp;nbsp; I mistakenly initialized the standby pin one line before CAN tx operation , basically the standby pin must be initialized during the power cycle with some delay, I changed the code and it's finally worked for me , but whatever mentioned here is it's only works on zephyr stack not MCUxpresso IDE's SDK build still the problem is there in SDK MCUxpressso IDE build.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your support !&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 12:49:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16JBD64-CAN-is-not-working/m-p/1731284#M54238</guid>
      <dc:creator>aravinth_k</dc:creator>
      <dc:date>2023-09-28T12:49:52Z</dc:date>
    </item>
  </channel>
</rss>

