Unable to start a debugging session on S32K324 with PEMicro

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Unable to start a debugging session on S32K324 with PEMicro

ソリューションへジャンプ
1,231件の閲覧回数
ilx123
Contributor II

Hi NXP Support team,

I am unable to start a debugging session with my PEMicro Unversal. I get the following console output error messages: Screenshot 2025-05-14 092418.png

b000799d-327d-4487-baaf-bf0e01d1d543.png

Previously it all worked fine, but for some reason all of a sudden it is unable to launch a session. I connected the TRACE32 debugger to check if I can debug with it, it said that the target is "locked up". I also tried to use the "Emergency Kinetis Device Recover by Full Chip Erase" but it just displays a message that this is not supported. Also I have not messed with any debug/flashing configurations or algorithms. Is there a way to erase the MCU or to "unlock" it? Below is my debug configuration: Screenshot 2025-05-14 093329.pngScreenshot 2025-05-14 093313.png

 

 

0 件の賞賛
返信
1 解決策
1,089件の閲覧回数
ilx123
Contributor II

I have managed to fix the problem with the following Lauterbach commands: 

  1. SYStem.RESetOut
  2. System.Attach
  3. Flash.Reprogramm All
  4. Flash.Erase All
  5. Flash.Reprogramm Off

Now flashing and debugging works as usual with both debuggers. Do you have any clue to why this happened and is there a way to recover from this with other debuggers (e.g. PEMicro)? Not all of us have a Lauterbach available so this information would be useful for us.

Thank you for the support!

元の投稿で解決策を見る

6 返答(返信)
1,172件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @ilx123,

The log says, error during flash programming.

What about just attaching the debugger?

danielmartynek_0-1747224878455.png

 

Have you tried JTAG too or just SWD?

 

I understand the HSE FW has not been installed yet, right?

 

Thanks,

Daniel

 

0 件の賞賛
返信
1,171件の閲覧回数
ilx123
Contributor II

Hi Daniel,

Attaching results in the following output:

Screenshot 2025-05-14 143734.pngScreenshot 2025-05-14 143711.png

Pressing resume and suspend changes nothing. Instruction is always stuck on fffffffe. Target is not resetting, reset line is high all the time. JTAG does not work as well. I've tried to flash and debug with PEMicro and Lauterbach, both do not work. No HSE FW was installed or used. 

0 件の賞賛
返信
1,168件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

When you attach the PE Micro debugger, do you have access to the memory and registers?

With Lauterbach, you should be also able to attach it as well then, if you select the MCU.

danielmartynek_0-1747228308424.png

 

Again, do you see registers and the memory?

 

When lauterbach fails to program it, what is the log?

Can you share a screenshot of the error message?

 

Thanks

0 件の賞賛
返信
1,099件の閲覧回数
ilx123
Contributor II

When attaching with PE micro:

Screenshot 2025-05-15 084439.pngScreenshot 2025-05-15 084321.png

When trying to flash with Lauterbach:

Screenshot 2025-05-14 154837.png

Flashing error message is highlighted and the status says "running (locked up)". Unable to click the attach button at all. Other buttons as up and down are working it is just impossible to select. 

0 件の賞賛
返信
1,090件の閲覧回数
ilx123
Contributor II

I have managed to fix the problem with the following Lauterbach commands: 

  1. SYStem.RESetOut
  2. System.Attach
  3. Flash.Reprogramm All
  4. Flash.Erase All
  5. Flash.Reprogramm Off

Now flashing and debugging works as usual with both debuggers. Do you have any clue to why this happened and is there a way to recover from this with other debuggers (e.g. PEMicro)? Not all of us have a Lauterbach available so this information would be useful for us.

Thank you for the support!

1,069件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @ilx123,

Great to hear it has been resolved, thanks for sharing.

Unfortunately, I'm not able explain it.

All the debuggers use proprietary algorithms, and I don't know what was the root cause of the failure.

 

0 件の賞賛
返信