target-rx.rst 1001 B

123456789101112131415161718192021222324252627282930313233343536
  1. .. _RX-System-emulator:
  2. RX System emulator
  3. --------------------
  4. Use the executable ``qemu-system-rx`` to simulate RX target (GDB simulator).
  5. This target emulated following devices.
  6. - R5F562N8 MCU
  7. - On-chip memory (ROM 512KB, RAM 96KB)
  8. - Interrupt Control Unit (ICUa)
  9. - 8Bit Timer x 1CH (TMR0,1)
  10. - Compare Match Timer x 2CH (CMT0,1)
  11. - Serial Communication Interface x 1CH (SCI0)
  12. - External memory 16MByte
  13. Example of ``qemu-system-rx`` usage for RX is shown below:
  14. Download ``<u-boot_image_file>`` from
  15. https://osdn.net/users/ysato/pf/qemu/dl/u-boot.bin.gz
  16. Start emulation of rx-virt::
  17. qemu-system-rx -M gdbsim-r5f562n8 -bios <u-boot_image_file>
  18. Download ``kernel_image_file`` from
  19. https://osdn.net/users/ysato/pf/qemu/dl/zImage
  20. Download ``device_tree_blob`` from
  21. https://osdn.net/users/ysato/pf/qemu/dl/rx-virt.dtb
  22. Start emulation of rx-virt::
  23. qemu-system-rx -M gdbsim-r5f562n8 \
  24. -kernel <kernel_image_file> -dtb <device_tree_blob> \
  25. -append "earlycon"