µVision User's GuideAbout µVision User Interface Creating Applications Creating Projects Setup the Project Add Source Files to Project Create File Groups Set Tool Options Configure Startup Code Build the Project Build Log File Create HEX File Project Targets and File Groups File and Group Attributes Configuration Dialogs Multi-Projects Create a Multi-Project Manage a Multi-Project Batch Build Multi-Projects Tips and Tricks Start External Tools Redirect Output for Object and Listing Files Customize or Add Devices Create a Library File File and Group Specific Options Different Compiler and Assembler Settings Set Folders and File Extensions Version and Serial Number Information Including Library Modules Use a Custom Translator Utilities Debugging Debug Commands Debug Functions Simulation Flash Programming Dialogs Example Programs Command Line Appendix
Setup the Project
The menu Project - New µVision Project creates a new project. Select an empty folder and enter the project name, for example Project1. The file extension is *.UVPROJ for MDK version 4, or *.UVPROJX for later versions. It is good practice to use a separate folder for each project.
Next, the dialog Select Device for Target opens.
Select the device database. Default is Software Packs. You can have various local device databases which show up in the drop-down box.
Select the device for your application. This selection defines essential tool settings such as compiler controls, the memory layout for the linker, and the Flash programming algorithms.
Copy and Add the Startup Code
Embedded programs require some kind of microcontroller initialization code that has to match the configuration of the hardware design. The startup code delivered with µVision configures the microcontroller device and initializes the compiler run-time system.
For most devices, copy the startup code to the project. This is required for almost all projects (exceptions: library projects and add-on projects).
Therefore, answer this question with YES.
Continue with Add Source Files to Project.
of your data.