Hi,
I am working in SDK - 2.5.1, I have to configure new debug UART in M4 Core1 for IMX8QM-MEK (by default it is using UART0_RTS_B, UART0_CTS_B)
sc_pad_set_all(ipc, SC_P_M41_I2C0_SCL, 1U, SC_PAD_CONFIG_NORMAL, SC_PAD_ISO_OFF, 0x0 ,SC_PAD_WAKEUP_OFF);/* 1 - M41_UART0_RX*/
sc_pad_set_all(ipc, SC_P_M41_I2C0_SDA, 1U, SC_PAD_CONFIG_NORMAL, SC_PAD_ISO_OFF, 0x0 ,SC_PAD_WAKEUP_OFF);/* 1 - M41_UART0_TX */
what are the things have to configure in board.h file for M41_I2C0_SCL/ M41_I2C0_SDA
#define BOARD_DEBUG_UART_BASEADDR (uint32_t) DMA__LPUART2
#define BOARD_DEBUG_UART_INSTANCE 4U
#define BOARD_DEBUG_UART_SC_RSRC SC_R_UART_2
#define BOARD_DEBUG_UART_CLKSRC kCLOCK_DMA_Lpuart2
#define BOARD_UART_IRQ DMA_UART2_INT_IRQn
#define BOARD_UART_IRQ_HANDLER DMA_UART2_INT_IRQHandler
已解决! 转到解答。
sc_pad_set_all(ipc, SC_P_M41_I2C0_SCL, 1U, SC_PAD_CONFIG_NORMAL, SC_PAD_ISO_OFF, 0x0 ,SC_PAD_WAKEUP_OFF);/* 1 - M41_UART0_RX*/
sc_pad_set_all(ipc, SC_P_M41_I2C0_SDA, 1U, SC_PAD_CONFIG_NORMAL, SC_PAD_ISO_OFF, 0x0 ,SC_PAD_WAKEUP_OFF);/* 1 - M41_UART0_TX */
in board.h file for M41_I2C0_SCL/ M41_I2C0_SDA
+#define BOARD_DEBUG_UART_BASEADDR (uint32_t) CM4_1__LPUART
+#define BOARD_DEBUG_UART_INSTANCE 1U
+#define BOARD_DEBUG_UART_SC_RSRC SC_R_M4_1_UART
+#define BOARD_DEBUG_UART_CLKSRC kCLOCK_M4_1_Lpuart
+#define BOARD_UART_IRQ M4_1_LPUART_IRQn
+#define BOARD_UART_IRQ_HANDLER M4_1_LPUART_IRQHandler
sc_pad_set_all(ipc, SC_P_M41_I2C0_SCL, 1U, SC_PAD_CONFIG_NORMAL, SC_PAD_ISO_OFF, 0x0 ,SC_PAD_WAKEUP_OFF);/* 1 - M41_UART0_RX*/
sc_pad_set_all(ipc, SC_P_M41_I2C0_SDA, 1U, SC_PAD_CONFIG_NORMAL, SC_PAD_ISO_OFF, 0x0 ,SC_PAD_WAKEUP_OFF);/* 1 - M41_UART0_TX */
in board.h file for M41_I2C0_SCL/ M41_I2C0_SDA
+#define BOARD_DEBUG_UART_BASEADDR (uint32_t) CM4_1__LPUART
+#define BOARD_DEBUG_UART_INSTANCE 1U
+#define BOARD_DEBUG_UART_SC_RSRC SC_R_M4_1_UART
+#define BOARD_DEBUG_UART_CLKSRC kCLOCK_M4_1_Lpuart
+#define BOARD_UART_IRQ M4_1_LPUART_IRQn
+#define BOARD_UART_IRQ_HANDLER M4_1_LPUART_IRQHandler