how to download a firmware into the external flash of S32R294

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

how to download a firmware into the external flash of S32R294

Jump to solution
2,685 Views
HyunungPark
Contributor III

Currently, I am using S32R294.

and I want to download the external flash of S32R294 from S32 Design Studio for Power Architecture.

As I know, the code of external flash is copied to SRAM when boot because there is no internal flash in s32r294.

Please let me know the document for the above two items.

BRs.

Hyunung Park

0 Kudos
Reply
1 Solution
2,639 Views
jiri_kral
NXP Employee
NXP Employee

S32DS is based on Eclipse, which is universal tool. Run button is trying to execute build target on machine, where S32DS is running - in this particular case - Run is trying to execute Power PC .elf file on your PC. 

 

Unfortunately I don't have S32R294 EVB fort test, but by pressing Debug button PE Micro should upload binary part of .elf file into external QSPI flash. 

 

You can find S32R294 User Guide in help folder - S32R294_Development_Package_User_Guide.pdf

View solution in original post

0 Kudos
Reply
8 Replies
2,676 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Hyunung,

there's QSPI memory MX25U25645GXDQ00 on S32R294-RADB board.

This memory is supported by S32DS:

lukaszadrapa_0-1662362108293.png

 

Regards

Lukas

0 Kudos
Reply
2,672 Views
HyunungPark
Contributor III

Dear lukaszadrapa.

Thank you for your response.

I have two questions.

Q1. Is the firmware downloaded to MX25U25645GXDQ00 as default when an application runs?

       what should I do to download to MX25U25645GXDQ00?

Q2. An error happens when an application runs or "Error with command: gdb --version" happens when an application runs as debug.

what should I do to resolve this issue?

 

BRs.

Hyunung Park

    

0 Kudos
Reply
2,668 Views
HyunungPark
Contributor III

Dear lukaszadrapa.

Please find the attached file.

BRs.

Hyunung Park

0 Kudos
Reply
2,657 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

it looks that you are trying execute Power PC .elf file on x_64 machine. You need to setup debug session for uploading an elf file into device. 

0 Kudos
Reply
2,651 Views
HyunungPark
Contributor III

Hi,

Currently, I use S32R294-EVB.

I don't know how to upload the firmware into the device like your response.

Could you please let me know how to set setup debug session to upload into the device?

0 Kudos
Reply
2,646 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

 

I'm not sure what is your debug probe - let's assume that you have PE Micro Multilink FX. You can select Debug Configurations here: 

s32ds_2022-09-06_09-31-18.png

 

 

Select your debug probe, check the programming algorithm and simply press the Debug button: 

s32ds_2022-09-06_09-36-44.png

If you are new in S32DS - good starting point is Help folder - with default install path located in c:\NXP\S32DS_Power_v2.1\S32DS\help\

 

 

0 Kudos
Reply
2,642 Views
HyunungPark
Contributor III

Hi.

I think that a debug configuration sets normally like the below picture.

I select the debug and run button.

In the case of debug button, the application runs normally.

But in the case of the run button, the application doesn't run normally.

Could you please let me know what is problems?

and I have one question.

Does the firmware download into the external flash?

제목 없음.png

BRs.

Hyunung Park

0 Kudos
Reply
2,640 Views
jiri_kral
NXP Employee
NXP Employee

S32DS is based on Eclipse, which is universal tool. Run button is trying to execute build target on machine, where S32DS is running - in this particular case - Run is trying to execute Power PC .elf file on your PC. 

 

Unfortunately I don't have S32R294 EVB fort test, but by pressing Debug button PE Micro should upload binary part of .elf file into external QSPI flash. 

 

You can find S32R294 User Guide in help folder - S32R294_Development_Package_User_Guide.pdf

0 Kudos
Reply