# How to run the demo images for the Cortex-M7

**URL:** <https://community.solid-run.com/t/how-to-run-the-demo-images-for-the-cortex-m7/944>\
**Category:** NXP i.MX8M Plus\
**Created:** [December 28, 2024, 8:49pm UTC](https://community.solid-run.com/t/how-to-run-the-demo-images-for-the-cortex-m7/944 "2024-12-28T20:49:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hschouten](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/hschouten/32/357_2.png) [@hschouten](https://community.solid-run.com/u/hschouten)\
**Post date:** [December 28, 2024, 8:49pm UTC](https://community.solid-run.com/t/how-to-run-the-demo-images-for-the-cortex-m7/944/1 "2024-12-28T20:49:30Z")

</div>

In the /boot partition of the KirkStone build I see these files:  
imx8mp\_m7\_TCM\_hello\_world.bin  
imx8mp\_m7\_TCM\_low\_power\_voice.bin  
imx8mp\_m7\_TCM\_low\_power\_wakeword.bin  
imx8mp\_m7\_TCM\_rpmsg\_lite\_pingpong\_rtos\_linux\_remote.bin  
imx8mp\_m7\_TCM\_rpmsg\_lite\_str\_echo\_rtos.bin  
imx8mp\_m7\_TCM\_sai\_low\_power\_audio.bin

From [https://community.nxp.com/t5/i-MX-Processors/imx8mq-m4-TCM-hello-world-bin-with-Thud/m-p/943422](https://community.nxp.com/t5/i-MX-Processors/imx8mq-m4-TCM-hello-world-bin-with-Thud/m-p/943422)  
I expect these should be started like this from u-boot:

u-boot=\> fatload mmc 1:1 0x48000000 imx8mm\_m7\_TCM\_hello\_world.bin  
Failed to load ‘imx8mm\_m7\_TCM\_hello\_world.bin’  
u-boot=\> fatload mmc 1:1 0x48000000 imx8mp\_m7\_TCM\_hello\_world.bin  
8512 bytes read in 2 ms (4.1 MiB/s)  
u-boot=\> cp.b 0x48000000 0x7e0000 20000  
u-boot=\> bootaux 0x7e0000

## Starting auxiliary core stack = 0x20020000, pc = 0x000004CD…

u-boot=\> boot

However when I load and start this demo file on the cortex-m7, the kernel crashes:  
[1.930934] CPU: 3 PID: 131 Comm: kworker/u8:2 Not tainted 5.15.71+g7f26b695837b #1  
[1.930940] Hardware name: SolidRun i.MX8MP CuBox-M (DT)  
[1.930945] Workqueue: events\_unbound deferred\_probe\_work\_func  
[1.930962] pstate: 80000005 (Nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=–)  
[1.930969] pc : of\_match\_node+0x2c/0xb0  
[1.930977] lr : i2c\_imx\_probe+0x2e8/0x860  
[1.930985] sp : ffff800009ed3aa0  
[1.930988] x29: ffff800009ed3aa0 x28: ffff0000055e1ca0 x27: 0000000000000000  
[1.930997] x26: ffff0000055e18f0 x25: ffff800009177308 x24: ffff8000091772d0  
[1.931005] x23: ffff800009a6c728 x22: ffff0000bfa76050 x21: ffff000004432000  
[1.931014] x20: ffff000004432010 x19: ffff800009177308 x18: 0000000000000001  
[1.931022] x17: 000000040044ffff x16: 00400032b5503510 x15: 0000000000000000  
[1.931030] x14: 00000000000000b0 x13: 0000000000004c00 x12: ffff000004bc6a14  
[1.931039] x11: ffff800009ed3a60 x10: aaaaaaaaaaaaaaab x9 : 0000000000000060  
[1.931049] x8 : ffff8000098a8b70 x7 : 0000000000000000 x6 : 000000000007a120  
[1.931062] x5 : 0000000000b71aff x4 : 0000000000000002 x3 : 0000000000000002  
[1.931071] x2 : 000000000000000c x1 : ffff0000bfa76050 x0 : ffff800009a6c728  
[1.931085] Kernel panic - not syncing: Asynchronous SError Interrupt  
[1.931089] CPU: 3 PID: 131 Comm: kworker/u8:2 Not tainted 5.15.71+g7f26b695837b #1  
[1.931097] Hardware name: SolidRun i.MX8MP CuBox-M (DT)  
[1.931099] Workqueue: events\_unbound deferred\_probe\_work\_func  
[1.931108] Call trace:  
[1.931110] dump\_backtrace+0x0/0x19c  
[1.931119] show\_stack+0x18/0x70  
[1.931126] dump\_stack\_lvl+0x68/0x84  
[1.931137] dump\_stack+0x18/0x34  
[1.931143] panic+0x15c/0x31c  
[1.931151] nmi\_panic+0x8c/0x90  
[1.931161] arm64\_serror\_panic+0x6c/0x7c  
[1.931166] do\_serror+0x58/0x5c  
[1.931171] el1h\_64\_error\_handler+0x30/0x50  
[1.931180] el1h\_64\_error+0x78/0x7c  
[1.931188] of\_match\_node+0x2c/0xb0  
[1.931193] i2c\_imx\_probe+0x2e8/0x860  
[1.931201] platform\_probe+0x68/0xe0  
[1.931209] really\_probe.part.0+0x9c/0x30c  
[1.931216] \_\_driver\_probe\_device+0x98/0x144  
[1.931223] driver\_probe\_device+0xc8/0x15c  
[1.931232] \_\_device\_attach\_driver+0xb8/0x134  
[1.931244] bus\_for\_each\_drv+0x78/0xd0  
[1.931250] \_\_device\_attach+0xa8/0x1c0  
[1.931259] device\_initial\_probe+0x14/0x20  
[1.931270] bus\_probe\_device+0x9c/0xa4  
[1.931279] deferred\_probe\_work\_func+0x80/0xc0  
[1.931288] process\_one\_work+0x1d0/0x354  
[1.931296] worker\_thread+0x2c0/0x470  
[1.931303] kthread+0x150/0x160  
[1.931310] ret\_from\_fork+0x10/0x20  
[1.931318] SMP: stopping secondary CPUs  
[1.931636] Kernel Offset: disabled  
[1.931638] CPU features: 0x00002001,20000846  
[1.931642] Memory Limit: none

How do I use these demos on a Cubox-M ?

regards  
Henk Schouten
