Unformatted text preview:

Bharath ([email protected])Downloading your code to Flash RAM1. What is Flash RAM?Flash RAM is non-volatile memory that stores your code when you power off themicrocontroller board. Thus you do not have to fire up KEIL everytime you want to runyour program. The only caveat is you have to manually configure your Keil IDE to download your codeto Flash. It is pretty simple. Shown below is an email (with minor modifications for usewith EECS 40) circulated around in EECS 192, the mechatronic design lab class, inSpring 2001 that shows you how to configure your IDE for Flash. EECS 192 uses theboard as the brains of an autonomous race car. For more information visit: http://www-inst.eecs.berkeley.edu/~ee192How to run from flash on the Phytec 167CR board...By Richard Niedzwiecki and Rosemary HuangRev. 0.99a5/10/2001Hello All,We've been able to successfully run our program from flash. Iwill try to outline the procedure here, step by step, includingour program settings. Note: not all of these options arerequired for flash to work, but unless you know which ones doand which ones don't, it's probably best to set these optionsexactly as indicated.*** Keil compiler settings ***(The following are options for your target project)Options->Target ROM 0x0 0x3FFFF RAM 0x40000 0xFFFFNote: Remember to uncheck the option for 'Use On-Chip CAN+XRAM' All other options 'default'Options->Output Create Executable Check Debug Information Check Create Hex File HEX Format HEX-86 Browse Information FLASH Fill Byte: 0x00 All other options 'default'Options->Listing Optional: Linker Listing: check all except Cross Reference, Generated Symobols (all this does is generate a linker output file that's useful for checking what was linked) All other options 'default'Options->C166 Misc Controls: MOD167 All other options 'default'Options->A166 Misc Controls: MOD167 All other options 'default'Options->L166 Locate All options 'default'Options->L166 Misc Reserve: 8H-0BH, 0ACH-0AFHOptions->Debug Uncheck: All boxes in left pane Check: All boxes in right pane Use: Keil Monitor-166 Driver (set up as per instructions previously provided) All other options 'default'(The following is required to properly include the Start167.asm file in the linking process)1) Copy the correct Start167.a66 file into your code directory (YOU CAN GET THIS FILE FROM THE EECS 40 CalBOT homepage). You'll know you have the right file if the file size is 26KB, and the first four lines of the file are...;******************************************************************************;--------------------------------------------------------------------------;To Run with the Flash Programming Tools/ Enviroment of C167 Board the;following changes have been made compared to standard start167.a66 )2) Add a new subdirectory (group) to your project (name it anything you'd like).3) Add the Start167.a66 to that group.*** Loading and running from flash ***Now that your compiler settings are correct, compile yourcode and make sure that in the status window it shows thatyour Start167.a66 file was linked. To load the programinto flash, use the windows-based flash tools installed in your EECS 40 student account.Follow the menu selections to erase all the flash memory, then load theprogram. Switch SW1 on the DIP to 'off' and the program will run automatically upon pressing the reset


View Full Document

Berkeley ELENG 40 - Flash RAM

Documents in this Course
Lecture 3

Lecture 3

73 pages

Lecture 1

Lecture 1

84 pages

Guide 4

Guide 4

8 pages

Diodes

Diodes

7 pages

Quiz

Quiz

9 pages

Load more
Download Flash RAM
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Flash RAM and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Flash RAM 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?