Keil Logo

Configure Startup Code

The Startup Code initializes the microcontroller and has to match the configuration of the hardware design. Typically, the startup code resides in a file named STARTUP.ext, where ext reflects the device type. Startup files should be copied to the project folder.

Though the default settings are a good starting point, adaptation might be needed. For example, the CPU/PLL clock and the BUS system are target specific and cannot be configured automatically. Some devices provide options to enable or disable on-chip components (for example on-chip xdata RAM on 8051 variants).

You must ensure that the settings in the startup file match the other settings in your project.

Open the file in the editor. Most startup files include special comments for the Configuration Wizard providing GUI-like controls to set values.

The tab Text Editor switches to the standard editor view.

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.