Enum Rte_Type code generation error

7 ビュー (過去 30 日間)
Suleyman
Suleyman 2024 年 1 月 19 日
コメント済み: Brahmadev 2024 年 2 月 7 日
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 件のコメント
Brahmadev
Brahmadev 2024 年 2 月 7 日
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?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by