The Free Keil ARM Simulator can be downloaded at: http...

8
The Free Keil ARM Simulator can be downloaded at: http://www.keil.com/arm/mdk.asp. You want the MDK-Lite version at the bottom of this web-page. If you are not a Windows user, you will need to use the Wright Hall 112 or 339 labs. Close Previous Project: After starting the Keil uVision4 software, use the Project | Close Project to close the last project. Create New Project: Use the Project | New uVision Project… as:

Transcript of The Free Keil ARM Simulator can be downloaded at: http...

The Free Keil ARM Simulator can be downloaded at: http://www.keil.com/arm/mdk.asp. You want the MDK-Lite

version at the bottom of this web-page.

If you are not a Windows user, you will need to use the Wright Hall 112 or 339 labs.

Close Previous Project: After starting the Keil uVision4 software, use the Project | Close Project to close the last project.

Create New Project: Use the Project | New uVision Project… as:

Right-Click on background of the “Create New Project” window to create a New Folder for the project.

Click on the new folder to move into it, then type in a project name of your choosing. Click the Save button

The “Select Device for Target “Target 1”… window select ARM | ARM7 (Big Endian), then OK

To finish customizing the Project for this ARM simulator, select Project | Options for Target ‘Target 1’…

In the Asm tab, uncheck the “Enable ARM/Thumb Interworking” box to get:

In the Linker tab, uncheck the “Use Memory Layout from Target Dialog” box AND delete the Scatter File to get:

Click OK to finish customizing the Project.

Entering Assembly Language Programming: We need to create a new file for the assembly language program:

I suggest immediately File | Save As

Choose a name for the file with a file extension .s as below. (should save in the current project directory). Click Save.

Enter your assembly language program and add the file to the project:

In the pop up window, select the file type “Asm Source file (*.s*, *.src, *.a*)” and select your assembly program:

Select your assembly language program and click Add and then Close.

To assemble the program (convert it to ARM machine language) select Project | Build target:

If no syntax errors exist in your assembly language program, the Build Output window at the bottom will say

“"arm_test.axf" - 0 Error(s), 0 Warning(s).”