Putting array index in ccm cause IMPRECISERR Hard Fault
I have a code for the stm32f334 where I have an interrupt routine and a DMA transfer triggered by the same timer. In the interrupt routine the DMA rolling buffer is updated. Because this update is time consuming, I want to optimize the time spent in the routine. What I found out is that when placing any variable used as array index in .ccmram (for example "HRTIM_Buffer[buffer_index+i ] = some data", with buffer_index being a global variable placed in .ccmram), the code result in IMPRECISERR Hard Fault. Is this expected behavior? Or am I doing something wrong?
