Sorry for not replying sooner. Here are some more result.
5V power suppy 1s after power ON. Looks clean to me.
Reset signal 1s after power ON. Looks OK.
I probably can't measure clock frequency since it's an internal oscillator.
I disabled the watchdog of the driver and the problem remains.
The debug LED shows no reaction.
I created a clean project in S32 Design studio.
The code:
Code:
/*
* main implementation: use this 'C' sample to create your own application
*
*/
#include "derivative.h" /* include peripheral declarations SSKEAZN64M2 */
int main(void){
GPIOA_PDDR |= 1 << 14;
volatile uint32_t delay = 0;
while(1){
GPIOA_PTOR |= 1 << 14;
for(delay = 0; delay < (1<<20); delay++);
}
/* to avoid the warning message for GHS: statement is unreachable*/
#if defined (__ghs__)
#pragma ghs nowarning 111
#endif
#if defined (__ICCARM__)
#pragma diag_suppress=Pe111
#endif
return 0;
}
The program blinks the led at approximately 1Hz. It works fine when I upload the software but stops working when I power cycle the target.
I found this Errata in the NXP documentation:
Core: Processor executing at HardFault priority might enter Lockup state if an NMI occurs during a waited
debugger transaction
Can this cause problems. I tried with debugger connected and disconnected and the problem is there in both cases.
- - - Updated - - -
Update:
Tried uploading the software to the development board and it works even after power-cycling.
So this can be a debugger issue (I'm using USBDM instead of Segger or PEMicro debugers) or a PCB issue.
Bellow is the processor schematics: