Question
STM32F7 Questions regarding code and performance
Posted on December 02, 2015 at 08:20
Hello.
I have very DSP load program to run, and STM32F4 is not up to the task, so i switched to STM32F7 and HAL ( it is just asking for trouble ) I have few question related to code execution from flash storing DSP coefficients for math. 1) STMCubeMX SORTEX_M7 configuration allows for AXI and TCM interface. I have small program, around 16-32k. What i have to use to get best performance? Or this is not a issue ? 2) As far as i understand, for best Cortexm7 performance, DSP coefficients must be held in DTCM, what is the syntax to generate f32 128-256 points array in this part of memory ? This is code i need to get stored inside DTCM:float sin_coeff[256];
float cos_coeff[256];
uint32_t i = 0;
i=0;
while(i<256)
{
sin_coeff[i]=(float)sinf((6.2831853f*0f*(float)i)/256);
cos_coeff[i]=(float)cosf((6.2831853f*0f*(float)i)/256);
i++;
}