Hi,
I have a legacy project of DSP 28335 constructed in CCS3.3 that runs from flash, and I migrated it into CCS5.4, the code compiles and runs but the PWM frequency is not what I want, and I think it is because the clock configuration not working.
In the Dubug mode, On-Chip Flash window, I set CLKINDIV=2 PLLCR=6, then I load and run the program, and I find that instead of 4kHz PWM I get 6kHz, which indicates that the actual clock is 1.5 times faster (likely CLKINDIV=2 PLLCR=9). To verify my thought, I run Scripts->Set PLL Ratio->OSCCLK_x6_divided_by_2, and I see the PWM being right 4kHz, which confirms that the On-Chip Flash clock configuration is not working. After I cycle the power, as you would expect, the PWM is back to 6kHz.
Did I miss anything in setting the on-chip flash clock? Is there any piece of code that I need to modify, in addition to what I do in On-Chip Flash Programmer, in order to change the clock?
Thanks,
Yang