<?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>S32 Design Studio中的主题 Custom Build and error catching</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Custom-Build-and-error-catching/m-p/2027453#M12979</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In S32DS 3.5,&amp;nbsp;I'm using a custom build command by calling a ".bat" file (instead of the classic build).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bijam_0-1736842966469.png" style="width: 344px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/319472i42802BE7FA1C0ECD/image-dimensions/344x233?v=v2" width="344" height="233" role="button" title="Bijam_0-1736842966469.png" alt="Bijam_0-1736842966469.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;In addition to compiling / linking my code, tThe .bat execute addtional pre and post build steps.&lt;BR /&gt;It's working OK.&lt;/P&gt;&lt;P&gt;If I have some coding error, S32DS catch the error and indicates in the console that the build failed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bijam_2-1736845657017.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/319483i78D6B876DDA9C06F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bijam_2-1736845657017.png" alt="Bijam_2-1736845657017.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My issue is that whenever an error occurs during the post and pre build actions, I fire a&amp;nbsp; error in the .bat (exit code != 0).&amp;nbsp;&amp;nbsp;&lt;BR /&gt;ex: "exit /b 2"&lt;BR /&gt;&lt;BR /&gt;This error is not interpreted correctly by eclipse. The build stops, but it doesn't indicate that the build failed. Thus the coder doesn't see directly that is an error, without looking at the console.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bijam_3-1736845729147.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/319484i57FCC349008E5A9A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bijam_3-1736845729147.png" alt="Bijam_3-1736845729147.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can I do in S32DS to mark the build as failed in this case ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&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;</description>
    <pubDate>Tue, 14 Jan 2025 09:10:21 GMT</pubDate>
    <dc:creator>Bijam</dc:creator>
    <dc:date>2025-01-14T09:10:21Z</dc:date>
    <item>
      <title>Custom Build and error catching</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Custom-Build-and-error-catching/m-p/2027453#M12979</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In S32DS 3.5,&amp;nbsp;I'm using a custom build command by calling a ".bat" file (instead of the classic build).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bijam_0-1736842966469.png" style="width: 344px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/319472i42802BE7FA1C0ECD/image-dimensions/344x233?v=v2" width="344" height="233" role="button" title="Bijam_0-1736842966469.png" alt="Bijam_0-1736842966469.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;In addition to compiling / linking my code, tThe .bat execute addtional pre and post build steps.&lt;BR /&gt;It's working OK.&lt;/P&gt;&lt;P&gt;If I have some coding error, S32DS catch the error and indicates in the console that the build failed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bijam_2-1736845657017.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/319483i78D6B876DDA9C06F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bijam_2-1736845657017.png" alt="Bijam_2-1736845657017.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My issue is that whenever an error occurs during the post and pre build actions, I fire a&amp;nbsp; error in the .bat (exit code != 0).&amp;nbsp;&amp;nbsp;&lt;BR /&gt;ex: "exit /b 2"&lt;BR /&gt;&lt;BR /&gt;This error is not interpreted correctly by eclipse. The build stops, but it doesn't indicate that the build failed. Thus the coder doesn't see directly that is an error, without looking at the console.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bijam_3-1736845729147.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/319484i57FCC349008E5A9A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bijam_3-1736845729147.png" alt="Bijam_3-1736845729147.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can I do in S32DS to mark the build as failed in this case ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&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;</description>
      <pubDate>Tue, 14 Jan 2025 09:10:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Custom-Build-and-error-catching/m-p/2027453#M12979</guid>
      <dc:creator>Bijam</dc:creator>
      <dc:date>2025-01-14T09:10:21Z</dc:date>
    </item>
  </channel>
</rss>

