MATLAB Answers

Implementation of functions not supported by Mathworks

2 ビュー (過去 30 日間)
Kunihide Hirai
Kunihide Hirai 2019 年 9 月 13 日
コメント済み: Kunihide Hirai 2019 年 9 月 13 日
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
Config2.png
In the Simulink model, the header is set to Modek Header and the header file declaration is included.
Model Header.png
Registry setting is done using Model Copy block instead of S-function block.
The example of insertion is implemented as follows.
RegistoryInsert1.png
The generated C code is as follows.
RegistoryInsert1_C Code.png
The files generated in the ERT folder are as follows.
ertfolder_filelist.png

  0 件のコメント

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

採用された回答

Venkatesh Chilapur
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

  1 件のコメント

Kunihide Hirai
Kunihide Hirai 2019 年 9 月 13 日
Thank you for the advice.
It seems that registry data could not be set because we forgot to run the SDFM1 and SDFM2 module clocks.
When the module clock is enabled before the GPIO setting, values are entered correctly.
clock.png

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

その他の回答 (0 件)

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by