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.