Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this exercise, you are to create a short assembly language program for the STM32F407VG microcontroller use the simulator within uVision5 to run and debug

image text in transcribed

image text in transcribed

For this exercise, you are to create a short assembly language program for the STM32F407VG microcontroller use the simulator within uVision5 to run and debug the program, rather than downloading the program to the Discovery board. Follow steps 1-7 and 11-12 of the procedure described in the document Creating Projects for STM32F4-Discovery with MDK-ARM, posted on the course web page. Debugging procedures are described in the document Debugging Projects for STM32F4-Discovery with MDK-ARM, also posted on the course web page The project is to have one assembly language source file, containing the program listed on the next page Create a debug initialization file (step 11 of the procedure) to o initialize the PC register to the starting address of the program (0x20000000), o set the PSR register to 0x01000000 (to set the T bit to 1 to select Thumb mode) o set data variables CC2 and VarA to 6 and 0, respectively. In the debugger, display the data memory used by the program in the Memory 1 window (starting at 0x20010000), and display the value of variable VarA in the Watch 1 window. Single-step through the program (execute one instruction at a time), watching the executed instructions in the Disassembly Window, and noting changes in the CPU registers, memory and watch windows. (Changes are highlighted by the debugger as instructions execute.) After executing the last instruction of the test program, capture and print a "screen shot" of the Debug Window, showing the final state of the program. On this printout, circle or highlight the following items in these debug windows. o Source Code Window-the last instruction executed o Disassembly Window-the last instruction executed o Registers Window -the final value of the PC and the last register modified by the program o Memory Window the value written to memory by the program o Watch 1 Window the value of VarA o Examine the assembler listing file (.lst) and map file (.map) to see how the program as assembled, and the locations of program code, variables, etc

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Shouhong Wang, Hai Wang

1st Edition

1612330150, 978-1612330150

More Books

Students also viewed these Databases questions

Question

21 A cornpany may be liable in product liability for

Answered: 1 week ago

Question

What is digital literacy? Why is it necessary?

Answered: 1 week ago