s32k download fail!

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

s32k download fail!

1,481 Views
jinsheng20
Contributor III

s32ds 2.2

New vacant works,Power down program lost, new demo project can be but SDK files will not be loaded into the new project directory

0 Kudos
Reply
5 Replies

1,459 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

 

Which MCU do you use?

A new SDK project will be created by File -> New -> S32DS Application Project and after selecting the device in the next step, you can select SDK version, see image below:

dianabatrlova_0-1605520536528.png

SDK code can be generated here:

dianabatrlova_1-1605520724526.png

And then select Debug_FLASH in the debug configuration:

dianabatrlova_2-1605521241600.png

 

Also, you can use example codes located in the File -> New -> S32DS Project from Example.

 

I hope it helps.

Best regards,

Diana

0 Kudos
Reply

1,444 Views
jinsheng20
Contributor III

used s32k116,

  • The configuration is described in your diagram。

  • We can use Jlink to debug, but if we lose power, we will lose it. Flash mode is selected instead of RAM mode
0 Kudos
Reply

1,436 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

 

Please, try the below steps.

After the code is loaded in the flash then power cycle your board.

Then go to Debug configuration -> Startup and choose the "Attach to running target" instead of "Run on reset", see image below:

dianabatrlova_0-1605775228203.png

Then click the Debug button.

Then go to the Memory window:

dianabatrlova_1-1605775443926.png

and check if the Project is loaded in the Flash.

 

Thank you.

Best regards,

Diana

0 Kudos
Reply

1,427 Views
jinsheng20
Contributor III

I used is JLink, I don't have PEMicro。

Could you please tell me how to solve the problem of power loss after downloading JLink?

0 Kudos
Reply

1,414 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

 

Unfortunately, there is no direct answer to your question we need to find out the root cause of your issue. 

Could you check at the beginning of your code the reason for the reset in RCM_SRS?

Also, I suggest you add the HardFauld handler with while(1){} loop where you can blink LED.

Do you use our EVB or your own design? Could you check the reset_b pin?

Could you, please, check the program in flash memory before the power-cycle?

I have found the instruction attaching to a running target with j-link:

https://mcuoneclipse.com/2015/03/20/attaching-to-a-running-target-with-segger-j-link-gdb-and-eclipse...

 

Thank you.

Best regards,

Diana

0 Kudos
Reply