Author Topic: TMS32F28379D  (Read 620 times)

0 Members and 1 Guest are viewing this topic.

Offline Apollo1234Topic starter

  • Contributor
  • Posts: 15
  • Country: pt
TMS32F28379D
« on: October 10, 2024, 03:16:43 pm »
Hi there, im trying to control the epwm6 in the cpu2 of the refered mcu but im not beeing able to do it. In the cpu1 main i assing the gpio muxus to the correct positions ang give the onwership of the epwm6 module to the cpu2. in the cpu2 i enable the clock for the epwm6 and configure it but it dosent work. do i need to give te onwership of the gpio to cpu2 as well?
 

Offline mtwieg

  • Super Contributor
  • ***
  • Posts: 1777
  • Country: us
Re: TMS32F28379D
« Reply #1 on: October 11, 2024, 11:54:26 am »
There shouldn't be any need to assign the GPIO to CPU2, so long as CPU1 has already configured it as required.

I would first try and set up the ePWM6 with CPU1 only, to make sure your configurations are correct. Then try and replicate it using CPU2.

I recall that peripheral clock control with CPU2 has some tricks to it. Look up the CLKSEM register.
 

Offline Apollo1234Topic starter

  • Contributor
  • Posts: 15
  • Country: pt
Re: TMS32F28379D
« Reply #2 on: October 11, 2024, 10:25:24 pm »
Hi,

Thank you! I found the problem. When passing ownership to CPU2, I completely overlooked that it’s an EALLOW-protected register. Adding the necessary lines solved my issue.

Thanks again!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf