Other Parts Discussed in Thread: HALCOGEN
Hi,
I am trying to use the ccmSelfCheck() function (generated in Halcogen) for the CCM Self-test.
When I perform the Self-test without handling the interrupts generated by the ESM (low level for the flag "CCM-R4F self-test error" and high level for "CCM-R4F - compare") the self-test passes correctly (the self-test, error forcing and self-test error forcing).
But now when I try to implement some handling for the low level interrupt when the "CCM-R4F self-test error" flag gets set the self-test never finishes. To be more precise, when the CCM is configured in the CCM Error forcing mode (CCMKEYR = 0x9U) the low level interrupt gets triggered and after that the self-test doesn't proceed (it is a bit hard to know what really happens since it is not possible to be in debug mode because of the CCM but i certainly know that the execution of the code doesn't get further than "while (CCMKEYR != 0U) {}").
In the function that handles the low level interrupt I am just setting a Pin to high for test purposes so I am not even clearing the ESM flag. I am not sure what happens when the high level interrupt gets handeld since that is not working yet even though I am sure the "CCM-R4F - compare" flag gets also set since I tested the ERROR pin after entering the Error forcing mode and it becomes low for a short period of time.
My question:
Is it possible that the Self-test of the CCM isn't interruptable? Would that mean that I have to dissable the IRQ and FIQ before I start the ccmSelfCheck() function and later enable it since our plan is to perform this self-test periodicaly in our application?
Thanks in advance.
