How can I debug a Zephyr multi-core project on i.MXRT1165?

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

How can I debug a Zephyr multi-core project on i.MXRT1165?

1,233 Views
tringuyenbk06
Contributor I

How can I debug a Zephyr multi-core project on i.MXRT1165?

Hi everyone,

I am working on a simple dual-core application (referring to the IPC sample on the EVK and just printing logs from both cores over UART) using an MXRT-1165 custom board with the Zephyr project. I can flash both core images using J-Link Flash, but it is not working (no logs are received).

Question: How can I use MCUXpresso IDE to load both ELF files to debug the multi-core project?

zephyr.elf
zephyr.elf
Note: Our NOR Flash uses the 2nd pin mux (non-default) on FlexSPI1.

Thank you in advance!

0 Kudos
Reply
7 Replies

1,195 Views
tringuyenbk06
Contributor I

Hi @Gavin_Jia 

Thank you for your respond.
I am asking if MCUXpresso IDE support a debug only project mode where I can load 2 elf files for dual core debugging.

i.MX RT1170 Dual Core Application

Best Regards,
Tri Nguyen

0 Kudos
Reply

1,198 Views
tringuyenbk06
Contributor I

Hi @Gavin_Jia 

Thank you for your respond.

The zephyr sample mentions log check/debug only.

I am asking if IMCUXpresso IDE can support a multi core debug project where I can load dual core elf files on the board.

i.MX RT1170 Dual Core Application

Best Regards,
Tri Nguyen

0 Kudos
Reply

878 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @tringuyenbk06 ,

Thank you for your clarification!

However, to my knowledge, there is no out-of-the-box dual-core Zephyr ELF debug-only example provided in MCUXpresso IDE. Customers may need to debug both projects in RAM separately, pass the tests, and then attempt to use CM7 load the CM4 image into OCRAM before kicking CM4.

For the Zephyr project, NXP provides the official compilation and debugging environment MCUXpresso for VS Code, which you may also try.

Best regards,
Gavin

0 Kudos
Reply

537 Views
tringuyenbk06
Contributor I
Thank you for your assistance.
I will give it a try with the EVK first.
0 Kudos
Reply

1,206 Views
tringuyenbk06
Contributor I

I correct the elf file paths mentioned in the ticket description.
build\cm7\zephyr\zephyr.elf
build\cm4\zephyr\zephyr.elf

0 Kudos
Reply

1,232 Views
tringuyenbk06
Contributor I

JFlash_Configuration.png

0 Kudos
Reply

1,205 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @tringuyenbk06 ,

Thanks for your interest in NXP MIMXRT series!

Currently, there is only one example of a similar implementation. Please refer to the steps in this guide: https://docs.zephyrproject.org/latest/boards/nxp/mimxrt1170_evk/doc/index.html

We apologize for any inconvenience this may cause!

Best regards,
Gavin

 

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2326736%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20can%20I%20debug%20a%20Zephyr%20multi-core%20project%20on%20i.MXRT1165%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2326736%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHow%20can%20I%20debug%20a%20Zephyr%20multi-core%20project%20on%20i.MXRT1165%3F%3C%2FP%3E%3CP%3EHi%20everyone%2C%3C%2FP%3E%3CP%3EI%20am%20working%20on%20a%20simple%20dual-core%20application%20(referring%20to%20the%20IPC%20sample%20on%20the%20EVK%20and%20just%20printing%20logs%20from%20both%20cores%20over%20UART)%20using%20an%20MXRT-1165%20custom%20board%20with%20the%20Zephyr%20project.%20I%20can%20flash%20both%20core%20images%20using%20J-Link%20Flash%2C%20but%20it%20is%20not%20working%20(no%20logs%20are%20received).%3C%2FP%3E%3CP%3EQuestion%3A%20How%20can%20I%20use%20MCUXpresso%20IDE%20to%20load%20both%20ELF%20files%20to%20debug%20the%20multi-core%20project%3F%3C%2FP%3E%3CP%3Ezephyr.elf%3CBR%20%2F%3Ezephyr.elf%3CBR%20%2F%3ENote%3A%20Our%20NOR%20Flash%20uses%20the%202nd%20pin%20mux%20(non-default)%20on%20FlexSPI1.%3C%2FP%3E%3CP%3EThank%20you%20in%20advance!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2327063%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20can%20I%20debug%20a%20Zephyr%20multi-core%20project%20on%20i.MXRT1165%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2327063%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F203261%22%20target%3D%22_blank%22%3E%40Gavin_Jia%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20for%20your%20respond.%3CBR%20%2F%3EI%20am%20asking%20if%26nbsp%3BMCUXpresso%20IDE%20support%20a%20debug%20only%20project%20mode%20where%20I%20can%20load%202%20elf%20files%20for%20dual%20core%20debugging.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN13264.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ei.MX%20RT1170%20Dual%20Core%20Application%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3ETri%20Nguyen%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2327036%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20can%20I%20debug%20a%20Zephyr%20multi-core%20project%20on%20i.MXRT1165%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2327036%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F203261%22%20target%3D%22_blank%22%3E%40Gavin_Jia%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20for%20your%20respond.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20zephyr%20sample%20mentions%20log%20check%2Fdebug%20only.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20asking%20if%20IMCUXpresso%20IDE%20can%20support%20a%20multi%20core%20debug%20project%20where%20I%20can%20load%20dual%20core%20elf%20files%20on%20the%20board.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN13264.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ei.MX%20RT1170%20Dual%20Core%20Application%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3ETri%20Nguyen%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2326977%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20can%20I%20debug%20a%20Zephyr%20multi-core%20project%20on%20i.MXRT1165%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2326977%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F206143%22%20target%3D%22_blank%22%3E%40tringuyenbk06%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20interest%20in%20NXP%20MIMXRT%20series!%3C%2FP%3E%0A%3CP%3ECurrently%2C%20there%20is%20only%20one%20example%20of%20a%20similar%20implementation.%20Please%20refer%20to%20the%20steps%20in%20this%20guide%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.zephyrproject.org%2Flatest%2Fboards%2Fnxp%2Fmimxrt1170_evk%2Fdoc%2Findex.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.zephyrproject.org%2Flatest%2Fboards%2Fnxp%2Fmimxrt1170_evk%2Fdoc%2Findex.html%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EWe%20apologize%20for%20any%20inconvenience%20this%20may%20cause!%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EGavin%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorGavin_Jia_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2326916%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20can%20I%20debug%20a%20Zephyr%20multi-core%20project%20on%20i.MXRT1165%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2326916%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20correct%20the%20elf%20file%20paths%20mentioned%20in%20the%20ticket%20description.%3CBR%20%2F%3Ebuild%5Ccm7%5Czephyr%5Czephyr.elf%3CBR%20%2F%3Ebuild%5Ccm4%5Czephyr%5Czephyr.elf%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2329361%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20can%20I%20debug%20a%20Zephyr%20multi-core%20project%20on%20i.MXRT1165%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2329361%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F206143%22%20target%3D%22_blank%22%3E%40tringuyenbk06%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20clarification!%3C%2FP%3E%0A%3CP%3EHowever%2C%20to%20my%20knowledge%2C%20there%20is%20no%20out-of-the-box%20dual-core%20Zephyr%20ELF%20debug-only%20example%20provided%20in%20MCUXpresso%20IDE.%20Customers%20may%20need%20to%20debug%20both%20projects%20in%20RAM%20separately%2C%20pass%20the%20tests%2C%20and%20then%20attempt%20to%20use%20CM7%20load%20the%20CM4%20image%20into%20OCRAM%20before%20kicking%20CM4.%3C%2FP%3E%0A%3CP%3EFor%20the%20Zephyr%20project%2C%20NXP%20provides%20the%20official%20compilation%20and%20debugging%20environment%20MCUXpresso%20for%20VS%20Code%2C%20which%20you%20may%20also%20try.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EGavin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2334350%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20can%20I%20debug%20a%20Zephyr%20multi-core%20project%20on%20i.MXRT1165%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2334350%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThank%20you%20for%20your%20assistance.%3CBR%20%2F%3EI%20will%20give%20it%20a%20try%20with%20the%20EVK%20first.%3C%2FLINGO-BODY%3E