How to merge and debug multiple applications

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

How to merge and debug multiple applications

411 次查看
tobiasbp30
Contributor I

Hi, I want to handle two different projects with S32DS Platform 3.5 with S32K118.

The first project it's a bootloader, and the second one it's my program.
Attached you can see the expected memory map.

I'm trying to do this method as explained in AN12323  (https://community.nxp.com/t5/S32-Design-Studio/Compiling-multiple-projects-in-S32DS-IDE/m-p/705483) for merging a binary file into another project using linker script.

I've done this too for debugging multiple projects (https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Debug-multiple-elf-files-in-S32-...).

BOOTLOADER LINKER

tobiasbp30_0-1701973279593.png

PROG LINKER

tobiasbp30_1-1701973334869.pngtobiasbp30_2-1701973369162.png

 

 

 

 

 

BOOT CODE
But depending on the data type used on my bootloader variables I get an error with the GDB server.
For example using XML_board[] which it's located in ro_data in m_text_sboot produces an error.
When I comment that variable I can run both projects. 

tobiasbp30_3-1701973472404.png

ERROR

Here are the images of the error when trying to debug with all the variables showed before.

tobiasbp30_4-1701973695523.png

tobiasbp30_5-1701973719339.png

tobiasbp30_6-1701973775051.png

Has anyone encountered a similar issue when merging projects using linker scripts in S32DS?

Are there specific considerations for debugging multiple projects simultaneously in S32DS that I might be missing?

Any suggestions for resolving GDB server errors related to shared variables between projects?

0 项奖励
回复
0 回复数