<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to merge and debug multiple applications in S32K</title>
    <link>https://community.nxp.com/t5/S32K/How-to-merge-and-debug-multiple-applications/m-p/1771035#M29427</link>
    <description>&lt;P&gt;Hi, I want to handle two different projects with &lt;EM&gt;&lt;STRONG&gt;S32DS Platform 3.5&lt;/STRONG&gt; &lt;/EM&gt;with &lt;EM&gt;&lt;STRONG&gt;S32K118&lt;/STRONG&gt;&lt;/EM&gt;.&lt;BR /&gt;&lt;BR /&gt;The first project it's a bootloader, and the second one it's my program.&lt;BR /&gt;Attached you can see the expected memory map.&lt;BR /&gt;&lt;BR /&gt;I'm trying to do this method as explained in&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;AN12323&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32-Design-Studio/Compiling-multiple-projects-in-S32DS-IDE/m-p/705483" target="_blank"&gt;(https://community.nxp.com/t5/S32-Design-Studio/Compiling-multiple-projects-in-S32DS-IDE/m-p/705483&lt;/A&gt;)&amp;nbsp;for merging a binary file into another project using linker script.&lt;BR /&gt;&lt;BR /&gt;I've done this too for debugging multiple projects (&lt;A href="https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Debug-multiple-elf-files-in-S32-Design-Studio-with-GDB/ta-p/1121160" target="_blank"&gt;https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Debug-multiple-elf-files-in-S32-Design-Studio-with-GDB/ta-p/1121160&lt;/A&gt;).&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;BOOTLOADER LINKER&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tobiasbp30_0-1701973279593.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253454iC97AD46A8DDC7C60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tobiasbp30_0-1701973279593.png" alt="tobiasbp30_0-1701973279593.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;PROG LINKER&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tobiasbp30_1-1701973334869.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253455i6AAD7D6D1C52E92C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tobiasbp30_1-1701973334869.png" alt="tobiasbp30_1-1701973334869.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="tobiasbp30_2-1701973369162.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253456iB459DD9CF6E6715F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tobiasbp30_2-1701973369162.png" alt="tobiasbp30_2-1701973369162.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;BOOT CODE&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;But depending on the data type used on my bootloader variables I get an error with the GDB server.&lt;BR /&gt;For example using&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;XML_board[]&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;which it's located in ro_data in m_text_sboot produces an error.&lt;BR /&gt;When I comment that variable I can run both projects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tobiasbp30_3-1701973472404.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253457i5A0C24AC3B903AF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="tobiasbp30_3-1701973472404.png" alt="tobiasbp30_3-1701973472404.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;ERROR&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Here are the images of the error when trying to debug with all the variables showed before.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tobiasbp30_4-1701973695523.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253458i4B5656FA155E022E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tobiasbp30_4-1701973695523.png" alt="tobiasbp30_4-1701973695523.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tobiasbp30_5-1701973719339.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253459i74BC31F2AD2D181B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tobiasbp30_5-1701973719339.png" alt="tobiasbp30_5-1701973719339.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tobiasbp30_6-1701973775051.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253460iC5A4FBC08A9C7477/image-size/large?v=v2&amp;amp;px=999" role="button" title="tobiasbp30_6-1701973775051.png" alt="tobiasbp30_6-1701973775051.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Has anyone encountered a similar issue when merging projects using linker scripts in S32DS?&lt;/P&gt;&lt;P&gt;Are there specific considerations for debugging multiple projects simultaneously in S32DS that I might be missing?&lt;/P&gt;&lt;P&gt;Any suggestions for resolving GDB server errors related to shared variables between projects?&lt;/P&gt;</description>
    <pubDate>Thu, 07 Dec 2023 19:23:45 GMT</pubDate>
    <dc:creator>tobiasbp30</dc:creator>
    <dc:date>2023-12-07T19:23:45Z</dc:date>
    <item>
      <title>How to merge and debug multiple applications</title>
      <link>https://community.nxp.com/t5/S32K/How-to-merge-and-debug-multiple-applications/m-p/1771035#M29427</link>
      <description>&lt;P&gt;Hi, I want to handle two different projects with &lt;EM&gt;&lt;STRONG&gt;S32DS Platform 3.5&lt;/STRONG&gt; &lt;/EM&gt;with &lt;EM&gt;&lt;STRONG&gt;S32K118&lt;/STRONG&gt;&lt;/EM&gt;.&lt;BR /&gt;&lt;BR /&gt;The first project it's a bootloader, and the second one it's my program.&lt;BR /&gt;Attached you can see the expected memory map.&lt;BR /&gt;&lt;BR /&gt;I'm trying to do this method as explained in&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;AN12323&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32-Design-Studio/Compiling-multiple-projects-in-S32DS-IDE/m-p/705483" target="_blank"&gt;(https://community.nxp.com/t5/S32-Design-Studio/Compiling-multiple-projects-in-S32DS-IDE/m-p/705483&lt;/A&gt;)&amp;nbsp;for merging a binary file into another project using linker script.&lt;BR /&gt;&lt;BR /&gt;I've done this too for debugging multiple projects (&lt;A href="https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Debug-multiple-elf-files-in-S32-Design-Studio-with-GDB/ta-p/1121160" target="_blank"&gt;https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Debug-multiple-elf-files-in-S32-Design-Studio-with-GDB/ta-p/1121160&lt;/A&gt;).&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;BOOTLOADER LINKER&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tobiasbp30_0-1701973279593.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253454iC97AD46A8DDC7C60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tobiasbp30_0-1701973279593.png" alt="tobiasbp30_0-1701973279593.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;PROG LINKER&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tobiasbp30_1-1701973334869.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253455i6AAD7D6D1C52E92C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tobiasbp30_1-1701973334869.png" alt="tobiasbp30_1-1701973334869.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="tobiasbp30_2-1701973369162.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253456iB459DD9CF6E6715F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tobiasbp30_2-1701973369162.png" alt="tobiasbp30_2-1701973369162.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;BOOT CODE&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;But depending on the data type used on my bootloader variables I get an error with the GDB server.&lt;BR /&gt;For example using&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;XML_board[]&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;which it's located in ro_data in m_text_sboot produces an error.&lt;BR /&gt;When I comment that variable I can run both projects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tobiasbp30_3-1701973472404.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253457i5A0C24AC3B903AF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="tobiasbp30_3-1701973472404.png" alt="tobiasbp30_3-1701973472404.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;ERROR&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Here are the images of the error when trying to debug with all the variables showed before.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tobiasbp30_4-1701973695523.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253458i4B5656FA155E022E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tobiasbp30_4-1701973695523.png" alt="tobiasbp30_4-1701973695523.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tobiasbp30_5-1701973719339.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253459i74BC31F2AD2D181B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tobiasbp30_5-1701973719339.png" alt="tobiasbp30_5-1701973719339.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tobiasbp30_6-1701973775051.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253460iC5A4FBC08A9C7477/image-size/large?v=v2&amp;amp;px=999" role="button" title="tobiasbp30_6-1701973775051.png" alt="tobiasbp30_6-1701973775051.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Has anyone encountered a similar issue when merging projects using linker scripts in S32DS?&lt;/P&gt;&lt;P&gt;Are there specific considerations for debugging multiple projects simultaneously in S32DS that I might be missing?&lt;/P&gt;&lt;P&gt;Any suggestions for resolving GDB server errors related to shared variables between projects?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 19:23:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-merge-and-debug-multiple-applications/m-p/1771035#M29427</guid>
      <dc:creator>tobiasbp30</dc:creator>
      <dc:date>2023-12-07T19:23:45Z</dc:date>
    </item>
  </channel>
</rss>

