<?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>Kinetis Design Studio中的主题 Re: &amp;quot;No valid CPU defined!&amp;quot;</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/quot-No-valid-CPU-defined-quot/m-p/343022#M1035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was still able to mark it as a question, so I just did :-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Aug 2014 10:28:25 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2014-08-15T10:28:25Z</dc:date>
    <item>
      <title>"No valid CPU defined!"</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/quot-No-valid-CPU-defined-quot/m-p/343016#M1029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I came across what seems to be a bug in code generated by KDS 1.1.0, and was encouraged to report it here.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tools involved:&lt;/P&gt;&lt;P&gt;KDS 1.1.0&lt;/P&gt;&lt;P&gt;KSDK 1.0.0 (release version, not beta, installed into KDS)&lt;/P&gt;&lt;P&gt;IAR EW 7.2&lt;/P&gt;&lt;P&gt;KV31 TWR module&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Resulting error message:&lt;/P&gt;&lt;P&gt;Fatal Error[Pe035]: #error directive: "No valid CPU defined!" C:\Freescale\KSDK_1.0.0\platform\CMSIS\Include\device\fsl_device_registers.h 1520&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tested fix:&lt;/P&gt;&lt;P&gt;Add CPU_MKV31F512VLH12 as a Defined Symbol in IAR EW Project&amp;gt;&amp;gt;Options&amp;gt;&amp;gt;C/C++ Compiler&amp;gt;&amp;gt;Preprocessor&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Untested fix:&lt;/P&gt;&lt;P&gt;Add appropriate #define pragma.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Abbreviated steps to reproduce:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a new KDS project&lt;OL&gt;&lt;LI&gt;Processor: TWR-KV31F120M&lt;/LI&gt;&lt;LI&gt;KSDK checked (with updated SDK Environment Variable)&lt;/LI&gt;&lt;LI&gt;Processor Expert checked (Linked)&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;In CPU component&amp;gt;&amp;gt;Build Options, change target compiler to IAR ARM C Compiler&lt;/LI&gt;&lt;LI&gt;Generate Code&lt;/LI&gt;&lt;LI&gt;Create a blank IAR EW project&lt;/LI&gt;&lt;LI&gt;Link EW project to using Project&amp;gt;&amp;gt;Add Project Connection&lt;OL&gt;&lt;LI&gt;Processor Expert Project&lt;/LI&gt;&lt;LI&gt;target appropriate "ProjectInfo.xml" generated by KDS&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;EW Project&amp;gt;&amp;gt;Make&lt;OL&gt;&lt;LI&gt;See error listed above reported by 22 files&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notes:&lt;/P&gt;&lt;P&gt;It seems most likely that the code generator mistakenly omitted the appropriate #define pragma.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would also like to mention that attempting to 'ask a question' (either link) while not signed in sent me to a page which simply says "An unexpected error has occured". There is no indication that I needed to sign in to solve the problem, which apparently worked. Similarly annoying, the community page saved my credentials, but required me to explicitly click "Sign In". If it's going to save my credentials anyway, it might as well sign me in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 16:44:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/quot-No-valid-CPU-defined-quot/m-p/343016#M1029</guid>
      <dc:creator>leeshaver</dc:creator>
      <dc:date>2014-08-07T16:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: "No valid CPU defined!"</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/quot-No-valid-CPU-defined-quot/m-p/343017#M1030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kinetis Design Studio with the Processor Expert in it is not intended to be a front end to IAR EW out of the box, so I'm not surprised that this does not work without tweaking. The IAR tools/IDE check the project linking file for the source files and header include paths, but IAR does not support reading in options (like the needed define you have found out yourself). So you need to have this added manually to the IAR EW until that project connection functionality will cover things like build tool options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: about that "ask a question" forum issue: thanks for reporting, I have passed this on so hopefully this can be addressed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 10:10:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/quot-No-valid-CPU-defined-quot/m-p/343017#M1030</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-08-11T10:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: "No valid CPU defined!"</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/quot-No-valid-CPU-defined-quot/m-p/343018#M1031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's interesting. Previous Processor Expert versions provided near-seamless integration, which was used as a selling point to our group at FTF from both IAR and Freescale. It sounds like you're saying such features will be added eventually, though. Hopefully we don't run into too many similar problems. Are there any resources that I can use to educate myself on what else is missing from this advertised feature?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I bother with similar reports if other issues are found?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 15:16:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/quot-No-valid-CPU-defined-quot/m-p/343018#M1031</guid>
      <dc:creator>leeshaver</dc:creator>
      <dc:date>2014-08-11T15:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: "No valid CPU defined!"</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/quot-No-valid-CPU-defined-quot/m-p/343019#M1032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think nothing is missing:&lt;/P&gt;&lt;P&gt;What is used as integration for non-Eclipse IDE's is the Microcontroller Driver Suite (&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=PE_DRIVER_SUITE&amp;amp;tid=PEH" title="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=PE_DRIVER_SUITE&amp;amp;tid=PEH"&gt;Processor Expert Software, Microcontroller Dr|Freescale&lt;/A&gt;) where V10.4.1 is the latest version.&lt;/P&gt;&lt;P&gt;This is used for example with Keil (&lt;A href="http://mcuoneclipse.com/2013/06/28/using-keil-%C2%B5vision-arm-mdk-with-processor-expert-driver-suite/" title="http://mcuoneclipse.com/2013/06/28/using-keil-%C2%B5vision-arm-mdk-with-processor-expert-driver-suite/"&gt;Using Keil µVision (ARM-MDK) with Processor Expert Driver Suite | MCU on Eclipse&lt;/A&gt;) or with IAR EW (&lt;A href="http://mcuoneclipse.com/2013/01/31/tutorial-iar-freertos-freedom-board/" title="http://mcuoneclipse.com/2013/01/31/tutorial-iar-freertos-freedom-board/"&gt;Tutorial: IAR + FreeRTOS + Freedom Board | MCU on Eclipse&lt;/A&gt;). The Driver Suite is creating projects which then are used e.g. in IAR or Keil (or others).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kinetis Design Studio is an integrated development toolchain (like CodeWarrior), and the wizards in these IDE's are creating projects for their toolchains, respectively. The underlying Processor Expert is shared technology, so like you did, it is technically possible to tweak the projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this makes sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 15:23:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/quot-No-valid-CPU-defined-quot/m-p/343019#M1032</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-08-11T15:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: "No valid CPU defined!"</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/quot-No-valid-CPU-defined-quot/m-p/343020#M1033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using an up-to-date Processor Expert installation, I repeated the process listed in the report, including using the most current KSDK. This time I was asked my target build environment, instead of changing it in the component manually in KDS. Completing the remaining steps resulted in the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it be more accurate for me to describe this as a PEx or KSDK bug instead of mentioning KDS? I had been using KDS because I was told the process would essentially be the same given that it has the same PEx and KSDK installed, but that could certainly have been a faulty assumption. I've now reproduced the error without involving KDS directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This compatibility was used as a selling point at a class we attended, staffed by Freescale, where we walked through this process as part of the class (shortly before the KDS announcement; we used PEx and the SDK with the KL FRDM board). It was also sold to us as a feature at FTF 2014. I'm mentioning this so you understand why I feel this is a bug rather than an intended incompatibility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During the KDS beta I tested this functionality with the KV10 TWR board, and it seemingly worked perfectly. Hence my assumption that this is a bug with the KV31-specific generated code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do want to mention that I appreciate your taking the time to respond, and I have a great deal of respect and appreciation with the time you spend here and on your blog. Your blog was a big part of what led us to deciding on Freescale for this, and hopefully future, projects.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 15:57:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/quot-No-valid-CPU-defined-quot/m-p/343020#M1033</guid>
      <dc:creator>leeshaver</dc:creator>
      <dc:date>2014-08-11T15:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: "No valid CPU defined!"</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/quot-No-valid-CPU-defined-quot/m-p/343021#M1034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I seem to have lost the ability to label this a question, now that it is one. Is there a better place to take this discussion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another minor bug report, possibly: On August 11, under the first post's title was a message that I had "99999[...] [units of time]" to label the post a question. I assumed this meant an infinite time had been set, and never saw it tick down when I came back to the discussion. That option seems to be gone. Would that be because time ran out, or some other reason?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 19:00:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/quot-No-valid-CPU-defined-quot/m-p/343021#M1034</guid>
      <dc:creator>leeshaver</dc:creator>
      <dc:date>2014-08-14T19:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: "No valid CPU defined!"</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/quot-No-valid-CPU-defined-quot/m-p/343022#M1035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was still able to mark it as a question, so I just did :-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 10:28:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/quot-No-valid-CPU-defined-quot/m-p/343022#M1035</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-08-15T10:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: "No valid CPU defined!"</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/quot-No-valid-CPU-defined-quot/m-p/343023#M1036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lee,&lt;/P&gt;&lt;P&gt;thanks for that mention :-).&lt;/P&gt;&lt;P&gt;I believe this is more of a Kinetis SDK related question. The forum owners probably will need to restructure the forums, and I suggest you might post SDK related questions in the Kinetis Microcontrollers (&lt;A href="https://community.nxp.com/space/2019"&gt; Kinetis Microcontrollers&lt;/A&gt;) forum. It has a Kinetis SDK category there:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.nxp.com/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for your actual problem: I suggest that you check&lt;/P&gt;&lt;P&gt;C:\Freescale\KSDK_1.0.0\platform\CMSIS\Include\device\fsl_device_registers.h&lt;/P&gt;&lt;P&gt;(where the error happens) what kind of CPU define it expects, based on what you are using.&lt;/P&gt;&lt;P&gt;And that you add that define to the IAR preprocessor/define settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 10:36:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/quot-No-valid-CPU-defined-quot/m-p/343023#M1036</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-08-15T10:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: "No valid CPU defined!"</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/quot-No-valid-CPU-defined-quot/m-p/343024#M1037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That fix works - I had listed it under "Tested fix" in my original post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went ahead and moved the discussion to Kinetis Microcontrollers, per your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also somewhat amused that the question is "Assumed Answered" and I apparently have no way of changing that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 21:33:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/quot-No-valid-CPU-defined-quot/m-p/343024#M1037</guid>
      <dc:creator>leeshaver</dc:creator>
      <dc:date>2014-08-20T21:33:51Z</dc:date>
    </item>
  </channel>
</rss>

