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.

error in example code for f28335 Flash API

When setting up the PLL, the example code provided with the f28335 flash API makes the assumption that PLLSTS[DIVSEL] == 0 because that is the default on reset.  This is a bad assumption, because SelectBootMode() in the boot ROM changes DIVSEL to 2 before you ever reach any user code.

The code still seems to work OK, though.  What is the issue with changing PLLCR when DIVSEL is not set to 0?

Also, what good does it do for the datasheet to show "value after reset" if the user never sees it?  Maybe the datasheet needs another entry for "value after boot ROM code completes".