Debugging Issue with 3 Decoupled Cores on S32K396 in S32 Design Studio

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

Debugging Issue with 3 Decoupled Cores on S32K396 in S32 Design Studio

685 Views
dvcn9
Contributor I

Hi all,

I’m trying to debug an S32K396 project in S32 Design Studio with 3 decoupled cores. I created a fresh project with cores fully independent (not lockstep), resulting in three separate projects for the three cores.

When I start Group Debug:

  • Core 0 and Core 2 connect and halt correctly

  • Core 1 fails to connect

Question: Has anyone successfully debugged all three cores independently? Are there recommended steps for gating cores at startup so that the debugger can attach reliably?

I’ve attached a small test project demonstrating the setup. Any guidance on proper MC_ME configuration or debug workflow for decoupled cores would be greatly appreciated.

Thanks in advance!

0 Kudos
Reply
1 Reply

622 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @dvcn9 

I suggest referring to the thread “S32K324 Multi-Core Example Project based on Whiteboard”, where the downloadable package S32K324_Multi-Core_Example_RTM_1.0.0.7z is provided.
Inside this package, you will find a document: Multi-Core_Implementation_in_RTD_of_S32K3. This document explain how the multicore architecture works and include detailed instructions on how to build and debug multicore projects.

 

BR, VaneB

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2315689%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EDebugging%20Issue%20with%203%20Decoupled%20Cores%20on%20S32K396%20in%20S32%20Design%20Studio%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2315689%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3EI%E2%80%99m%20trying%20to%20debug%20an%20S32K396%20project%20in%20S32%20Design%20Studio%20with%20%3CSTRONG%3E3%20decoupled%20cores%3C%2FSTRONG%3E.%20I%20created%20a%20fresh%20project%20with%20cores%20fully%20independent%20(not%20lockstep)%2C%20resulting%20in%20three%20separate%20projects%20for%20the%20three%20cores.%3C%2FP%3E%3CP%3EWhen%20I%20start%20%3CSTRONG%3EGroup%20Debug%3C%2FSTRONG%3E%3A%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3E%3CSTRONG%3ECore%200%20and%20Core%202%3C%2FSTRONG%3E%20connect%20and%20halt%20correctly%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSTRONG%3ECore%201%20fails%20to%20connect%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSTRONG%3EQuestion%3A%3C%2FSTRONG%3E%20Has%20anyone%20successfully%20debugged%20all%20three%20cores%20independently%3F%20Are%20there%20recommended%20steps%20for%20gating%20cores%20at%20startup%20so%20that%20the%20debugger%20can%20attach%20reliably%3F%3C%2FP%3E%3CP%3EI%E2%80%99ve%20attached%20a%20small%20%3CSTRONG%3Etest%20project%3C%2FSTRONG%3E%20demonstrating%20the%20setup.%20Any%20guidance%20on%20proper%20MC_ME%20configuration%20or%20debug%20workflow%20for%20decoupled%20cores%20would%20be%20greatly%20appreciated.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EThanks%20in%20advance!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2317403%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Debugging%20Issue%20with%203%20Decoupled%20Cores%20on%20S32K396%20in%20S32%20Design%20Studio%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2317403%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%2F259768%22%20target%3D%22_blank%22%3E%40dvcn9%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20suggest%20referring%20to%20the%20thread%20%E2%80%9C%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K324-Multi-Core-Example-Project-based-on-Whiteboard%2Fm-p%2F1547771%22%20target%3D%22_blank%22%3ES32K324%20Multi-Core%20Example%20Project%20based%20on%20Whiteboard%3C%2FA%3E%E2%80%9D%2C%20where%20the%20downloadable%20package%20S32K324_Multi-Core_Example_RTM_1.0.0.7z%20is%20provided.%3CBR%20%2F%3EInside%20this%20package%2C%20you%20will%20find%20a%20document%3A%20Multi-Core_Implementation_in_RTD_of_S32K3.%20This%20document%20explain%20how%20the%20multicore%20architecture%20works%20and%20include%20detailed%20instructions%20on%20how%20to%20build%20and%20debug%20multicore%20projects.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20VaneB%3C%2FP%3E%3C%2FLINGO-BODY%3E