<?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 MCUXpresso: JLink script path does not recognise ${ProjDirPath} in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-JLink-script-path-does-not-recognise-ProjDirPath/m-p/1811157#M9526</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm trying to set a relative path to the JLink script for my project. The JLink script is in the same folder as the .launch files.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Here is the sequence:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Double left-click on the .launch file from the Project Explorer window in MCUXpresso.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Select JLink Debugger tab.&lt;/LI&gt;&lt;LI&gt;Scroll down to Additional options.&lt;/LI&gt;&lt;LI&gt;Fill the Script field with the path&lt;/LI&gt;&lt;LI&gt;Continue and save etc.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;So if I enter an absolute path to the JLink script, it all works fine and I can debug my code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I try any of the following, then it fails to work (and I get 0xdeadbeee in the callstack).&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;${ProjDirPath}/Default.JLinkScript&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Default.JLinkScript&lt;/LI&gt;&lt;LI&gt;./Default.JLinkScript&lt;/LI&gt;&lt;LI&gt;../Default.JLinkScript&lt;/LI&gt;&lt;LI&gt;../../Default.JLinkScript&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;I've tried the above with forward and backward slashes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way of using relative paths in this field, ideally with ${ProjDirPath} please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What is the default folder for this field?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What is interesting is that the 'Settings file' field does use ${ProjDirPath} so I am assuming it should work in the Script field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Info:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;MCUXpresso 11.8.1&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;SDK (RT1021) 2.14.0&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;SEGGER JLink Pro with V7.94h firmware&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind regards.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 08:29:27 GMT</pubDate>
    <dc:creator>rshipman</dc:creator>
    <dc:date>2024-02-20T08:29:27Z</dc:date>
    <item>
      <title>MCUXpresso: JLink script path does not recognise ${ProjDirPath}</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-JLink-script-path-does-not-recognise-ProjDirPath/m-p/1811157#M9526</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm trying to set a relative path to the JLink script for my project. The JLink script is in the same folder as the .launch files.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Here is the sequence:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Double left-click on the .launch file from the Project Explorer window in MCUXpresso.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Select JLink Debugger tab.&lt;/LI&gt;&lt;LI&gt;Scroll down to Additional options.&lt;/LI&gt;&lt;LI&gt;Fill the Script field with the path&lt;/LI&gt;&lt;LI&gt;Continue and save etc.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;So if I enter an absolute path to the JLink script, it all works fine and I can debug my code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I try any of the following, then it fails to work (and I get 0xdeadbeee in the callstack).&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;${ProjDirPath}/Default.JLinkScript&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Default.JLinkScript&lt;/LI&gt;&lt;LI&gt;./Default.JLinkScript&lt;/LI&gt;&lt;LI&gt;../Default.JLinkScript&lt;/LI&gt;&lt;LI&gt;../../Default.JLinkScript&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;I've tried the above with forward and backward slashes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way of using relative paths in this field, ideally with ${ProjDirPath} please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What is the default folder for this field?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What is interesting is that the 'Settings file' field does use ${ProjDirPath} so I am assuming it should work in the Script field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Info:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;MCUXpresso 11.8.1&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;SDK (RT1021) 2.14.0&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;SEGGER JLink Pro with V7.94h firmware&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind regards.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 08:29:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-JLink-script-path-does-not-recognise-ProjDirPath/m-p/1811157#M9526</guid>
      <dc:creator>rshipman</dc:creator>
      <dc:date>2024-02-20T08:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso: JLink script path does not recognise ${ProjDirPath}</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-JLink-script-path-does-not-recognise-ProjDirPath/m-p/1811655#M9528</link>
      <description>&lt;P&gt;I can confirm the problem, and reported this I believe back in December 23, so this might get fixed in the future.&lt;/P&gt;&lt;P&gt;I'm not aware of any other workaround than using an absolute path.&lt;/P&gt;&lt;P&gt;The other workound would be to use the Eclipse Embedded CDT (C/C++ Development Tools, formerly GNU MCU/ARM;Eclipse) plugin which includes a SEGGER J-Link launch configuration.&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 08:39:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-JLink-script-path-does-not-recognise-ProjDirPath/m-p/1811655#M9528</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2024-02-20T08:39:00Z</dc:date>
    </item>
  </channel>
</rss>

