<?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 LinkServer Script LOAD function in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/LinkServer-Script-LOAD-function/m-p/1675136#M9057</link>
    <description>&lt;P&gt;From the MCUXpresso IDE "LinkServer Scripts" section:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;LOAD "FILENAME":&amp;nbsp;Loads&amp;nbsp;a&amp;nbsp;script&amp;nbsp;from&amp;nbsp;the&amp;nbsp;current,&amp;nbsp;absolute,&amp;nbsp;or&amp;nbsp;relative&amp;nbsp;directory&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Can someone please provide an example of using this without absolute paths?&lt;/P&gt;&lt;P&gt;What is the current directory from this functions perspective?&lt;/P&gt;&lt;P&gt;i.e. the .project file location? build output location?&lt;/P&gt;&lt;P&gt;Absolute path works for me but that's not what I need, and the error I get when trying to specify a relative path is: "Error: Bad file given to LOAD command", but no information as to where it is trying to access...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2023 20:57:19 GMT</pubDate>
    <dc:creator>mjosborne1</dc:creator>
    <dc:date>2023-06-23T20:57:19Z</dc:date>
    <item>
      <title>LinkServer Script LOAD function</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/LinkServer-Script-LOAD-function/m-p/1675136#M9057</link>
      <description>&lt;P&gt;From the MCUXpresso IDE "LinkServer Scripts" section:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;LOAD "FILENAME":&amp;nbsp;Loads&amp;nbsp;a&amp;nbsp;script&amp;nbsp;from&amp;nbsp;the&amp;nbsp;current,&amp;nbsp;absolute,&amp;nbsp;or&amp;nbsp;relative&amp;nbsp;directory&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Can someone please provide an example of using this without absolute paths?&lt;/P&gt;&lt;P&gt;What is the current directory from this functions perspective?&lt;/P&gt;&lt;P&gt;i.e. the .project file location? build output location?&lt;/P&gt;&lt;P&gt;Absolute path works for me but that's not what I need, and the error I get when trying to specify a relative path is: "Error: Bad file given to LOAD command", but no information as to where it is trying to access...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 20:57:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/LinkServer-Script-LOAD-function/m-p/1675136#M9057</guid>
      <dc:creator>mjosborne1</dc:creator>
      <dc:date>2023-06-23T20:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: LinkServer Script LOAD function</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/LinkServer-Script-LOAD-function/m-p/1675488#M9061</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/73829"&gt;@mjosborne1&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;What I have used so far in my projects is placing the script files in &amp;lt;ide&amp;gt;\binaries\Scripts or at the project root directory (where the .project is located).&lt;/P&gt;&lt;P&gt;So to me the LinkServer scripting is taking these two folders in a kind of pre-search order.&lt;/P&gt;&lt;P&gt;It finds the files there if it is specified without a path in it, e.g. "test.scp", but I have not been able to use a relative path from there.&lt;/P&gt;&lt;P&gt;Interestingly, if I use "./test.scp", it finds the file in the location of the IDE executable path (&amp;lt;ide path&amp;gt;\ide).&lt;/P&gt;&lt;P&gt;I need to have some more tests and report back if I find something new.&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2023 13:29:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/LinkServer-Script-LOAD-function/m-p/1675488#M9061</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2023-06-25T13:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: LinkServer Script LOAD function</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/LinkServer-Script-LOAD-function/m-p/1677154#M9062</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/17173"&gt;@ErichStyger&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thank you for looking into this.&lt;/P&gt;&lt;P&gt;I tried using LOAD when the scripts are in&amp;nbsp;&lt;SPAN&gt;&amp;lt;ide&amp;gt;\binaries\Scripts and also the project root directory; I can't get it to work without specifying the absolute path.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In my attempt to get a non-absolute path working I'm just doing:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;100 LOAD "Init_SDRAM.scp"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Are there any System Environment or MCUX Build variables that I might be missing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again for the help&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 16:55:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/LinkServer-Script-LOAD-function/m-p/1677154#M9062</guid>
      <dc:creator>mjosborne1</dc:creator>
      <dc:date>2023-06-27T16:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: LinkServer Script LOAD function</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/LinkServer-Script-LOAD-function/m-p/1692280#M9101</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/73829"&gt;@mjosborne1&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I did some digging around scripting (see as well my article about it: &lt;A href="https://mcuoneclipse.com/2023/07/25/linkserver-scripting-and-how-to-recover-mcus-with-a-script/" target="_blank"&gt;https://mcuoneclipse.com/2023/07/25/linkserver-scripting-and-how-to-recover-mcus-with-a-script/&lt;/A&gt; ).&lt;/P&gt;&lt;P&gt;My conclusion is that currently LOAD cannot be executed in scripts itself, and if used in interactive mode, it only allows using an absolute path (which is strange somehow).&lt;/P&gt;&lt;P&gt;As for loading a script outside the script, you have to start the path with a '\' or '/'. See above article.&lt;/P&gt;&lt;P&gt;If I find out more, I'll post it for sure.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 12:36:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/LinkServer-Script-LOAD-function/m-p/1692280#M9101</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2023-07-25T12:36:34Z</dc:date>
    </item>
  </channel>
</rss>

