|ARM Technical Support Knowledge Articles|
Applies to: uVision Debugger
Information in this article applies to:
I have a problem with simulating the UCFG1 register in the LPC simulator. It seems that the simulator defaults to UCFG1=0 which gives the setting Crystal (High Frequency). I know that it is possible to change the settings in the Peripherals - System Configuration dialog, but I want to automate my settings.
Is there a way to automate these settings, for example by using an Debugger INI file?
This may be achieved by putting the desired value for UCFG1 at C:0xFFF0 in your application. This is automatically done when you configure the standard STARTUP file that is part of the Keil compiler package. The most up-to-date version of the LPC900 startup file (start900.a51) can be found at start900.a51 Download.
If you do not have a startup file, you may set the VTREG UCFG1 to initial value and perform a reset. Note that the UCFG1 value is only read at CPU reset.
Article last edited on: 2005-09-22 12:26:18
Did you find this article helpful? Yes No
How can we improve this article?