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

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

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

ソリューションへジャンプ
700件の閲覧回数
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 解決策
671件の閲覧回数
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 返答(返信)
672件の閲覧回数
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 件の賞賛
返信
661件の閲覧回数
Alex_mjl
Contributor II
Hi Daniel,
Thank you for your help! Its worked.
0 件の賞賛
返信
698件の閲覧回数
Alex_mjl
Contributor II

Please tell me which process is wrong.

0 件の賞賛
返信