Why do I get a "module already used" error from my SCI Receive block in External mode?
8 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2019 年 10 月 21 日
編集済み: MathWorks Support Team
2023 年 4 月 13 日
I have a Simulink model with multiple SCI Receive and Transmit blocks in it that I would like to run in external mode on my TI Launchpad (Delphino F28379D) board.
However, when I attempt to generate and run the code I get the following error message:
Error evauating 'InitFcn' callback of C28x SCI Receive Block (mask)
Callback string is c28sxci_callback('renderDisplay')
validateC280xSCI('Rx');
codertarget.registry.registerC2380xSCIRxBlocks(gcb);
Caused by:
- The SCI Module A is already used by another block or by External mode
採用された回答
MathWorks Support Team
2023 年 4 月 11 日
編集済み: MathWorks Support Team
2023 年 4 月 13 日
This error message indicates that two blocks within the module (Tx and Rx in this instance) were trying to communicate using the same SCI Module (module A).
To resolve the error, switch one of the Receive blocks to use a different SCI module (module B for instance).
The reference page for C28x SCI Receive states "a model can only contain one SCI Receive block for each module."
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!