Enum Rte_Type code generation error

5 visualizaciones (últimos 30 días)
Suleyman
Suleyman el 19 de En. de 2024
Comentada: Brahmadev el 7 de Feb. de 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 comentario
Brahmadev
Brahmadev el 7 de Feb. de 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?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by