S32K3 Can't debug

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

S32K3 Can't debug

2,788 Views
Simone9
Contributor III

Hi,

I was working on the s32k324 MCU and created a new project debugged correctly.
Then with a new software after loading it I am experiencing the following connection problems  (see image in attach).
I'm using RAM debug.
In case of FLASH debug I'm always stuck in Hard Fault handler and have the same issue.

I use the IDE S32DS 3.5 and with the PEMicro as debugger.

Thanks for the support

0 Kudos
Reply
3 Replies

2,767 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I'm using RAM debug.

In case of FLASH debug I'm always stuck in Hard Fault handler and have the same issue.

So, RAM target is working correctly and only flash target gets the issue? Did you try to use one of our examples embedded in S32DS?

Best regards,

Peter

0 Kudos
Reply

2,742 Views
Simone9
Contributor III

Bye,

I managed to solve the problem.
I found that the following errors and the inability to debug was due to the fact that if you leave the view open, in the debug screen, where you read the content of the peripherals register live, it does not allow debugging even for new sessions or different codes.

This issue did not seem to be there on the 2.2 version of DS I was using previously.

In any case, having found the solution, I can only debug with RAM target and not Flash target.
In the second case, the system gets stuck in a Hard Fault handler. Is there any configuration to be done in the environment or project to avoid this problem?
I use an s32k324 MCU of which there are no examples.

Thank you very much

 

0 Kudos
Reply

2,735 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

In the second case, the system gets stuck in a Hard Fault handler.Is there any configuration to be done in the environment or project to avoid this problem?

For details on the exception like its source and failing address you can refer to core registers.

petervlna_0-1700638381839.pngpetervlna_1-1700638505840.png

I use an s32k324 MCU of which there are no examples.

The reason is because the S32K344 examples will all run on S32K324 device. Feel free to use them.

I can only debug with RAM target and not Flash target.

Hmm, I would expect it vice versa. All you need to do is use flash target in S32DS and linker will be switched to flash. Try the examples. There should be no issue at all.

Best regards,

Peter

0 Kudos
Reply