I'm trying to run an app from NOR flash, which makes conventional debugging means difficult.
The program seems to get hung up when I try to specify a reset of the PLLA clock:
Code:
AT91C_BASE_PMC->PMC_MCKR |= AT91C_PMC_CSS_PLLA_CLK;
... but it's okay when I attempt to reset the main clock:
Code:
AT91C_BASE_PMC->PMC_MCKR |= AT91C_PMC_CSS_MAIN_CLK;
... as judged by telling an LED to flash whenever the board is running.
It's the only thing that changes between the two code bases. I imagine that changing the PLLA clock is, in some sense, telling it to change the clock it's running on while it's running. Can someone refer me to a way to change a clock in midstream? I'd like to make sure I'm taking care of all the things I need to in order to make sure that I haven't left something out.
Thanks for any help you can provide.