IMX8MP: System crash while writing BRM value to set Serial baud rate

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

IMX8MP: System crash while writing BRM value to set Serial baud rate

526件の閲覧回数
Saqib
Contributor I

I am trying to write serial driver for i.MX 8M Plus EVK cortex M7 core. system crashes when I try to write BRM value to set the serial baud rate.

I have a few questions now:

Saqib_0-1628237366343.png

This block diagram shows that we need two clocks for serial.

1) How can we ensure that the module clock is enabled. I have gone through the clocks chapter but didn't find out what exactly is module clock is for Uart4.

2) what can we expect if the module clock is disabled and we try to write BRM register to set serial baud rate? A system crash?  

3) Is there any separate document by NXP that briefly explains UART architecture and programming?

0 件の賞賛
返信
1 返信

504件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Saqib

 

>1) How can we ensure that the module clock is enabled. I have gone through the clocks chapter

>but didn't find out what exactly is module clock is for Uart4.

 

one can check CCGR76 register, Table 5-9. CCGR Mapping Table,
also description can be found in sect.5.1.6.3 CCGR Interface, Table 5-1. Clock Root Table

(UART4_CLK_ROOT)  i.MX 8M Plus Applications Processor Reference Manual

 

>2) what can we expect if the module clock is disabled and we try to write BRM register

>to set serial baud rate? A system crash?

 

yes

 

>3) Is there any separate document by NXP that briefly explains UART architecture and programming?

 

no.

 

Best regards
igor

0 件の賞賛
返信