IMX8MP system crashing while writing to BMR register for Serial

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IMX8MP system crashing while writing to BMR register for Serial

880 次查看
Saqib
Contributor I

I am trying to write Serial driver for i.MX8 MP EVK Cortex M7 core. 
I can access most of the registers of the UART4 instance but when I try to write BMR value on BMR register to set the baud rate, the system gets traped into an exception.

I have checked that the Cortex M7 core domain has access to UART4. Moreover, no semaphore is required to access UART4. 

It would be very helpful if someone helps me figure out this problem.

标记 (1)
0 项奖励
回复
3 回复数

870 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Saqib

 

what dts file used in the case, one can try imx8mp-evk-rpmsg.dts where uart4 is disabled in linux:

https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mp-evk-r...

 

Best regards
igor

0 项奖励
回复

866 次查看
Saqib
Contributor I

Hi Igor,

I am trying to enable UART4 as stdio for cortex M7 core. Moreover, I tried configuring UART1 and UART3 as well but encountering the same exception.

Regards,

Saqib

0 项奖励
回复

849 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Saqib

 

one can look at uart4 examples in SDK_EVK-MIMX8MP available on

https://mcuxpresso.nxp.com/en/welcome

 

Best regards
igor

0 项奖励
回复