Skip to main content
ABasra
Associate
December 7, 2023
Question

CMSIS DSP library with X-Cube-Ai

  • December 7, 2023
  • 1 reply
  • 3395 views

I am trying to use the statistical features of CMSIS DSP Library on STM32L4 board using TensorFlow lite with X-Cube-Ai (version 7.2.0) in Cube IDE (version 1.10.1) for machine learning. I am not able to use the FFT function with this, other than FFT all the statistical feature are computable. There comes multiple errors when i try to attach files to overcome this problem. Is there any way to use the FFT Function in X-Cube-Ai with tensorflow lite in the same version?

1 reply

fauvarque.daniel
ST Employee
December 7, 2023

Can you be more explicit on the errors you have ?

The CMSIS DSP is part of the STM32CubeFW delivery, are you using this version ?

Regards

Daniel

ABasra
ABasraAuthor
Associate
December 8, 2023

Hi

To elaborate the above post i would share the process we are following

1. we are using stm32l476zg nucleo board for this deployment.

2. In the cube ide 1.10.1 we are adding the cube ai software pack for STMicroelectronics cube AI. For AI deployment we are using tensorflow lite model which we are attaching to the network tab and analyzing the model for deployment parameters and then we are generating the code using cubeide.

3. The deployed models are working fine on the stm32 board and we are able to generate the inferences.

4. But now i have a similar application where i need to compute the fft before feesing the inputs to the input tensor for inference generation.

5. All statistically function from cmsis-dsp work fines as they are included as part of the Middlwares generted for tensorflow on code generation by cubeide itself.

6. But the cmsis-fft function does not work because Transform functions are not included in the cmsis directory generated in the middleware by the cubeide code generation.

7. We tried adding the Transform functions available inside the stm32l4fw repository in the stm32cube folder into the middleware section of the generated code but we have started getting multiple compilation errors.

Can you please suggest some better way so that we can use transform function available in cmsis-dsp along with cube ai?