S32G2 - In serial boot, how to run M7 application in SRAM?

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

S32G2 - In serial boot, how to run M7 application in SRAM?

Jump to solution
572 Views
Alex_mjl
Contributor II

Hi NXP team,

    Request: In serial boot, we want to run M7 APP in the SRAM. 

    Platform: S32G274ARDB2.

    Prepare:

  • An uart1 application project was created using the S32DS. Select build mode as 'Debug_RAM'. To produce binaries, the 'C/C++ Build -> Settings -> Build Steps' have been modified:

Alex_mjl_0-1702436199022.png

  • In order for the program to run in SRAM, the link file 'linker_ram.ld' was modified.

Alex_mjl_1-1702436377516.pngAlex_mjl_2-1702436406551.png

  • In order to run in serial boot, the file header is added:

            (Reference '.map' file:RAM entry pointer = int_sram; RAM start pointer =

.intc_vector)

Alex_mjl_3-1702437009751.png

 

 

Alex_mjl_4-1702437199222.png

Alex_mjl_5-1702437242451.png

  • The final '.bin' file format is as follows:

Alex_mjl_0-1702447539157.png

 

  • Use 'S32FlashTool' to burn.

Alex_mjl_1-1702447563493.png

Issue:The program did not start, uart1 did not print.

 

0 Kudos
1 Solution
543 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

For binary creation, we can recommend following the steps shown under the thread below:

HOWTO: Generate S-Record/Intel HEX/Binary file - NXP Community

As for the linker modification, we understand that this is not required for Serial Boot from UART interface. The examples should work out-of-the-box without this modification. We can recommend looking into the following threads that talk about serial mode booting:

Solved: How to create an image for serial boot? - NXP Community

Solved: How to boot an image from uart? - NXP Community

Where the first thread talks about creating the serial boot mode image and the second thread talks about copying into the SRAM inside the S32G platform.

Please, let us know.

View solution in original post

0 Kudos
3 Replies
544 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

For binary creation, we can recommend following the steps shown under the thread below:

HOWTO: Generate S-Record/Intel HEX/Binary file - NXP Community

As for the linker modification, we understand that this is not required for Serial Boot from UART interface. The examples should work out-of-the-box without this modification. We can recommend looking into the following threads that talk about serial mode booting:

Solved: How to create an image for serial boot? - NXP Community

Solved: How to boot an image from uart? - NXP Community

Where the first thread talks about creating the serial boot mode image and the second thread talks about copying into the SRAM inside the S32G platform.

Please, let us know.

0 Kudos
533 Views
Alex_mjl
Contributor II
Hi Daniel,
Thank you for your help! Its worked.
0 Kudos
570 Views
Alex_mjl
Contributor II

Please tell me which process is wrong.

0 Kudos