Conflict in GPIO for ePWM module (C28346 TI Delfino)
4 ビュー (過去 30 日間)
Matthew Granger 2019 年 8 月 19 日
コメント済み: Matthew Granger 2019 年 8 月 25 日
I have an application where I need to use some PWM modules, as well as some GPIO for general digital inputs and outputs. I'm targetting a C28346 using the C2000 Simulink toolbox. (Also Matlab version 2018a)
The conflict happens when I try to use both ePWM7 and GPIO12. The compiling process fails, with the diagnostic viewer telling me it's because GPIO12 has already been used by another module (It's already been used by a digital output block, and now it's trying to assign it to the PWM).
I think this could possibly be a bug in the c2000 toolbox, since GPIO12 is not used with ePWM7. (It is a possible Trip Zone input, but I don't have that enabled). I was able to track down a suspect part of code, in C:\ProgramData\MATLAB\SupportPackages\R2018a\toolbox\target\supportpackages\tic2000\blocks\masks\registerEPWMpinAssignment.m
Around line 41, the code starts checking for conflicts for the assigned PWM GPIO pins. It defaults to GPIO12, and then edits that based on the specific processor used. I think the problem may be that the C28346 is not one of the processors which is checked.
Would you mind advising me on this matter? Is this a bug in the toolbox, or do I need to move away from GPIO12?
Venkatesh Chilapur 2019 年 8 月 22 日
This is an error from us. The MATLAB file identified by you is correct where we can take care of fixing this.
If comfortable, you may update the same else contact us at:
For a fix.
その他の回答 (0 件)
Find more on Texas Instruments C2000 Processors in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!