Keil Logo

Startup Code

Startup Code is the program code that executes immediately after reset. The startup code includes:

  • The reset vector.
  • Code to setup the system and bus configuration registers.
  • Code to clear memory.
  • Code to initialize global variables.

There are several different startup files available.

  • STARTUP.A66 contains the startup code for 80C166-compatible devices.
  • START167.A66 contains the startup code for C161, C163, C164, C165, and C167 devices.
  • START_V2.A66 contains the startup code for the XC16x device family.
  • START_V3.A66 contains the startup code for the XC2000 and XE16x device families.

All startup files are located in the \KEIL\C166\LIB folder. You should copy the appropriate startup file into your project folder, include the copied file into the project, and make the corresponding changes there.

Related Knowledgebase Articles

  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.