Clear Filters
Clear Filters

Enum Rte_Type code generation error

3 views (last 30 days)
Suleyman
Suleyman on 19 Jan 2024
Commented: Brahmadev on 7 Feb 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 Comment
Brahmadev
Brahmadev on 7 Feb 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?

Sign in to comment.

Answers (0)

Categories

Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!