|ARM Technical Support Knowledge Articles|
Applies to: uVision Debugger
Information in this article applies to:
I'm developing an application with Keil Monitor-166 on a Phytec Evaluation Board. For production, I want to run my program from Flash memory. How can I create a project that allows me to run the application from Flash or with the Monitor-166?
uVision allows you to use project targets with different project settings. With this feature, it is possible to create a project that builds a target for use with the Phytec board and monitor and another target for Flash download.
The User's Guide "Getting Started and Creating Applications" (GS166.PDF) describes in "Chapter 4. Creating Applications" how you create project files for uVision2. In "Chapter 11. Using Monitor-166" read the section "Target Options when Using Monitor-166". Study these chapters to learn how to create applications that can be tested under uVision with Monitor-166.
The Keil 166 development tools come with a couple of sample applications in the folder KeilC166ExamplesBoards. These examples are already configured for the debugging with Monitor-166.
When you run a program under Monitor-166, the complete program code must be located in RAM space. For the Flash Version, the program code and the constants need to go into the Flash ROM space and the data area of your application needs to go into the RAM space of your board. Typically, a 166 program contains a configured version of the startup code (START167.A66) which specifies the address ranges of the Chip Select (CS) lines of the 166 controller. You will need a different version of the startup code for Monitor debugging and for the Flash version of your application.
In reality, you must create a version of the startup code for the Flash project. You should make a copy of the START167.A66 and rename it for your Flash project (START167_FLASH.A66 for example).
If you have already created an application that runs well with the Keil Monitor-166, you may then create an additional target for the Flash variant of your software.
Now you can generate the Flash variant of your application using the Project - Build command.
Article last edited on: 2005-09-23 09:54:47
Did you find this article helpful? Yes No
How can we improve this article?