<?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 Re: S32k148: Debug Flash and Debug Ram in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/S32k148-Debug-Flash-and-Debug-Ram/m-p/888224#M4727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, you cannot mix your Debug_Flash binary image with Debug_RAM generated elf file&amp;nbsp; (debug information) - these are completely different files so the symbols does not fit at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See e.g. this&amp;nbsp;&lt;A href="https://community.nxp.com/message/1017225"&gt;https://community.nxp.com/message/1017225&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand your sequence correctly -&amp;nbsp; you have programmed the .bin file into the target MCU using an external flasher and now you would like to attach to the running target via Segger probe and debug the project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this purpose you can adjust segger j-link debug configuration that will just connect to the running target instead of programming the mcu:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63523i9DC5BEF22D42AEA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't quite understand why you generate bin file and you don't program the elf via segger J-link debug configuration in S32DS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2019 14:13:40 GMT</pubDate>
    <dc:creator>stanish</dc:creator>
    <dc:date>2019-02-26T14:13:40Z</dc:date>
    <item>
      <title>S32k148: Debug Flash and Debug Ram</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32k148-Debug-Flash-and-Debug-Ram/m-p/888223#M4726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using s32k148 board. I have open and example project lwip_s32k148. By default the configuration which is set for debugging is Debug_RAM. The&amp;nbsp;snapshot of project setting at default are given below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CaptureDebug_RAM.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63025iEAF4AD02E1771F51/image-size/large?v=v2&amp;amp;px=999" role="button" title="CaptureDebug_RAM.PNG" alt="CaptureDebug_RAM.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, I had a requirement that I had to use the .BIN file of my project and burn it directly using 'JLINK&amp;nbsp;Segger' application. For that I created a binary by going in to project settings and changing the project settings to Debug_Flash (active) and enabling the Create flash image. The image is shown below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="debug_flash.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63167iBA8527650DAAB710/image-size/large?v=v2&amp;amp;px=999" role="button" title="debug_flash.png" alt="debug_flash.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp;After Clicking OK, I again went into project settings select the S32DS Create Flash Image tab in where i choose the&amp;nbsp; &amp;nbsp; &amp;nbsp;output file format to Raw_Binary. I clicked OK, build the project and the binary was created in the Debug_FLASH folder&amp;nbsp; by the name of lwip_s32k148.bin. I used this binary, flash this using the JLINK Segger application and everything went perfectly fine. Now the problem is when I want to debug my project using S32 design studio, revert my configuration again to Debug_Ram and debug using lwip_s32k148 DEBUG_FLASH_jlink. My application is not running. I use to debug the application the same way I used to debug the application before.&lt;/P&gt;&lt;P&gt;Help would be appreciated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 11:03:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32k148-Debug-Flash-and-Debug-Ram/m-p/888223#M4726</guid>
      <dc:creator>saad_saeed</dc:creator>
      <dc:date>2019-02-26T11:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: S32k148: Debug Flash and Debug Ram</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32k148-Debug-Flash-and-Debug-Ram/m-p/888224#M4727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, you cannot mix your Debug_Flash binary image with Debug_RAM generated elf file&amp;nbsp; (debug information) - these are completely different files so the symbols does not fit at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See e.g. this&amp;nbsp;&lt;A href="https://community.nxp.com/message/1017225"&gt;https://community.nxp.com/message/1017225&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand your sequence correctly -&amp;nbsp; you have programmed the .bin file into the target MCU using an external flasher and now you would like to attach to the running target via Segger probe and debug the project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this purpose you can adjust segger j-link debug configuration that will just connect to the running target instead of programming the mcu:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63523i9DC5BEF22D42AEA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't quite understand why you generate bin file and you don't program the elf via segger J-link debug configuration in S32DS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 14:13:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32k148-Debug-Flash-and-Debug-Ram/m-p/888224#M4727</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2019-02-26T14:13:40Z</dc:date>
    </item>
  </channel>
</rss>

