cancel
Showing results for 
Search instead for 
Did you mean: 

Opus codec with STM32WB5MMGHTR

LR.2
Associate III

Hi,
I have been trying to add opus codec in my project. But I cannot able to build after adding the opus file. If anyone successfully added opus with their project help me out. I mostly get errors on 'Neon' which is used for FFT. As I searched neon is for cortex A, but the STM32WB5MMGHTR is cortex M based. I'm also adding my config file code for opus here

 

#ifndef CONFIG_H
#define CONFIG_H

/* Variable leng arays  */
#define VAR_ARRAYS

/* Comment out the next line for floating-point code */
#define FIXED_POINT           1 

#define OPUS_BUILD            1


#endif /* CONFIG_H */

 

Help me to add opus library with my project.

1 ACCEPTED SOLUTION

Accepted Solutions
LR.2
Associate III

Hi,
I integrated opus in my project.
Things I did:
1. I opened example project which present inside the "X-CUBE-OPUS.zip" and explored what are the files included from the opus library. To check this I read ".cproject" and ".project" from the example file, then I added those files in my project.
2. After that I checked the compiler options from the project build settings and I made changes in my project compiler options with that.
3. Also, I checked build output for "fpu" based compiler options and set in my project. Opus needs "-mfpu=fpv4-sp-d16" "-mfloat-abi=hard" options to get compiled. (Before adding this option verify your controller has support for FPU).

After all the above changes in my code I got compiled successfully.

Thanks and regards,

Laksh

View solution in original post

18 REPLIES 18
Cavitcem
Associate II

Hi,

I'm having the same problem. Did you find a solution?

Hi Cavitcem,

No I couldn't find any solution. May I know what kind of error you are facing exactly. 

Thanks & regards

Hi LR.2,

My error outputs are like this but I couldn't find a solution.

Thanks & Regards

 

error.PNG

Hi Cavitcem,

Mine is also similar error.

Screenshot from 2024-01-23 12-09-05.png

Thanks & Regards

Hi LR.2,

If you find the solution, I would be happy if you share it here.

Thanks & Regards

Sure Cavitcem. If I made any progress I'll update here.

Imen.D
ST Employee

Hello @Cavitcem @LR.2 

Thank you for having reported this.

I escalated this issue for fix in the internal ticket number 171448.

(PS: Internal ticket number 171448 is not accessible or usable by customers).

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Hello @Imen.D 

Is there any progress on this issue?

Thanks & Regards

Hi @Imen.D ,

I have the same problem like others. Is there any process?

Best regards.