Download presentation
Presentation is loading. Please wait.
Published byAmara Severn Modified over 9 years ago
1
Tutorial 2 IDE for ARM 7 board (2)
2
Outline Introduce the Debug mode of uVision4 2
3
Build the project “Project” > “Build target” Success if no error 3
4
Start Debug mode “Debug” > “Start/Stop Debug Session” Click “OK” –Trial Version 4
5
Debug Mode Machine running code Register Your Assembly Code Serial Memory content 5
6
Display Window If you don’t see those window, you can display them by clicking the following icon Command Disassembly Registers Serial (URAT) 6
7
Running the program You can use the following icon to run your assembly code Reset RunStep one line Step over the current line 7
8
Running the program Next line to run (yellow arrow) 8
9
Run to cursor line To go to the target line, you can select the line, then “right click”, click “Run to cursor line” 9
10
Move to a register 10
11
Observe the R15 (PC) 11
12
Add R1 and R0 0x13c = 0x138 + 0x04 12
13
Observe the CPSR 13
14
After CMP “Negative” So, not equal 14
15
Link Register (R14) set by BL Save the address of next instruction after BL. Last PC + 4 = 144+4 PC save the address of next instruction 15
16
Run the code after BL 16
17
BX branch to the address in LR 17
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.