<?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 Compiling example project for iMXRT1064 as C++ project - Stuck in ROMCP memory region in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Compiling-example-project-for-iMXRT1064-as-C-project-Stuck-in/m-p/1374948#M183361</link>
    <description>&lt;P&gt;I tested&amp;nbsp;dev_cdc_vcom_lite_bm example from NXP and it worked great. However, I want to use C++ for my project. There was a guide online on how to migrate C to C++ in Eclipse, however, experts suggested to create a new C++ project instead. That is what I did. I added all the files from the original&amp;nbsp;dev_cdc_vcom_lite_bm example. Initially this caused some linker issues due to lack of extern "C" safeguard, but after I wrapped the declarations in C files, everything compiled and linked. I use NewlibNano and in linker I have selected -nostdlib.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What happens now is after upload the debugger does not stop anywhere, and if I stop the debug session it seems to be stuck at&amp;nbsp;0x21aaca or around there. In reference manual memory region&amp;nbsp;0020_0000 0021_FFFF is defined as ROMCP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is unclear to me why it is stuck there, what could be the reasons?&lt;/P&gt;&lt;P&gt;If additional info is necessary to debug this issue, please let me know!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Nov 2021 10:08:37 GMT</pubDate>
    <dc:creator>CarrotMan</dc:creator>
    <dc:date>2021-11-22T10:08:37Z</dc:date>
    <item>
      <title>Compiling example project for iMXRT1064 as C++ project - Stuck in ROMCP memory region</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Compiling-example-project-for-iMXRT1064-as-C-project-Stuck-in/m-p/1374948#M183361</link>
      <description>&lt;P&gt;I tested&amp;nbsp;dev_cdc_vcom_lite_bm example from NXP and it worked great. However, I want to use C++ for my project. There was a guide online on how to migrate C to C++ in Eclipse, however, experts suggested to create a new C++ project instead. That is what I did. I added all the files from the original&amp;nbsp;dev_cdc_vcom_lite_bm example. Initially this caused some linker issues due to lack of extern "C" safeguard, but after I wrapped the declarations in C files, everything compiled and linked. I use NewlibNano and in linker I have selected -nostdlib.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What happens now is after upload the debugger does not stop anywhere, and if I stop the debug session it seems to be stuck at&amp;nbsp;0x21aaca or around there. In reference manual memory region&amp;nbsp;0020_0000 0021_FFFF is defined as ROMCP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is unclear to me why it is stuck there, what could be the reasons?&lt;/P&gt;&lt;P&gt;If additional info is necessary to debug this issue, please let me know!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 10:08:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Compiling-example-project-for-iMXRT1064-as-C-project-Stuck-in/m-p/1374948#M183361</guid>
      <dc:creator>CarrotMan</dc:creator>
      <dc:date>2021-11-22T10:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling example project for iMXRT1064 as C++ project - Stuck in ROMCP memory region</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Compiling-example-project-for-iMXRT1064-as-C-project-Stuck-in/m-p/1375286#M183398</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;Before answering your question, I was wondering if you can list the steps of creating a C++ project for dev_cdc_vcom_lite_bm, as it can help me to figure it out.&lt;BR /&gt;Looking forward to your reply.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 02:12:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Compiling-example-project-for-iMXRT1064-as-C-project-Stuck-in/m-p/1375286#M183398</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-11-23T02:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling example project for iMXRT1064 as C++ project - Stuck in ROMCP memory region</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Compiling-example-project-for-iMXRT1064-as-C-project-Stuck-in/m-p/1375543#M183425</link>
      <description>&lt;P&gt;Dear Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was creating a list of steps that I did and now it works. I believe that what happened was that I used redlib when importing C SDK example and dropped those files on top of C++ project? It is unclear, but right now it reaches the main correctly. USB does not enumerate, but that is another ticket.&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 09:58:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Compiling-example-project-for-iMXRT1064-as-C-project-Stuck-in/m-p/1375543#M183425</guid>
      <dc:creator>CarrotMan</dc:creator>
      <dc:date>2021-11-23T09:58:41Z</dc:date>
    </item>
  </channel>
</rss>

