S32K144 EVB got corrupted after Running a SDK based project

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

S32K144 EVB got corrupted after Running a SDK based project

Jump to solution
1,107 Views
Jeevansagar
Contributor II

Hello, 

I am working on S32K144 EVB.I was checking one of the programs developed using SDK, used micro USB(Open SDA) for flashing and successfully flashed the code.

But after running in the debug window, the program suddenly tried to enter an ISR with vector address 0x00 and the reset LED is continuously turned ON in the board.

I've attached the debug window image and eval board image where the program halted first time.

 

>When i tried flashing any other project again,  debug error is occuring, seems like i cannot debug any code now.

Jeevansagar_9-1683791454519.png

 

>I entered the board in bootloader mode and checked application version, it is up to date. No need to update the firmware.

Jeevansagar_10-1683791454520.png

 

Actually this is the second board which got corrupted one after the other in the same way.

Can someone help me resolve this issue, can my boards be recovered?

 

>I am using S32DS platform v3.5

>Eval board version -   SCH-29248 REV C1

 

Tags (1)
0 Kudos
1 Solution
1,075 Views
danielmartynek
NXP TechSupport
NXP TechSupport

This is because you reconfigured the JTAG/SWD pins and the reset_b pin to other functions.

danielmartynek_0-1683808276951.png

 

Once the pins are initialize in the project, the debugger cannot use them.

You need to power-cycle the MCU and attach the debugger in the short window before it gets reconfigured.

You can use the PE Micro Kinetis Recovery Tool

danielmartynek_1-1683808997396.png

https://www.pemicro.com/support/download_processor.cfm?type=5

But as far as I know, it does not work with the OpenSDA debugger.

 

BR, Daniel

 

 

 

 

 

 

 

View solution in original post

0 Kudos
5 Replies
1,080 Views
Jeevansagar
Contributor II

Hi @danielmartynek 

Thanks for the reply.

1.Now the error message is like this

Screenshot 2023-05-11 173544.png

2. I Don't have any other debugger right now.

3. In the project I have used ports for pin configurations like GPIO,ADC,FTM etc. and nothing else, I had not programmed any other peripheral yet. I have attached the pin configuration code below.

4. I have not used CSEc.

5. yes, both reset and RGB LED have turned ON.

0 Kudos
1,076 Views
danielmartynek
NXP TechSupport
NXP TechSupport

This is because you reconfigured the JTAG/SWD pins and the reset_b pin to other functions.

danielmartynek_0-1683808276951.png

 

Once the pins are initialize in the project, the debugger cannot use them.

You need to power-cycle the MCU and attach the debugger in the short window before it gets reconfigured.

You can use the PE Micro Kinetis Recovery Tool

danielmartynek_1-1683808997396.png

https://www.pemicro.com/support/download_processor.cfm?type=5

But as far as I know, it does not work with the OpenSDA debugger.

 

BR, Daniel

 

 

 

 

 

 

 

0 Kudos
1,070 Views
Jeevansagar
Contributor II

Hey @danielmartynek,

Thanks for finding the cause.

 

"You need to power-cycle the MCU and attach the debugger in the short window before it gets reconfigured."

Can you please help me understand this better?

Tags (1)
0 Kudos
1,042 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Jeevansagar,

To reset the JTAG/SWD and Reset_b pins to have their default functions, you need to reset the MCU.

The only reset you can trigger now is a power-on reset (POR).

There is a short time window after each POR during which the debugger can be connected.

The window is closed by the application that changes the pins to GPIO again.

 

Regards,

Daniel

 

1,085 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Jeevansagar,

A few questions.

What error message do you get from the debugger now?

Do you have any other debugger?

What project was loaded to the board before the failure?

Is the CSEc enabled?

In the image of the EVB, it seems like the reset LED is ON as well as the RGB LED, is it so?

danielmartynek_0-1683806210820.png

 

Thank you,

BR, Daniel

0 Kudos