s32k download fail!

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

s32k download fail!

1,482件の閲覧回数
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 件の賞賛
返信
5 返答(返信)

1,460件の閲覧回数
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 件の賞賛
返信

1,445件の閲覧回数
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 件の賞賛
返信

1,437件の閲覧回数
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 件の賞賛
返信

1,428件の閲覧回数
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 件の賞賛
返信

1,415件の閲覧回数
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 件の賞賛
返信