<?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 回复： Fails to flash new project to RT1166 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Fails-to-flash-new-project-to-RT1166/m-p/1888861#M225071</link>
    <description>&lt;P&gt;Hi Gavin,&lt;/P&gt;&lt;P&gt;Thank you for your reply :).&lt;/P&gt;&lt;P&gt;Yes, the example projects, like "Hello World" are working just fine.&lt;BR /&gt;But, if I create a blank project and add the "Hello World" printf line, it fails with the error message I stated in my original post.&lt;BR /&gt;&lt;BR /&gt;The example projects for the CM4 core seem to be all C-Projects, I, however, need a C++ project.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2024 17:06:29 GMT</pubDate>
    <dc:creator>MaxS</dc:creator>
    <dc:date>2024-06-17T17:06:29Z</dc:date>
    <item>
      <title>Fails to flash new project to RT1166</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Fails-to-flash-new-project-to-RT1166/m-p/1887049#M224929</link>
      <description>&lt;P&gt;I am using the MIMXRT1160 Evaluation Kit and am trying to run an initial project on the CM4 core.&lt;BR /&gt;&lt;BR /&gt;Interestingly, flashing, debugging and running the provided example projects works just fine on both cores.&lt;BR /&gt;So it does not seem to be an hardware issue.&lt;BR /&gt;But when I create a new blank CM4 standalone project, write my code and try to flash it, the process fails with&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Failed to execute MI command:
-target-download
Error message from debugger back end:
Could not write register "pc"; remote failure reply 'E22'
Failed to execute MI command:
-target-download
Error message from debugger back end:
Could not write register "pc"; remote failure reply 'E22'
Could not write register "pc"; remote failure reply 'E22'&lt;/LI-CODE&gt;&lt;P&gt;I was not able to find any relevant difference between the provided example projects and my new project, which I created from a blank C++ project.&lt;BR /&gt;I removed any relevant core, so the project in its current version only contains a PRINTF-statement in the main function in addition to the standard Init functions.&lt;BR /&gt;&lt;BR /&gt;The image is also compiled without any errors.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 13:50:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Fails-to-flash-new-project-to-RT1166/m-p/1887049#M224929</guid>
      <dc:creator>MaxS</dc:creator>
      <dc:date>2024-06-13T13:50:51Z</dc:date>
    </item>
    <item>
      <title>回复： Fails to flash new project to RT1166</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Fails-to-flash-new-project-to-RT1166/m-p/1888389#M225029</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234962"&gt;@MaxS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your interest in NXP MIMXRT series!&lt;/P&gt;
&lt;P&gt;Did you have a test with hello_world_demo_cm4? Because there are sometimes configuration issues, we prefer that you start with this simple project and porting the code you need into this project to prevent any other unwanted issues.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And you can refer to AN13114 to learn the porting with IAR&lt;/SPAN&gt;&lt;SPAN&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;BR clear="none" /&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN13114.pdf" target="_blank" rel="noopener"&gt;https://www.nxp.com/docs/en/application-note/AN13114.pdf&lt;/A&gt;&lt;BR clear="none" /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Gavin&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 06:13:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Fails-to-flash-new-project-to-RT1166/m-p/1888389#M225029</guid>
      <dc:creator>Gavin_Jia</dc:creator>
      <dc:date>2024-06-17T06:13:14Z</dc:date>
    </item>
    <item>
      <title>回复： Fails to flash new project to RT1166</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Fails-to-flash-new-project-to-RT1166/m-p/1888861#M225071</link>
      <description>&lt;P&gt;Hi Gavin,&lt;/P&gt;&lt;P&gt;Thank you for your reply :).&lt;/P&gt;&lt;P&gt;Yes, the example projects, like "Hello World" are working just fine.&lt;BR /&gt;But, if I create a blank project and add the "Hello World" printf line, it fails with the error message I stated in my original post.&lt;BR /&gt;&lt;BR /&gt;The example projects for the CM4 core seem to be all C-Projects, I, however, need a C++ project.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 17:06:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Fails-to-flash-new-project-to-RT1166/m-p/1888861#M225071</guid>
      <dc:creator>MaxS</dc:creator>
      <dc:date>2024-06-17T17:06:29Z</dc:date>
    </item>
    <item>
      <title>回复： Fails to flash new project to RT1166</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Fails-to-flash-new-project-to-RT1166/m-p/1894294#M225499</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234962"&gt;@MaxS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Sorry for the late reply.&lt;/P&gt;
&lt;P&gt;Regarding this issue our internal team is still troubleshooting, but I found this resource that should help you, through which you can convert a C project into a C++ project.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2020/07/11/from-c-to-c-converting-eclipse-c-projekts/" target="_blank"&gt; https://mcuoneclipse.com/2020/07/11/from-c-to-c-converting-eclipse-c-projekts/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Wish you a nice day!&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Gavin&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 09:43:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Fails-to-flash-new-project-to-RT1166/m-p/1894294#M225499</guid>
      <dc:creator>Gavin_Jia</dc:creator>
      <dc:date>2024-06-26T09:43:47Z</dc:date>
    </item>
  </channel>
</rss>

