Borrar filtros
Borrar filtros

Is it possible to compile matlab code to Keil 5 code(C language) ?

11 visualizaciones (últimos 30 días)
Dubravka Lekovic
Dubravka Lekovic el 12 de Dic. de 2022
Comentada: Dubravka Lekovic el 31 de En. de 2023
I have FM4 S6E2CC ARM Cortex platform communicate with it thru Keil 5. I want to compile function for adding noise to audio signal and to filter it with 2 filters in matlab. How can i insert matlab code in Keil 5 and compile to work? Should i compile matlab code with matlab compiler to c or there is another way to do that. Thanks!

Respuestas (2)

Mark McBroom
Mark McBroom el 22 de Dic. de 2022
You should use MATLAB Coder to generate C/C++ code from from your MATLAB code.
  2 comentarios
Walter Roberson
Walter Roberson el 22 de Dic. de 2022
It seems to be common for people using that class if devices to create Simulink models and export to target.
Dubravka Lekovic
Dubravka Lekovic el 30 de En. de 2023
Hello, i have tried to use MATLAB Coder to generate C/C++ code from MATLAB code and when i compile code it does not create target in Keil. I need help with setting up hardwer board( what needs to be chosen here, is it my fm4 board?) and toolchain(should i choose GNU Tools for ARM Embedded Processors or should i make toolchain for keil specialy).
Thank you

Iniciar sesión para comentar.


Mark McBroom
Mark McBroom el 31 de En. de 2023
Have you installed the ARM Cortext support package? https://www.mathworks.com/hardware-support/arm-cortex-m.html
Thanks.
mark.
  1 comentario
Dubravka Lekovic
Dubravka Lekovic el 31 de En. de 2023
Yes, i have installed the package but doesnt want to compile code in Keil. Is there any additional settings for this component?
Thank you for quick answer

Iniciar sesión para comentar.

Productos


Versión

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by