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