Debug UART in M4F

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,372件の閲覧回数
vinothkumars
Senior Contributor IV

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

 

 

Regards,
Vinothkumar Sekar
0 件の賞賛
返信
1 解決策
1,325件の閲覧回数
vinothkumars
Senior Contributor IV

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

 

Regards,
Vinothkumar Sekar

元の投稿で解決策を見る

1 返信
1,326件の閲覧回数
vinothkumars
Senior Contributor IV

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

 

Regards,
Vinothkumar Sekar