Running M4 from QSPI on i.MX8MMEVK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Running M4 from QSPI on i.MX8MMEVK

Jump to solution
1,169 Views
m_c
Senior Contributor I

Tested with U-Boot 2018.03-imx_v2018.03_4.14.78_1.0.0_ga+g654088c (Nov 28 2018 - 19:15:55 +0000) on i.MX8MMEVK.

We use below to update QSPI with hello world M4 code.

fatload mmc 1:1 0x43000000 imx8mm_m4_TCM_hello_world.bin
sf probe
sf erase 0 0x2000
sf write 0x43000000 0 0x2000

We can run it by loading from QSPI to TCM.

sf probe
sf read 0x7e0000 0 0x2000
bootaux 0x7e0000

# M4 console show hello world

But can't run it directly from QSPI.

sf probe
bootaux 0x8000000

# M4 console show nothing

Labels (1)
0 Kudos
1 Solution
923 Views
igorpadykov
NXP Employee
NXP Employee

Hi m.c.

for running from qspi image should be rebuilt using MIMX8MM6xxxxx_cm4_flash.icf

linker configuration file and p.19 attached Getting Started with MCUXpresso SDK for i.MX 8M Mini

document gives some examples for running images from different memories.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
924 Views
igorpadykov
NXP Employee
NXP Employee

Hi m.c.

for running from qspi image should be rebuilt using MIMX8MM6xxxxx_cm4_flash.icf

linker configuration file and p.19 attached Getting Started with MCUXpresso SDK for i.MX 8M Mini

document gives some examples for running images from different memories.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos