Dual Core using the same peripherals

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

Dual Core using the same peripherals

528 Views
nampt
Contributor I

"I am using the MIMXRT1170 and building a dual-core project with MCUXpresso Config and IAR Workbench.

I'm wondering how to create the project. Should I configure, generate all peripherals in the master core (CM7) or on separate cores? And what should I do if both cores are using the same peripherals?"

MIMXRT1170-EVK 

0 Kudos
Reply
3 Replies

482 Views
nampt
Contributor I

thank you for your answer.
You mean I can configure on separate cores without the same peripherals?
I need to share 1024 bytes data from CM4 to CM7. Should I use MU, SEMA4 or Free-RTOS Message Buffers for this application for best performance? 
If using Free-RTOS how can I config receive data via IRS RTOS?

0 Kudos
Reply

446 Views
mayliu1
NXP Employee
NXP Employee

Hi @nampt ,

I think you can  refer to the SDK demo shown in below Fig.

mayliu1_0-1761727927639.png

mayliu1_1-1761728029038.png

Best Regards

MayLiu

0 Kudos
Reply

489 Views
mayliu1
NXP Employee
NXP Employee

Hi @nampt ,

Thank you so much for your interest in our products and for using our community.

Please refer to this application note, it is very helpful.

https://www.nxp.com/docs/en/application-note/AN13264.pdf

Question1: I'm wondering how to create the project.

Answer1:  For MCUXPresso IDE, you can import SDK demo as the following Fig show.

mayliu1_0-1761643982096.png

For IAR.

mayliu1_1-1761644634804.png

 

Question2:  Should I configure, generate all peripherals in the master core (CM7) or on separate cores? And what should I do if both cores are using the same peripherals?

Answer2:  Please note that multi-core can not using the same peripherals at same time. 

Please refer to the AN13264 and AN13114

Wish it helps you.
If you still have question about it, please kindly let me know.

Best Regards
MayLiu

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2193844%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EDual%20Core%20using%20the%20same%20peripherals%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2193844%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3E%3CSPAN%3E%22I%20am%20using%20the%20MIMXRT1170%20and%20building%20a%20dual-core%20project%20with%20MCUXpresso%20Config%20and%20IAR%20Workbench.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EI'm%20wondering%20how%20to%20create%20the%20project.%20Should%20I%20configure%2C%20generate%20all%20peripherals%20in%20the%20master%20core%20(CM7)%20or%20on%20separate%20cores%3F%20And%20what%20should%20I%20do%20if%20both%20cores%20are%20using%20the%20same%20peripherals%3F%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FMIMXRT1170-EVK%2Fpd-p%2FMIMXRT1170-EVK%22%20class%3D%22lia-product-mention%22%20data-product%3D%222921-1%22%20target%3D%22_blank%22%3EMIMXRT1170-EVK%3C%2FA%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2194981%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Dual%20Core%20using%20the%20same%20peripherals%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2194981%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%2F239761%22%20target%3D%22_blank%22%3E%40nampt%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EI%20think%20you%20can%26nbsp%3B%20refer%20to%20the%20SDK%20demo%20shown%20in%20below%20Fig.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mayliu1_0-1761727927639.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mayliu1_0-1761727927639.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F363062iC00685D89CFF21F2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mayliu1_0-1761727927639.png%22%20alt%3D%22mayliu1_0-1761727927639.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mayliu1_1-1761728029038.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mayliu1_1-1761728029038.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F363063i04B53510349DF1FF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mayliu1_1-1761728029038.png%22%20alt%3D%22mayliu1_1-1761728029038.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBest%20Regards%3C%2FP%3E%0A%3CP%3EMayLiu%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2194258%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Dual%20Core%20using%20the%20same%20peripherals%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2194258%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ethank%20you%20for%20your%20answer.%3CBR%20%2F%3EYou%20mean%20I%20can%20configure%26nbsp%3B%3CSPAN%3Eon%20separate%20cores%20without%20the%20same%20peripherals%3F%3CBR%20%2F%3EI%20need%20to%20share%201024%20bytes%20data%20from%20CM4%20to%20CM7.%20Should%20I%20use%20MU%2C%20SEMA4%20or%20Free-RTOS%20Message%20Buffers%20for%20this%20application%20for%20best%20performance%3F%26nbsp%3B%3CBR%20%2F%3EIf%20using%20Free-RTOS%20how%20can%20I%20config%20receive%20data%20via%20IRS%20RTOS%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2194209%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Dual%20Core%20using%20the%20same%20peripherals%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2194209%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%2F239761%22%20target%3D%22_blank%22%3E%40nampt%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThank%20you%20so%20much%20for%20your%20interest%20in%20our%20products%20and%20for%20using%20our%20community.%3C%2FP%3E%0A%3CP%3EPlease%20refer%20to%20this%20application%20note%2C%20it%20is%20very%20helpful.%3C%2FP%3E%0A%3CP%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%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN13264.pdf%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EQuestion1%3A%26nbsp%3B%3CSPAN%3EI'm%20wondering%20how%20to%20create%20the%20project.%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EAnswer1%3A%26nbsp%3B%20For%20MCUXPresso%20IDE%2C%20you%20can%20import%20SDK%20demo%20as%20the%20following%20Fig%20show.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mayliu1_0-1761643982096.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mayliu1_0-1761643982096.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F362860i1DF1A224D8993658%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mayliu1_0-1761643982096.png%22%20alt%3D%22mayliu1_0-1761643982096.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EFor%20IAR.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mayliu1_1-1761644634804.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mayliu1_1-1761644634804.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F362869i1240B6A174EF5638%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mayliu1_1-1761644634804.png%22%20alt%3D%22mayliu1_1-1761644634804.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EQuestion2%3A%26nbsp%3B%20S%3CSPAN%3Ehould%20I%20configure%2C%20generate%20all%20peripherals%20in%20the%20master%20core%20(CM7)%20or%20on%20separate%20cores%3F%20And%20what%20should%20I%20do%20if%20both%20cores%20are%20using%20the%20same%20peripherals%3F%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EAnswer2%3A%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EPlease%20note%20that%20multi-core%26nbsp%3Bcan%20not%20using%20the%26nbsp%3Bsame%20peripherals%20at%20same%20time.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EPlease%20refer%20to%20the%26nbsp%3B%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%3EAN13264%3C%2FA%3E%26nbsp%3Band%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN13114.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EAN13114%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWish%20it%20helps%20you.%3CBR%20%2F%3EIf%20you%20still%20have%20question%20about%20it%2C%20please%20kindly%20let%20me%20know.%3C%2FP%3E%0A%3CP%3EBest%20Regards%3CBR%20%2F%3EMayLiu%3C%2FP%3E%3C%2FLINGO-BODY%3E