This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x - Problem Configuring eCAP module to Generate PWM

Hello!

We are trying to configure the eCAP module to generate a PWM output signal on ECAP0_IN_PWM0_OUT.

When the ECCLT2_REG value is read, the CPU halts.

Any ideas why simply reading this register causes the CPU to halt? Does this mean a peripheral isn't correctly enabled or a clock that isn't turned on?

Here is the code run from u-boot:

Is there anything missing from this code, such as missing configuration steps?

Additionally, here is the current mux configuration, which is also done in u-boot:

Is this the correct way to mux the pins for the eCAP module?

 

Any feedback here would be most helpful.

Thanks,

James