Other Parts Discussed in Thread: SYSCONFIG, F29H85X-SOM-EVM
Tool/software:
Hello everyone,
I am currently working on a project involving the F29H850TU where I need to generate and modify complex pulse patterns. As a starting point I have loaded the example "epwm_ex15_xcmp_multiple_edges" from the resource explorer. In that example ePWM modules 6 and 8 use shadow registers.I am currently not able to get the example code to behave like expected.
Changes I have made to the project:
- for "myEPWM6": Change output pins in the sysconfig under PinMux to ePWM7 and GPIO12/13 since I am having a oscilloscope hooked up to these pins. The change affects the board.h, where there is "#define myEPWM6_BASE EPWM7_BASE".
- Toggle different GPIO within ePWM6_ISR to observe ISR executions.
With no other changes than that I flash and run the project. However, GPIO 12 and 13 stay at 0. The ISR to update the comparevalues for ePWM6 is being frequently called as observable by the toggled GPIO pin. Then switching to debug mode I set two Breakpoints within "updateShadow3_forEpwm6". One before updating a Reg value and one after. The code is being executed, but in the registers view in CCS there is no change observable in the corresponding registers.
I am using CCS 20.0.2., the evalboard F29H85X-SOM-EVM and a debug header. Flash configuration is RAM. Hardware setup is doublechecked. Each pin that should be controlled by the XCMP can be toggled and observed on the oscilloscope so its likely not the hardwaresetup.
Any help is much appreciated.
Greetings,
Timo