M4 Core1 debug uart customalization

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

M4 Core1 debug uart customalization

ソリューションへジャンプ
1,878件の閲覧回数
vinothkumars
Senior Contributor IV

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
ラベル(2)
0 件の賞賛
返信
1 解決策
1,801件の閲覧回数
vinothkumars
Senior Contributor IV

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

Regards,
Vinothkumar Sekar

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
1,864件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

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 件の賞賛
返信
1,838件の閲覧回数
vinothkumars
Senior Contributor IV

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 件の賞賛
返信
1,835件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

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 件の賞賛
返信
1,802件の閲覧回数
vinothkumars
Senior Contributor IV

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

Regards,
Vinothkumar Sekar
0 件の賞賛
返信