Tool/software:
I worte a code to configure EPWM module. I was running few weeks ago. I'm facing the following issue after updating the CCS to 21.1.1.
When I try to run the debug session, the red dot appears, as shown below. What is the meaning of this indicator..?
When I click on continue button, nothing happens and the following window appears:
The following window appears when I click 2nd time:
Could you please help me with the solution to the above problem.?
Please find below the following code for your reference:
Hi Hitesh,
This red dot is just a new visual on the CCS to show case that your CPU is halted.
Best,
Ryan Ma
Hi Ryan,
Thanks for clarification. But I'm still not getting the output PWM waveforms. It was working with the older version of the CCS software.
Hi Hitesh,
In order for you to get PWM waveforms. Please ensure your TBCLKSYNC = 1, you have a TBPRD set, CMPA/B values set, and AQ actions set for each event under AQCTLA/B.
Best,
Ryan Ma
Hi Ryan,
It's already set as mentioned in the code I posted.
These settings are already verified. It was working with the previous ccs version. Could you please look at the following images.. It's showing "boot28.asm" was not found.
I replaced " *(volatile unsigned int *)0x0D60 = &cri_pk_tr; " with " PieVectTable.EPWM1_INT = &cri_pk_tr; " and the code started working. I'm essentially doing the same thing. How to handle this if I don't want to use register structure and bitfield ?
Hi Hitesh,
What's the value at the 0x0D60 address before and after replacing? Do they both have the same value at that address?
Check to see if PieVectTable.EPWM1_INT is the address 0x0D60 and if the value at this address is the same before and after.
If they are not, maybe due to the data type you have implicitly declared
Best,
Ryan Ma
Hi Ryan,
I just noticed in TRM that the address of ISR is 22-bit. Hence, 'long' is the right datatype to use..My code actually worked with the following..
*(volatile unsigned long *)0x0D60 = (unsigned long)&cri_pk_tr;
Thanks for you time..