[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH rc2 14/25] target/avr: Add section about AVR into QEMU docume
From: |
Thomas Huth |
Subject: |
Re: [PATCH rc2 14/25] target/avr: Add section about AVR into QEMU documentation |
Date: |
Fri, 24 Jan 2020 08:14:12 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
On 24/01/2020 01.51, Philippe Mathieu-Daudé wrote:
> From: Michael Rolnik <address@hidden>
>
> Signed-off-by: Michael Rolnik <address@hidden>
> Message-Id: <address@hidden>
> Signed-off-by: Richard Henderson <address@hidden>
> [PMD: Fixed typos]
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
> ---
> rc2: Fixed typos, s/sample/Arduino/, removed -serial section (thuth)
> ---
> qemu-doc.texi | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 51 insertions(+)
>
> diff --git a/qemu-doc.texi b/qemu-doc.texi
> index 39f950471f..89df1d325e 100644
> --- a/qemu-doc.texi
> +++ b/qemu-doc.texi
> @@ -1741,6 +1741,7 @@ differences are mentioned in the following sections.
> * Microblaze System emulator::
> * SH4 System emulator::
> * Xtensa System emulator::
> +* AVR System emulator::
> @end menu
>
> @node PowerPC System emulator
> @@ -2514,6 +2515,56 @@ so should only be used with trusted guest OS.
>
> @c man end
>
> +@node AVR System emulator
> +@section AVR System emulator
> +@cindex system emulation (AVR)
> +
> +Use the executable @file{qemu-system-avr} to emulates a AVR 8 bit based
> machine
> +having one for the following cores: avr1, avr2, avr25, avr3, avr31, avr35,
> avr4,
> +avr5, avr51, avr6, avrtiny, xmega2, xmega3, xmega4, xmega5, xmega6 and
> xmega7.
> +
> +As for now it supports few Arduino boards for educational and testing
> purposes.
> +These boards use a ATmega controller, which model is limited to USART & 16
> bit
> +timer devices, enought to run FreeRTOS based applications (like this
> @url{https://github.com/seharris/qemu-avr-tests/blob/master/free-rtos/Demo/AVR_ATMega2560_GCC/demo.elf,,demo})
> +
> +Following are examples of possible usages, assuming program.elf is compiled
> for
> +AVR cpu
> +@itemize
> +
> +@item Continuous non interrupted execution
> +@example
> +qemu-system-avr -kernel program.elf
> +@end example
> +
> +@item Continuous non interrupted execution with serial output into telnet
> window
> +@example
> +qemu-system-avr -kernel program.elf -serial tcp::5678,server,nowait
> -nographic
> +@end example
> +and then in another shell
> +@example
> +telnet localhost 5678
> +@end example
> +
> +@item Debugging wit GDB debugger
> +@example
> +qemu-system-avr -kernel program.elf -s -S
> +@end example
> +and then in another shell
> +@example
> +avr-gdb program.elf
> +@end example
> +and then within GDB shell
> +@example
> +target remote :1234
> +@end example
> +
> +@item Print out executed instructions
> +@example
> +qemu-system-avr -kernel program.elf -d in_asm
If you don't have a default board anymore, I think you need to list -M
here, too.
And didn't you mention that -kernel is not working anyway? Do you need
to replace it with -bios ?
Thomas
- Re: [PATCH rc2 01/25] target/avr: Add outward facing interfaces and core CPU logic, (continued)
- [PATCH rc2 07/25] target/avr: Add instruction translation - Bit and Bit-test Instructions, Philippe Mathieu-Daudé, 2020/01/23
- [PATCH rc2 04/25] target/avr: Add instruction translation - Arithmetic and Logic Instructions, Philippe Mathieu-Daudé, 2020/01/23
- [PATCH rc2 08/25] target/avr: Add instruction translation - MCU Control Instructions, Philippe Mathieu-Daudé, 2020/01/23
- [PATCH rc2 09/25] target/avr: Add instruction translation - CPU main translation function, Philippe Mathieu-Daudé, 2020/01/23
- [PATCH rc2 10/25] target/avr: Add instruction disassembly function, Philippe Mathieu-Daudé, 2020/01/23
- [PATCH rc2 06/25] target/avr: Add instruction translation - Data Transfer Instructions, Philippe Mathieu-Daudé, 2020/01/23
- [PATCH rc2 11/25] hw/char: Add limited support for Atmel USART peripheral, Philippe Mathieu-Daudé, 2020/01/23
- [PATCH rc2 13/25] hw/misc: Add Atmel power device, Philippe Mathieu-Daudé, 2020/01/23
- [PATCH rc2 14/25] target/avr: Add section about AVR into QEMU documentation, Philippe Mathieu-Daudé, 2020/01/23
- Re: [PATCH rc2 14/25] target/avr: Add section about AVR into QEMU documentation,
Thomas Huth <=
- [PATCH rc2 15/25] target/avr: Register AVR support with the rest of QEMU, Philippe Mathieu-Daudé, 2020/01/23
- [PATCH rc2 12/25] hw/timer: Add limited support for Atmel 16 bit timer peripheral, Philippe Mathieu-Daudé, 2020/01/23