why does 2024b matlab embedded coder is behaving differently compared to 2024a with respect to global variables in Codegen
1 回表示 (過去 30 日間)
古いコメントを表示
I am using the global variable as extern by linking external library in codegen,
in 2024a the generated .c is able to map the global strcuture from .h, but in 2024b in .c a new array is created , need to know why it is happening
// My global declaration
global Internal_paramS
Internal_paramS = struct();
T = coder.cstructname(Internal_paramS, 'Internal_parameters_s','extern','HeaderFile', 'dma.h');
globals = {'Internal_paramS',T};
//Generated c code in 2024b using codegen
static const Internal_parameters_s r = {'\x00'};
static cint16_T rxdatacube[622592];
Internal_parameters_s b_Internal_paramS;
Internal_paramS = r;
b_Internal_paramS = Internal_paramS;
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Deployment, Integration, and Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!