Restore Embedded Coder Settings

Hello,
I would like to know of there is a way to restore Embedded Coder Settings. Previously, I could execute the binaries generated on the target device (Aurix TC399), however, after some accidental changes with the settings of Embedded Coder, I am facing some issues runnning the binaries on the target device.
Errors:
The code generated tries to include a header file
#include <emmintrin.h>'
This file is not found within the Aurix Development studio. And hence, I am getting errors with the definition of ' __m128i tmp_0;'
I do not know what "__m128i" does?
Could you please help me revert the changes or either help me to resolve the above error.
Thanks in advance.

5 comentarios

Akshaya
Akshaya el 10 de Oct. de 2023
Hi,
Is there any support I can expect here?
Thanks in advance!
Harald
Harald el 10 de Oct. de 2023
Hi,
in the community, there may or may not be somebody who can answer your question.
To get support, please contact the Technical Support team.
Best wishes,
Harald
Parth Trehan
Parth Trehan el 11 de Oct. de 2023
Hi Akshaya,
I understand that the code generated using current configuration settings results in emission of __m128i instrinsics.
__m128i is a SIMD intrinsic data type. It is defined in <emmintrin.h> and gets generated based on the target specific information provided in the Embedded Coder settings.
Here are a couple of things I would recommend you to try
  1. Recheck the target settings in your configuration option. Make sure that the target option is similar to the one you wish to deploy your code on. It could be possible that the target does not support SIMD intrinsics but due to the settings in code generation configuration, code-generator is generating SIMD code.
  2. In the GUI option, you can try and set the Speed>Target Specific Optimization to none.
Please try the above options and see if this resolves your issue.
If the issue persists, you can either respond here with the exact set of configurations that you are using along with information about the target hardware or you can contact the Technical Support team.
Thanks,
Parth
Akshaya
Akshaya el 11 de Oct. de 2023
Hi Parth,
Thank you so much for taking time and responding to the query.
Target Device: Aurix TC399 :: Infineon TriCore
Initially, before modifying the embedded coder config, __m128i was not generated from Embedded COder. As, I said, during some accidental chnages, now the Embedded Coder is generating __m128i inttrinsic datatype.
Unfortuanately, the compiler is not able to find #include <emmintrin.h>'. However, when I tried to manually search for the header file and add it to the workspace, the number of errors increases dratically within "#include <emmintrin.h>' this header file.
I have attached some Embedded Coder Config Screenshots for your reference. Please let me knw if you need any further information to assess the issue! :)
Thanks in advance!
Parth Trehan
Parth Trehan el 12 de Oct. de 2023
Editada: Parth Trehan el 12 de Oct. de 2023
Can you set "leverage target hardware instruction set extentions" to none and give it a try?

Iniciar sesión para comentar.

Respuestas (1)

sschumm
sschumm el 26 de Oct. de 2023

0 votos

Hi,
do you want to revert the Embedded Coder Settings to default?
For reverting only some Settings I recommend using Git.

Productos

Versión

R2023b

Preguntada:

el 9 de Oct. de 2023

Respondida:

el 26 de Oct. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by