Skip to content
hakehuang edited this page Sep 25, 2023 · 5 revisions

Welcome to the NXP QEMU wiki!

This repo hosts the code demo in the ZDS2023 video can be found here

https://www.youtube.com/watch?v=AZAuwy_0IOk&list=PLbzoR-pLrL6qmJK02QP35go9hj1jawqxy&index=167

zephyr code and demo scripts can be found in this repo

https://github.com/hakehuang/zds-2023-demo

  • build for *arm core qemu

./configure --target-list=arm-softmmu,arm-linux-user make

  • run it

./build/qemu-system-arm -nographic -machine rt595-m33,boot-base-addr=0x280000 -kernel /home/shared/temp/hello_world_rt595.out -s -S ./build/qemu-system-arm -nographic -machine rt595-m33,boot-base-addr=0x18001000 ./build/qemu-system-arm -nographic -machine rt595-m33,boot-base-addr=0x18001000 -global rt-lpadc.dma_hw_trigger_nr=24 -kernel /home/shared/temp/zephyr.elf -s -S

  • run with SD support

qemu-img create -f raw sd1.img 256M qemu-img create -f raw sd1.img 256M

./build/qemu-system-arm -nographic -machine rt595-m33,boot-base-addr=0x280000 -kernel /home/shared/temp/sdcard_polling.out -drive file=/home/shared/temp/sd1.img,if=sd,index=0,format=raw -drive file=/home/shared/temp/sd2.img,if=sd,index=1,format=raw

./build/qemu-system-arm -nographic -machine rt595-m33,boot-base-addr=0x280000 -kernel /home/shared/temp/sdcard_polling.out -drive file=/home/shared/temp/sd1.img,if=sd,index=0,format=raw

  • run with char backend

./build/qemu-system-arm -nographic -machine rt595-m33,boot-base-addr=0x280000 -kernel /home/shared/temp/hello_world.out -serial chardev:char2 -chardev pipe,id=char2,path=/tmp/pipe

  • add below for trace

--trace "memory_region_ops_*"

  • build and run xtensa sample

./configure --target-list=xtensa-softmmu,xtensaeb-softmmu make

python3 scripts/dbus_mu_service.py &

For qemu: cgdb -d gdb-multiarch -x ~/.cgdb/gdb_qemu ./build/qemu-system-arm

For target application:

cgdb -d gdb-multiarch -x ~/.cgdb/.gdbinit sdcard_polling.out

Clone this wiki locally