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
解決済! 解決策の投稿を見る。
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
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.
Is it correct?
BTW,
Is there document about i.MX8M Nano MCUXpresso SDK can be referred? Thanks.
Regards,
Daniel
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
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}"
Regards,
Daniel
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:
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!
-------------------------------------------------------------------------------
Hi Carlos,
I had download the SDK and documentation that includes the Getting started guide.
It's very useful.
Thank you.
Daniel Chiu