Debugging Issues When Using a Decoupled S32K344 as an S32K324

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

Debugging Issues When Using a Decoupled S32K344 as an S32K324

467 Views
yanyanwang
Contributor I

After the decoupling process, the S32K344 is equivalent to the S32K324. I created a dual-core project based on the S32K324, which contains two projects corresponding to Core 0 and Core 1. However, during debugging, even when using independent (per-core) debugging, I am only able to successfully debug Core 0, while Core 1 cannot be connected or debugged. Could you please advise on the possible reasons for this behavior?

0 Kudos
Reply
1 Reply

368 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Once you verify the core 1 is released from reset it should be accessible by debugger if no further protection was applied.

  • Test A (Attach sequence):
    Start a Core0 debug session first, run to the point where your code releases Core1, then attach a second debug session to Core1 (selecting Cortex‑M7_1 in your probe). If this works, the issue is likely bring‑up order or attach mode

  • Test B (Minimal Core1 image):
    Flash a trivial Core1 firmware (just loops); ensure Core0 sets the start address and releases Core1. If Core1 attaches now, the problem is in Core1 init or watchdog.

  • Test C (Under‑reset attach to Core1): if apply to your debugger.
    Try “connect under reset” for Core1, then immediately halt and inspect PC/VTOR to confirm the vector table address is valid. If VTOR points nowhere, fix the linker/ROM location

Best regards,

Peter

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2295409%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EDebugging%20Issues%20When%20Using%20a%20Decoupled%20S32K344%20as%20an%20S32K324%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2295409%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EAfter%20the%20decoupling%20process%2C%20the%20S32K344%20is%20equivalent%20to%20the%20S32K324.%20I%20created%20a%20dual-core%20project%20based%20on%20the%20S32K324%2C%20which%20contains%20two%20projects%20corresponding%20to%20Core%200%20and%20Core%201.%20However%2C%20during%20debugging%2C%20even%20when%20using%20independent%20(per-core)%20debugging%2C%20I%20am%20only%20able%20to%20successfully%20debug%20Core%200%2C%20while%20Core%201%20cannot%20be%20connected%20or%20debugged.%20Could%20you%20please%20advise%20on%20the%20possible%20reasons%20for%20this%20behavior%3F%20%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2295788%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Debugging%20Issues%20When%20Using%20a%20Decoupled%20S32K344%20as%20an%20S32K324%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2295788%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EOnce%20you%20verify%20the%20core%201%20is%20released%20from%20reset%20it%20should%20be%20accessible%20by%20debugger%20if%20no%20further%20protection%20was%20applied.%3C%2FP%3E%0A%3CDIV%20style%3D%22font-family%3A%20'Segoe%20UI'%3B%20font-size%3A%2014px%3B%20font-style%3A%20normal%3B%20font-weight%3A%20400%3B%20line-height%3A%2020px%3B%22%3E%0A%3CUL%3E%0A%3CLI%3E%0A%3CP%3ETest%20A%20(Attach%20sequence)%3A%3CBR%20%2F%3EStart%20a%20Core0%20debug%20session%20first%2C%20run%20to%20the%20point%20where%20your%20code%20releases%20Core1%2C%20then%20attach%20a%20second%20debug%20session%20to%20Core1%20(selecting%20%3CEM%3ECortex%E2%80%91M7_1%3C%2FEM%3E%20in%20your%20probe).%20If%20this%20works%2C%20the%20issue%20is%20likely%20bring%E2%80%91up%20order%20or%20attach%20mode%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3ETest%20B%20(Minimal%20Core1%20image)%3A%3CBR%20%2F%3EFlash%20a%20trivial%20Core1%20firmware%20(just%20loops)%3B%20ensure%20Core0%20sets%20the%20start%20address%20and%20releases%20Core1.%20If%20Core1%20attaches%20now%2C%20the%20problem%20is%20in%20Core1%20init%20or%20watchdog.%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3ETest%20C%20(Under%E2%80%91reset%20attach%20to%20Core1)%3A%20if%20apply%20to%20your%20debugger.%3CBR%20%2F%3ETry%20%E2%80%9Cconnect%20under%20reset%E2%80%9D%20for%20Core1%2C%20then%20immediately%20halt%20and%20inspect%20PC%2FVTOR%20to%20confirm%20the%20vector%20table%20address%20is%20valid.%20If%20VTOR%20points%20nowhere%2C%20fix%20the%20linker%2FROM%20location%3C%2FP%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPeter%3C%2FP%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E