Is there a demo to show USART Rx/Tx between two LPC55S06-EVK boards? The provided MCUXpresso SDK demos use FLEXCOMM0, but this EVK only has Rx/Tx exposed for FLEXCOMM1 on its breakouts (J13.4/6)
I got it working, with the following updates to the lpcxpresso55s06_usart_interrupt demo -
board/pin_mux.c:
Remove port0_pin29_config & port0_pin30_config and add -
/* RX: P1.10 */
const uint32_t port1_pin10_config = (
/* Pin is configured as FC1_RXD_SDA_MOSI_DATA */
IOCON_PIO_FUNC2 |
/* 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);
/* PORT1 PIN10 (coords: 25) is configured as FC1_RXD_SDA_MOSI_DATA */
IOCON_PinMuxSet(IOCON, 1U, 10U, port1_pin10_config);
/* TX: P1.11 */
const uint32_t port1_pin11_config = (
/* Pin is configured asFC1_TXD_SCL_MISO_WS? */
IOCON_PIO_FUNC2 |
/* 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);
/* PORT1 PIN11 (coords: 62) is configured as FC1_TXD_SCL_MISO_WS */
IOCON_PinMuxSet(IOCON, 1U, 11U, port1_pin11_config);
board/pin_mux.h:
Add def -
#define IOCON_PIO_FUNC2 0x02u /* @brief Selects pin function 2 */
source/usart_interrupt.c:
Updated defs -
#define DEMO_USART (USART1)
#define DEMO_USART_CLK_SRC (kCLOCK_Flexcomm1)
#define DEMO_USART_IRQHandler (FLEXCOMM1_IRQHandler)
#define DEMO_USART_IRQn (FLEXCOMM1_IRQn)
Works now, sharing if useful
I tried changing the demo straight over to FLEXCOMM1 but wasn't successful, and reached out for help before diving further