I am trying to initialize QSPI module on MCF52259. But reading and writing MCF_QSPI_QMR register causes an access error.
MCF_QSPI_QMR = (vuint16)(MCF_QSPI_QMR_MSTR | MCF_QSPI_QMR_BITS(12) | MCF_QSPI_QMR_BAUD(2))
I looked into the exception frame. It gives me "Error on operand read" when reading the register and "Error on operand write" while writing the register.
I do not know what causes the problem.
I even initialized the Port QS but still no luck.
Here is exception stack frame for both read and write
Read: - 0x4C082704
Write: - 0x48082708
Also, the error is not just related to one register. It causes problem with all QSPI registers.
Any help will be highly appreciated.