0

I am having doubts in when should the system clock be setup in the microcontroller. My question is should the system clock be setup properly before invoking the functions to copy .data & .bss sections from ROM to RAM?

My rationale for setting up the system clock prior to the copying process is to speed up the execution time in copying. Do I make sense? Without the setup clock, I feel that that copying process will be slower due to a lower clock speed. Can anyone corroborate this?

If the clock was not setup, it would be running on some default value(lower than the intended value for operation). The reason for setting up the clock is to offer a quick startup timing before the actual applications run.

Generally, should one copy the required sections from rom to ram before the clock is setup properly(i.e the application should take care in setting up the clock)?Please clarify and point to relevant resources.

Thank You.

Austin
  • 1
  • 2
    Please provide context. It sounds like you're talking about the actual CPU clock-speed in a microprogramming environment, rather than the "Today's date and time" clock on a desktop computer. What system is this? – Dai Nov 11 '14 at 05:15
  • The microcontroller used is MPC5606B. The above is more like sequences in a startup code before the control passes to the application code. – Austin Nov 11 '14 at 05:19

0 Answers0