Implementation of functions not supported by Mathworks
1 次查看(过去 30 天)
显示 更早的评论
You are trying to implement a feature not supported by Mathworks on the TI C2000 TMS320F28379D processor.
The build itself has finished normally, but parameters cannot be set for some registers.
What settings should I add later to set parameters in the TI C2000 TMS320F28379D processor registry?
The configuration file custom code has the following settings and the necessary files are inserted.
![Config1.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238124/Config1.png)
![Config2.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238125/Config2.png)
In the Simulink model, the header is set to Modek Header and the header file declaration is included.
![Model Header.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238126/Model%20Header.png)
Registry setting is done using Model Copy block instead of S-function block.
The example of insertion is implemented as follows.
![RegistoryInsert1.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238127/RegistoryInsert1.png)
The generated C code is as follows.
![RegistoryInsert1_C Code.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238128/RegistoryInsert1_C%20Code.png)
The files generated in the ERT folder are as follows.
![ertfolder_filelist.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238129/ertfolder_filelist.png)
0 个评论
采纳的回答
Venkatesh Chilapur
2019-9-13
Hi,
Please refer the below post for the SDFM settings needed to enable the same.
From the post, User got it working after enabling the module clock.
You can use custom code blocks from simulink coder to add initialization code.
HTH,
Regards,
Venkatesh C
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!