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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
702 次查看
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 项奖励
回复
1 解答
673 次查看
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 项奖励
回复
3 回复数
674 次查看
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 项奖励
回复
663 次查看
Alex_mjl
Contributor II
Hi Daniel,
Thank you for your help! Its worked.
0 项奖励
回复
700 次查看
Alex_mjl
Contributor II

Please tell me which process is wrong.

0 项奖励
回复