|
Post by epistemon on Mar 22, 2020 16:53:41 GMT
I'm using ShieldBuddy and HighTec Free toolchain without Arduino IDE. For educational purposes, I want to program a QSPI from scratch. My problem is that a simple register write is causing a "Data Asynchronous Error" of type "Store Bus Error" and I can find no information to understand what I can do to avoid the error.
In this simple example, I am just clearing the error flags for QSPI3. QSPI3_FLAGSCLEAR.B.ERRORCLEARS = 0x1FF; /* Clear all error flags. */
Searching the Infineon docs just mention the following for "Store Bus Error". There is no further information.
The DATR (SBE=1) and DEADD (0xF000154) registers confirm that it is my code causing the trap. See pic.
I would be very grateful if someone could possibly tell me what might be the cause.
Thank you very much.
|
|
|
Post by epistemon on Mar 22, 2020 18:41:41 GMT
I stumbled upon the answer in Infineon forums. The QSPI module was not enabled. Resetting the DISR bit allows write to other registers. I don't know how a noob is meant to connect "SBE" with a disabled module! You live and learn.
|
|