Hi,
I have a question about C6670 FFTC.
We are using MCSDK FFTC sample program and having a problem.
When executing Fftc_txGetRequestBuffer() API which is defined in fftc.c,
sometime "Supervisor write violation" error occur ( displayed at CCS console).
The problem occur not periodic, but suddenly.
When we debug the program, we found that address 0x00000000 which is reserved area for C6670
was given to the data buffer pointer from host descriptor in cppi_getData()API.
(cppi_getData() is called inside the Fftc_txGetRequestBuffer().)
We allocate buffer in Core1 L2RAM so when this problem doesn't occur,
address 0x108xxxxx are given to the data buffer pointer in cppi_getData().
The following is my question:
1.In what situation address 0x00000000 will be given to
the data buffer pointer in cppi_getData()?
And is there workaround for this problem?
2.Is "supervisor write violation" error related to Memory protection?
I checked the following register from CCS just after the error occured.
It seem that "supervisor write fault" occur when Core0 accessed to QMSS_CFG area.
<Memory Protection Unit 2 > Fault Address Register = 0x02A02A0C
<Memory Protection Unit 2 > Fault Status Register = 0x0C080010
Other Memory Protection Unit's Fault register was 0.
Please give me an advise.
If my information is not enough please let me know.
best regards,
g.f.