|
|||||||||||
Technical Support Support Resources
Product Information |
µVISION DEBUGGER: Creating Targets for Flash and MonitorInformation in this article applies to:
QUESTIONI'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? ANSWERµVision 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 µVision2. 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 µVision with Monitor-166. The Keil 166 development tools come with sample applications in the folder Keil\C166\Examples\Boards. 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. MORE INFORMATION
SEE ALSO
Last Reviewed: Wednesday, December 9, 2020 | ||||||||||
|
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.