Enum Rte_Type code generation error

5 vues (au cours des 30 derniers jours)
Suleyman
Suleyman le 19 Jan 2024
Commenté : Brahmadev le 7 Fév 2024
I had enum class and i got error given below when i trigger build process. Enum class includes only uint datatype. In 2019a i didnt have error. I started to get this error when i switch to 2020b release. Even, I couldnt solve this issue with deleting Enum class. How can i solve that?
classdef(Enumeration) EN_STATE < Simulink.IntEnumType
% Enumeration class definition
enumeration
STATE_0(0)
STATE_1(1)
STATE_2(2)
end
methods (Static = true)
function retVal = getDescription()
retVal = 'Enumerated class definition ENUM';
end
function retVal = getHeaderFile()
retVal = 'Rte_Type.h';
end
function retVal = getExportHeaderFile()
retVal = 'Rte_Type.h';
end
function retVal = isImport()
retVal = true;
end
function retVal = getDefaultValue()
retVal = EN_STATE.STATE_0;
end
end
end
Error using coder.internal.callMakeHook
The call to autosar_make_rtw_hook, during the after_tlc hook generated the following error:
Expected true or false not STATE_0
The build process will terminate as a result.
  1 commentaire
Brahmadev
Brahmadev le 7 Fév 2024
Hi, I am not facing any errors while creating Enumeration members for this class or while calling the methods. Can you provide more information or part of the code that is causing this error?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Simulink Coder dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by