<?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: Auto connect JLink when application start up in FreeMASTER</title>
    <link>https://community.nxp.com/t5/FreeMASTER/Auto-connect-JLink-when-application-start-up/m-p/2266415#M2133</link>
    <description>&lt;P&gt;I find a very simple solution.&lt;/P&gt;&lt;P&gt;(1) After building, start the application via debug. The application will be suspended at the first code in main() by a breakpoint.&lt;/P&gt;&lt;P&gt;(2) Start communication in FreeMASTER.&lt;/P&gt;&lt;P&gt;(3) Disable all breakpoints, application begins to run.&lt;/P&gt;&lt;P&gt;Can this solution meet my requirement?&lt;/P&gt;</description>
    <pubDate>Fri, 19 Dec 2025 01:22:41 GMT</pubDate>
    <dc:creator>LuBiq</dc:creator>
    <dc:date>2025-12-19T01:22:41Z</dc:date>
    <item>
      <title>Auto connect JLink when application start up</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Auto-connect-JLink-when-application-start-up/m-p/2265624#M2129</link>
      <description>&lt;P&gt;I want to capture the initial state of the application. Is there any solution to make FreeMASTER connect target board immediately and automatically when application start up?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 02:43:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Auto-connect-JLink-when-application-start-up/m-p/2265624#M2129</guid>
      <dc:creator>LuBiq</dc:creator>
      <dc:date>2025-12-18T02:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Auto connect JLink when application start up</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Auto-connect-JLink-when-application-start-up/m-p/2265807#M2131</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/258053"&gt;@LuBiq&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You can achieve this behavior by simulating a loop in the initialization phase of your application that would wait for a global variable (trigger).&lt;/P&gt;
&lt;P&gt;After you connect to the target using FreeMASTER, you can change that variable value to continue application execution. Ex:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;volatile char wait = 1; // Trigger variable (to be chnaged from FreeMASTER)
void main() {
  while (wait) {
    // Wait for trigger to change
  }
  // Application logic
} &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: this approach will work only with BDM plugin as other plugins require some initializations before you'll be able to connect to the target.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 16:28:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Auto-connect-JLink-when-application-start-up/m-p/2265807#M2131</guid>
      <dc:creator>iulian_stan</dc:creator>
      <dc:date>2025-12-18T16:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Auto connect JLink when application start up</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Auto-connect-JLink-when-application-start-up/m-p/2266415#M2133</link>
      <description>&lt;P&gt;I find a very simple solution.&lt;/P&gt;&lt;P&gt;(1) After building, start the application via debug. The application will be suspended at the first code in main() by a breakpoint.&lt;/P&gt;&lt;P&gt;(2) Start communication in FreeMASTER.&lt;/P&gt;&lt;P&gt;(3) Disable all breakpoints, application begins to run.&lt;/P&gt;&lt;P&gt;Can this solution meet my requirement?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2025 01:22:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Auto-connect-JLink-when-application-start-up/m-p/2266415#M2133</guid>
      <dc:creator>LuBiq</dc:creator>
      <dc:date>2025-12-19T01:22:41Z</dc:date>
    </item>
  </channel>
</rss>

