AnsweredAssumed Answered

STM32F7 Questions regarding code and performance

Question asked by karpavicius.linas on Dec 2, 2015
Latest reply on Dec 2, 2015 by AvaTar
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*128.0f*(float)i)/256);
    cos_coeff[i]=(float)cosf((6.2831853f*128.0f*(float)i)/256);
    i++;
  }


Outcomes