|
1 | | -<<<<<<< HEAD:README.rst |
2 | 1 | =========== |
3 | 2 | QEMU README |
4 | 3 | =========== |
5 | | -======= |
6 | | -QEMU with STM32 Microcontroller Implementation |
7 | | - |
8 | | -Official Homepage: http://beckus.github.io/qemu_stm32/ |
9 | | - |
10 | | -OVERVIEW |
11 | | -This is a copy of QEMU that has been modified to include an implementation |
12 | | -of the STM32 microcontroller. It also implements an Olimex STM32_P103 |
13 | | -developmentvboard. This project runs the demos located in the |
14 | | -stm32_p103_demos project located at: https://github.com/beckus/stm32_p103_demos . |
15 | | - |
16 | | -Commands for a typical build: |
17 | | -./configure --enable-debug --target-list="arm-softmmu" |
18 | | -make |
19 | | - |
20 | | -Useful make commands when rebuilding: |
21 | | - make defconfig |
22 | | - make clean |
23 | | - |
24 | | -The generated executable is arm-softmmu/qemu-system-arm . |
25 | | - |
26 | | -Other configure options which control the STM32 implementation: |
27 | | - |
28 | | - --extra-cflags=-DDEBUG_CLKTREE |
29 | | - Print out clock tree debug statements. |
30 | | - |
31 | | - --extra-cflags=-DDEBUG_STM32_RCC |
32 | | - Print RCC debug statements. |
33 | | - |
34 | | - --extra-cflags=-DDEBUG_STM32_UART |
35 | | - Print UART debug statements. |
36 | | - |
37 | | - --extra-cflags=-DSTM32_UART_NO_BAUD_DELAY |
38 | | - Disable the BAUD rate timing simulation |
39 | | - (i.e. the UART will transmit or receive as fast as possible, rather than |
40 | | - using a realistic delay). |
41 | | - |
42 | | - --extra-cflags=-DSTM32_UART_ENABLE_OVERRUN |
43 | | - Enable setting of the overrun flag if a character is |
44 | | - received before the last one is processed. If this is not set, the UART |
45 | | - will not receive the next character until the previous one is read by |
46 | | - software. Although less realisitic, this is safer in case the VM is |
47 | | - running slow. |
48 | | - |
49 | | -Other QEMU configure options which are useful for troubleshooting: |
50 | | - --extra-cflags=-DDEBUG_GIC |
51 | | - |
52 | | -qemu-system-arm options which are useful for trobuleshooting: |
53 | | - -d ? |
54 | | - To see available log levels |
55 | | - |
56 | | - -d cpu,in_asm |
57 | | - Enable logging to view the CPU state during execution and the ARM |
58 | | - instructions which are being executed. I believe --enable-debug must be |
59 | | - used for this to work. |
60 | | - By default, you can find the output in /tmp/qemu.log: |
61 | | - |
62 | | -UNIT TESTING |
63 | | -Unit test scripts are included for the STM32 implementation. |
64 | | -These test will be executed when running "make" with the standard |
65 | | -check targets (see tests/Makefile for documentation of QEMU's unit |
66 | | -testing features): |
67 | | - make check |
68 | | - make check-qtest-arm |
69 | | - |
70 | | - |
71 | | - |
72 | | -The original QEMU README follows: |
73 | | - |
74 | | ->>>>>>> 919b29ba7d... Pebble Qemu:README |
75 | 4 |
|
76 | 5 | QEMU is a generic and open source machine & userspace emulator and |
77 | 6 | virtualizer. |
|
0 commit comments