From: Gabriel Costa <gabriel291075@gmail.com>
To: qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org, peter.maydell@linaro.org, f4bug@amsat.org,
Gabriel Augusto Costa <gabriel291075@gmail.com>
Subject: [Qemu-devel] [PATCH v5 0/5]arm: kinetis_k64
Date: Thu, 26 Oct 2017 06:34:07 -0400 [thread overview]
Message-ID: <1509014053-28134-1-git-send-email-costa@advantech.ca> (raw)
From: Gabriel Augusto Costa <gabriel291075@gmail.com>
Hi everyone,
I made a new arm machine with some peripherals.
The machine is mk64fn1m0, a cortex-m4 microcontroller from NXP Kinetis family.
I have prepared a series of patchs to include this machine:
PATCH v5 n/5: It adds the machine and peripherals devices;
PATCH v6: It changes the Makes files to compile this machine.
This machine has been created based on K64P144M120SF5RM.pdf, stellaris and
stm32f205 machines, and reading the code of the other devices. Also, the
comments from community and special thanks to Peter Maydell, Philippe
Mathieu-Daude and Eric Blake.
The initial propose of this machine is execute a simple example, only
with UART0 in polling mode, and gradually adding other devices/peripherals to
this machine to allow execute an operating system like FreeRTOS or MQX.
Next step:
-Execute an example of UART0 working with interruption.
-Add a timer with interruption.
The code to test can be generated using MCUXpresso IDE v10.0.2_411, with the
option "Import SDK Examples", selecting "frdmk64f" family, driver_examples,
uart, polling.
The binary file generated is frdmk64f_driver_examples_uart_polling.axf and
can be executed in QEmu with this patch using the following command:
$qemu-system-arm -M mk64fn1m0 -kernel frdmk64f_driver_examples_uart_polling.axf
obs: I can send the file if someone want to test!
History:
PATCH V1: First try. Many errors, the patch is long with code style
issues, change the files to executable.
PATCH V2: the same mistakes.
PATCH V3: The patch was splitted in series of patch, without code style
errors. I receive some tips about QEmu functions and others tips.
PATCH V4: Not send.
regards,
Gabriel Augusto Costa (6):
arm: kinetis_k64_mcg
arm: kinetis_k64_pmux
arm: kinetis_k64_system.c
arm: kinetis_k64_uart
arm: mk64fn1m0
arm: Added kinetis k64 platform
default-configs/arm-softmmu.mak | 1 +
hw/arm/Makefile.objs | 1 +
hw/arm/mk64fn1m0.c | 136 ++++++++++++++
hw/char/Makefile.objs | 1 +
hw/char/kinetis_k64_uart.c | 342 +++++++++++++++++++++++++++++++++++
hw/misc/Makefile.objs | 3 +
hw/misc/kinetis_k64_mcg.c | 208 +++++++++++++++++++++
hw/misc/kinetis_k64_pmux.c | 159 ++++++++++++++++
hw/misc/kinetis_k64_system.c | 274 ++++++++++++++++++++++++++++
include/hw/char/kinetis_k64_uart.h | 79 ++++++++
include/hw/misc/kinetis_k64_mcg.h | 43 +++++
include/hw/misc/kinetis_k64_pmux.h | 38 ++++
include/hw/misc/kinetis_k64_system.h | 52 ++++++
13 files changed, 1337 insertions(+)
mode change 100644 => 100755 default-configs/arm-softmmu.mak
mode change 100644 => 100755 hw/arm/Makefile.objs
create mode 100755 hw/arm/mk64fn1m0.c
mode change 100644 => 100755 hw/char/Makefile.objs
create mode 100755 hw/char/kinetis_k64_uart.c
mode change 100644 => 100755 hw/misc/Makefile.objs
create mode 100755 hw/misc/kinetis_k64_mcg.c
create mode 100755 hw/misc/kinetis_k64_pmux.c
create mode 100755 hw/misc/kinetis_k64_system.c
create mode 100755 include/hw/char/kinetis_k64_uart.h
create mode 100755 include/hw/misc/kinetis_k64_mcg.h
create mode 100755 include/hw/misc/kinetis_k64_pmux.h
create mode 100755 include/hw/misc/kinetis_k64_system.h
--
2.1.4
next reply other threads:[~2017-10-26 14:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-26 10:34 Gabriel Costa [this message]
2017-10-26 10:34 ` [Qemu-devel] [PATCH v5 1/5]arm: kinetis_k64_mcg Gabriel Costa
2017-10-27 13:13 ` KONRAD Frederic
2017-10-26 10:34 ` [Qemu-devel] [PATCH v5 3/5]arm: kinetis_k64_system Gabriel Costa
2017-10-27 13:20 ` KONRAD Frederic
2017-10-27 14:39 ` Gabriel Costa
2017-10-26 10:34 ` [Qemu-devel] [PATCH v5 4/5]arm: kinetis_k64_uart Gabriel Costa
2017-10-27 13:26 ` KONRAD Frederic
2017-10-27 15:18 ` Gabriel Costa
2017-10-26 10:34 ` [Qemu-devel] [PATCH v5 5/5]arm: mk64fn1m0 Gabriel Costa
2017-10-26 10:34 ` [Qemu-devel] [PATCH v6]arm: Makefiles to kinetis k64 platform Gabriel Costa
2017-10-26 15:04 ` no-reply
2017-10-26 15:27 ` no-reply
2017-10-27 13:07 ` KONRAD Frederic
2017-10-27 14:25 ` Gabriel Costa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1509014053-28134-1-git-send-email-costa@advantech.ca \
--to=gabriel291075@gmail.com \
--cc=f4bug@amsat.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).