M4 Core1 debug uart customalization

cancel
Showing results for 
Search instead for 
Did you mean: 

M4 Core1 debug uart customalization

Jump to solution
167 Views
vinothkumars
Senior Contributor III

Hi,

I am working on IMX8QM Custom board which is don't have M4 debug UART (UART0_RTS_B and UART0_CTS_B).

So, I take it external connection from the Hardware lines (M41_I2C0_SDA, M41_I2C0_SCL) and configures those line as UART in Software

I configured M41_I2C0_SDA and M41_I2C0_SCL as debug UART (M41_UART0_TX, M41_UART0_RX) for DMA__LPUART2, But, debug uart is not working

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

Note: Make these pad as movable already
rm_set_pad_movable(pt_boot, SC_P_M41_I2C0_SCL, SC_P_M41_I2C0_SCL, SC_TRUE));
rm_set_pad_movable(pt_boot, SC_P_M41_I2C0_SDA, SC_P_M41_I2C0_SDA, SC_TRUE));


Let me know what are the things I have to configure in board.h for new debug uart

 

Regards,
Vinothkumar Sekar
0 Kudos
1 Solution
91 Views
vinothkumars
Senior Contributor III

It is working after configure debug uart in  board.h.

Regards,
Vinothkumar Sekar

View solution in original post

0 Kudos
4 Replies
153 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Vinothkumar

 

for changing debug uart one can look at example on

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Use-UART0-RX-TX-as-SCU-UART-debug-port-o...

 

Best regards
igor

0 Kudos
127 Views
vinothkumars
Senior Contributor III

Thank you @igorpadykov 

 

That is for SCU debug UART. I am looking for M4 Core1 UART to use in Free RTOS SDK application ( Rear View Camera). So, that link will not help to achieve this.

 

 

Regards,
Vinothkumar Sekar
0 Kudos
124 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Vinothkumar

 

sorry, "Rear View Camera" as part of Android Automotive is supported through

NXP Professional Services as described on below link

https://www.nxp.com/design/software/embedded-software/software-technology-for-android-auto:ANDROID-A...

 

1.jpg

 

Best regards
igor

0 Kudos
92 Views
vinothkumars
Senior Contributor III

It is working after configure debug uart in  board.h.

Regards,
Vinothkumar Sekar

View solution in original post

0 Kudos