<?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>Embedded Software and Tools ClinicのトピックRe: #error &amp;quot;No valid CPU defined!&amp;quot;  with gcc toolchain for MIMXRT1160</title>
    <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/error-quot-No-valid-CPU-defined-quot-with-gcc-toolchain-for/m-p/1305164#M196</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188580"&gt;@kunf&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Check the project created with the MCUXpresso IDE: there are bunch of compiler defines you need to set for the MCUXpresso SDK projects, otherwise you will get such errors. In the project settings, check the compiler settings.&lt;/P&gt;&lt;P&gt;Or see how to setup projects with CMake here: &lt;A href="https://mcuoneclipse.com/2021/05/04/visual-studio-code-for-c-c-with-arm-cortex-m-part-2/" target="_blank"&gt;https://mcuoneclipse.com/2021/05/04/visual-studio-code-for-c-c-with-arm-cortex-m-part-2/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jul 2021 05:18:00 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2021-07-09T05:18:00Z</dc:date>
    <item>
      <title>#error "No valid CPU defined!"  with gcc toolchain for MIMXRT1160</title>
      <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/error-quot-No-valid-CPU-defined-quot-with-gcc-toolchain-for/m-p/1304985#M195</link>
      <description>&lt;P&gt;I am setting up a gcc toolchain&amp;nbsp; for MIMXRT1160 using an preconfigured example. When building it, I get the following error:&lt;/P&gt;&lt;P&gt;====================[ Build | core0_cm7.elf | Debug ]===========================&lt;BR /&gt;"C:\Program Files\JetBrains\CLion 2021.1.2\bin\cmake\win\bin\cmake.exe" --build C:\Users\local_kunf\CLionProjects\1160_prog_almer\core0_cm7\cmake-build-debug --target core0_cm7.elf -- -j 6&lt;BR /&gt;Scanning dependencies of target core0_cm7.elf&lt;BR /&gt;[ 2%] Building C object CMakeFiles/core0_cm7.elf.dir/board/board.c.obj&lt;BR /&gt;[ 5%] Building C object CMakeFiles/core0_cm7.elf.dir/board/clock_config.c.obj&lt;BR /&gt;[ 7%] Building C object CMakeFiles/core0_cm7.elf.dir/board/dcd.c.obj&lt;BR /&gt;[ 10%] Building C object CMakeFiles/core0_cm7.elf.dir/board/pin_mux.c.obj&lt;BR /&gt;[ 12%] Building C object CMakeFiles/core0_cm7.elf.dir/source/main_master.c.obj&lt;BR /&gt;[ 15%] Building C object CMakeFiles/core0_cm7.elf.dir/mcmgr/mcmgr_internal_core_api_imxrt1160.c.obj&lt;BR /&gt;In file included from C:\Users\local_kunf\CLionProjects\1160_prog_almer\core0_cm7\drivers/fsl_common.h:31:0,&lt;BR /&gt;from C:\Users\local_kunf\CLionProjects\1160_prog_almer\core0_cm7\board\board.c:8:&lt;BR /&gt;C:\Users\local_kunf\CLionProjects\1160_prog_almer\core0_cm7\device/fsl_device_registers.h:37:6: error: #error "No valid CPU defined!"&lt;BR /&gt;#error "No valid CPU defined!"&lt;BR /&gt;^~~~~&lt;/P&gt;&lt;P&gt;In which file must the desired processor be specified?&lt;/P&gt;&lt;P&gt;Thanks for helping me.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 21:27:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Embedded-Software-and-Tools/error-quot-No-valid-CPU-defined-quot-with-gcc-toolchain-for/m-p/1304985#M195</guid>
      <dc:creator>kunf</dc:creator>
      <dc:date>2021-07-08T21:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: #error "No valid CPU defined!"  with gcc toolchain for MIMXRT1160</title>
      <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/error-quot-No-valid-CPU-defined-quot-with-gcc-toolchain-for/m-p/1305164#M196</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188580"&gt;@kunf&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Check the project created with the MCUXpresso IDE: there are bunch of compiler defines you need to set for the MCUXpresso SDK projects, otherwise you will get such errors. In the project settings, check the compiler settings.&lt;/P&gt;&lt;P&gt;Or see how to setup projects with CMake here: &lt;A href="https://mcuoneclipse.com/2021/05/04/visual-studio-code-for-c-c-with-arm-cortex-m-part-2/" target="_blank"&gt;https://mcuoneclipse.com/2021/05/04/visual-studio-code-for-c-c-with-arm-cortex-m-part-2/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 05:18:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Embedded-Software-and-Tools/error-quot-No-valid-CPU-defined-quot-with-gcc-toolchain-for/m-p/1305164#M196</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2021-07-09T05:18:00Z</dc:date>
    </item>
  </channel>
</rss>

