Run M7 application in uboot on i.MX 8M NANO DDR4 EVK

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

Run M7 application in uboot on i.MX 8M NANO DDR4 EVK

Jump to solution
3,013 Views
danielc
Contributor II

Hello Sir,

We had downloaded Linux 4.14.98_2.2.0 for i.MX 8M Nano GA  demo file, and  there are .dtb files  and  mcore demo bin files have been included in the demo file.

Is there command can be referred to run the M7 application in uboot like the attachments that is the example for i.MX 8MM EVK.

Thanks.

Daniel Chiu

Labels (1)
0 Kudos
1 Solution
2,783 Views
terry_lv
NXP Employee
NXP Employee

Hi Daniel,

  The result in the photo is correct.It is shown in M core console.

  BTW, normally, I prefer to use macros in u-boot to run M core applications.

e.g.

setenv m_image hello_world.bin
setenv m_loadaddr 0x7e0000
setenv load_m_image "fatload mmc '${mmcdev}':'${mmcpart}' '${m4_loadaddr}' '${m4_image}'"
setenv run_m_image "run load_m4_image; bootaux '${m4_loadaddr}'"

This macro will read m core binary from sd card to tcm address.

Then user will only need to use command "run_m_image" to run m core image from sd card.

Thanks!

Regards

Terry

View solution in original post

5 Replies
2,783 Views
danielc
Contributor II

Hello Sir,

   From reference manual, i.MX 8M Nano has 128KB ITCM whose start address is 0x7E000, so I set the M7 bin files(imx8mn_m7_TCM_hello_world.bin, imx8mn_m7_TCM_rpmsg_lite_str_echo_rtos.bin) to 0x7E000. 

and the M7 console shows the results as the attachments.

hello_world.PNG

Is it correct?

BTW,

Is there document about i.MX8M Nano MCUXpresso SDK can be referred? Thanks.

Regards,

Daniel

0 Kudos
2,784 Views
terry_lv
NXP Employee
NXP Employee

Hi Daniel,

  The result in the photo is correct.It is shown in M core console.

  BTW, normally, I prefer to use macros in u-boot to run M core applications.

e.g.

setenv m_image hello_world.bin
setenv m_loadaddr 0x7e0000
setenv load_m_image "fatload mmc '${mmcdev}':'${mmcpart}' '${m4_loadaddr}' '${m4_image}'"
setenv run_m_image "run load_m4_image; bootaux '${m4_loadaddr}'"

This macro will read m core binary from sd card to tcm address.

Then user will only need to use command "run_m_image" to run m core image from sd card.

Thanks!

Regards

Terry

2,783 Views
danielc
Contributor II

Hi Terry,

Thanks for your suggestion.

I modify the marcos as below:

setenv m7_image imx8mn_m7_TCM_rpmsg_lite_str_echo_rtos.bin
setenv m7_boot_addr 0x7E0000
setenv m7_run 'fatload mmc ${mmcdev}:${mmcpart} ${m7_boot_addr} ${m7_image};bootaux ${m7_boot_addr}'
setenv mmcboot "run m7_run;${mmcboot}"

pastedImage_1.png

Regards,

Daniel

0 Kudos
2,784 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Daniel,

The SDK for i.MX8M Nano could be downloaded from the MCUXpresso SDK Builder webpage at the following link:

https://mcuxpresso.nxp.com/en/select 

Once building the SDK for the proper target, the SDK and their documentation could be downloaded from the indicated links:

sdk 8MN.png

Hope this will be useful for you.
Best regards!
/Carlos
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
-------------------------------------------------------------------------------

2,784 Views
danielc
Contributor II

Hi Carlos,

I had download the SDK and documentation that includes the Getting started guide.

It's very useful.

Thank you.

Daniel Chiu

0 Kudos