Conflict in GPIO for ePWM module (C28346 TI Delfino)
5 views (last 30 days)
Matthew Granger on 19 Aug 2019
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 on 22 Aug 2019
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.