How to flash .elf file to S32G rdb2

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

How to flash .elf file to S32G rdb2

1,687 Views
Leon_Cai
Contributor I

Hi,there are two questions :

1.Our project is based on CP Autosar architecture, we build the project  and the .elf file will be generated.  And next we want to flash the .elf to S32G RDB2, so how to do it?(commonly Jlink is ok?)

2.If we want to debug the cp autosar project, what other tools do we need, or what other work do we need to do?

Looking forward  to your answer

BestRegards

Tags (1)
0 Kudos
Reply
1 Reply

1,628 Views
bpe
NXP Employee
NXP Employee

1.Our project is based on CP Autosar architecture, we build the project and
the .elf file will be generated. And next we want to flash the .elf to S32G
RDB2, so how to do it?(commonly Jlink is ok?)

S32G does not recognize ELF at boot. ELF executables
require the presence of a dynamic linker/loader to properly map code and data sections
onto RAM and start. While this is a typical application startup scenario for
e.g. Linux, if you want to directly boot into your code, ELF is not the
appropriate format. The proper way to build a binary valid for programming into
the boot Flash generally depends on the software. Consult at your software documentation
for available options. Low-level details of the bootable binary format
can be found in Section 30.4 of S32G2RM. Building a compact demo that can be
directly booted into is discussed in this document. AN13185 explains how to
use S32G Flash tool to program a ready bootable binary into S32G-VNP-RDB2 Flash.


2.If we want to debug the cp autosar project, what other tools do we need, or
what other work do we need to do?

Available form NXP is S32 Development Studio for S32 Platform which,
among other features, offers a generic application source-level debugger.
However, there are no instructions on debugging AUTOSAR CP with it because
we do not support it on your processor. If you received your AUTOSAR CP form a
third party, consult at it's vendor for debugging recommendations.

Best Regards,
Platon

 

0 Kudos
Reply