Does the program not run, or is it simply very very slow? After RESET the processor runs at 4MHz/16=250kHz. Stack set up as well as data initialisation should be done in the start-up code provided by your compiler. It would be good to add also the clock initialisation to the start-up code so data initialisation could be accelerated.
↧