Hello,
I am trying to write the clock manager register to turn on the PWM peripherals, but when I print out the value of the register before and after the write operation, I can see that it hasn't changed. What am I doing wrong:
#define CM_PER_ADDR 0x44E00000
#define CM_PER_EPWMSS1_CLKCTRL 0xCC
// point to the register and write new value
cmper = (uint32_t *) mmap(0, getpagesize(), PROT_READ|PROT_WRITE, MAP_SHARED, fd, CM_PER_ADDR);
printf("pwmss1 clk enable: %x\n", cmper[CM_PER_EPWMSS1_CLKCTRL]);
cmper[CM_PER_EPWMSS1_CLKCTRL] = 0xFFFF;
printf("pwmss1 clk enable: %x\n", cmper[CM_PER_EPWMSS1_CLKCTRL]);