This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/TMDSEVM6678: The DSPLIB is not running properly?

Part Number: TMDSEVM6678

Tool/software: TI-RTOS

#include <ti/dsplib/dsplib.h>
#include <stdio.h>
#include <stdlib.h>

#define N 4

float a[N * N], b[N], c[N], res[N];

int main(void) {
  int i;
  for (i = 0; i < N * N; ++i)
    a[i] = i + 1;
  for (i = 0; i < N; ++i) {
    b[i] = i + i;
    c[i] = 0;
  }
  DSPF_sp_mat_mul_gemm(a, 1, N, N, b, 1, res);
  for (i = 0; i < N; ++i)
    printf("%f\n", res[i]);
  return 0;
}

I am trying using DSPLIB for C66x.

It is simply the code above. After compilation and clicking debug, it is forever stuck at DSPF_sp_mat_mul_gemm function call.

I think my setup of compilation is ok.

  • Check, the API reference in the DSPLIB USer guide for the DSPF_sp_mat_mul_gemm. dsplib_c66x_3_4_0_0/docs/doxygen/html/dsplib_html/group___d_s_p_f__sp__mat__mul__gemm.html

    Here is the snapshot from the manual :

    I don`t think your  configuration meets the assumptions of the optimized function as C1 is not Even.

    Regards,

    Rahul