<?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>Processor Expert Software中的主题 Re: Need help understanding CDE's User Types editor</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Need-help-understanding-CDE-s-User-Types-editor/m-p/313755#M2365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome. According to the information I have, the update should be released in 2-3 weeks from now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Petr Hradsky&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2014 14:02:43 GMT</pubDate>
    <dc:creator>Petr_H</dc:creator>
    <dc:date>2014-06-18T14:02:43Z</dc:date>
    <item>
      <title>Need help understanding CDE's User Types editor</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Need-help-understanding-CDE-s-User-Types-editor/m-p/313751#M2361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm relatively new to Processor Expert and CodeWarrior MCU and have some questions about creating a new component with the Component Development Environment.&amp;nbsp; I'm using CW MCU Professional Suite 10.6. I've read through the CDE Getting Started and User Guides.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To keep things simple for now, I want to create a simple software-only component.&amp;nbsp; That is, a component that just does some operations on some data without accessing any MCU features.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have many questions, but for now, I'll limit it to questions about the User Types editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In the list of user-defined types (i.e. the "This defines:" field), is "Alias" essentially the same as a typedef of a simple type?&amp;nbsp; For example, if I set "Type Name" to "INDEX" and "Is type" to "int", is that the same as having "typedef int INDEX;" somewhere in my code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If my understanding of #1 is correct, how does that affect the generated code?&amp;nbsp; That is, does PEX generate the "typedef" for me somewhere?&amp;nbsp; Or do I have to manually add it myself somewhere?&amp;nbsp; And if so, where?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Is the type "Record" just a C struct?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Same as above, does PEX generate the struct definition for me, or do I have to put it in somewhere?&amp;nbsp; (If it DOESN'T generate the code, why does it need to know about the fields of the struct?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. The type "User" seems to be a catch-all for anything that doesn't quite fit any of the other types.&amp;nbsp; However, the examples given in the User Guide ("typedef int *TIntPtr;" and "typedef struct { float real; float imaginary; } TComplex") seem like they would be handled by "Alias" and "Record" types if my understanding of them is correct, which makes me think my understanding ISN'T correct.&amp;nbsp; So what is the point of the "User" type?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. I don't seem to understand what the "Generate to driver" option does.&amp;nbsp; The User Guide says "If the declaration is generated in the drivers", which makes me think it means that PEX will insert the declarations for me.&amp;nbsp; But that doesn't seem to be happening.&amp;nbsp; When I generate code for my component in a project, I don't see the declarations of my structs anywhere.&amp;nbsp; That makes me think I don't understand what this checkbox is supposed to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's all my questions for now.&amp;nbsp; I greatly appreciate any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 15:16:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Need-help-understanding-CDE-s-User-Types-editor/m-p/313751#M2361</guid>
      <dc:creator>joeplanisky</dc:creator>
      <dc:date>2014-06-03T15:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help understanding CDE's User Types editor</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Need-help-understanding-CDE-s-User-Types-editor/m-p/313752#M2362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me try something more specific.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the methods of a component I'm creating takes a parameter that is a pointer to a custom struct.&amp;nbsp; How can I get PE to generate the code for that struct in the generated .h file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words, when the user generates code for my component, I want to see this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Comp1.h&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;typedef struct MyStruct {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int value1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int value2;&lt;/P&gt;&lt;P&gt;} MyStruct;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void Comp1_doWork(MyStruct *pArg);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Comp1.c&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void Comp1_doWork(MyStruct *pArg) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing I've tried so far will give me that generated code.&amp;nbsp; What do I need to do in the CDE to make it so?&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 15:34:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Need-help-understanding-CDE-s-User-Types-editor/m-p/313752#M2362</guid>
      <dc:creator>joeplanisky</dc:creator>
      <dc:date>2014-06-11T15:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help understanding CDE's User Types editor</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Need-help-understanding-CDE-s-User-Types-editor/m-p/313753#M2363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Your expecations are mostly correct, unfortunately, there is a known defect in the CDE that doesn't put the typedef to the driver properly, so the code is not generate for the types.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;It has been fixed and the fix will be published in the upcoming Driver Suite 10.4.1 update. We appologize for the inconvenience.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here are comments to your questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1. In the list of user-defined types (i.e. the "This defines:" field), is "Alias" essentially the same as a typedef of a simple type?&amp;nbsp; For example, if I set "Type Name" to "INDEX" and "Is type" to "int", is that the same as having "typedef int INDEX;" somewhere in my code?&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&lt;STRONG&gt;Yes, this is true.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2. If my understanding of #1 is correct, how does that affect the generated code?&amp;nbsp; That is, does PEX generate the "typedef" for me somewhere?&amp;nbsp; Or do I have to manually add it myself somewhere?&amp;nbsp; And if so, where?&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;EM&gt;Yes, the "typedef" should appear in the generated .h file for the component. However, there is a bug at the moment.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;3. Is the type "Record" just a C struct?&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;EM&gt;Yes, the "record" is a "struct" in C.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;4. Same as above, does PEX generate the struct definition for me, or do I have to put it in somewhere?&amp;nbsp; (If it DOESN'T generate the code, why does it need to know about the fields of the struct?)&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;EM&gt;Yes, PEx should generate it for you, but there is the already mentioned known problem so it doesn't now.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;5. The type "User" seems to be a catch-all for anything that doesn't quite fit any of the other types.&amp;nbsp; However, the examples given in the User Guide ("typedef int *TIntPtr;" and "typedef struct { float real; float imaginary; } TComplex") seem like they would be handled by "Alias" and "Record" types if my understanding of them is correct, which makes me think my understanding ISN'T correct.&amp;nbsp; So what is the point of the "User" type?&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;EM&gt;The User type means that you type the whole "typedef" definition yourself and it's generated into .h&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Petr Hradsky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 10:07:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Need-help-understanding-CDE-s-User-Types-editor/m-p/313753#M2363</guid>
      <dc:creator>Petr_H</dc:creator>
      <dc:date>2014-06-17T10:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need help understanding CDE's User Types editor</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Need-help-understanding-CDE-s-User-Types-editor/m-p/313754#M2364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your reply, Petr.&amp;nbsp; While the bug is unfortunate, it's good to know that I was on the right track.&amp;nbsp; Can you give me a rough idea of when the 10.4.1 driver suite update will be available? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 21:49:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Need-help-understanding-CDE-s-User-Types-editor/m-p/313754#M2364</guid>
      <dc:creator>joeplanisky</dc:creator>
      <dc:date>2014-06-17T21:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help understanding CDE's User Types editor</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Need-help-understanding-CDE-s-User-Types-editor/m-p/313755#M2365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome. According to the information I have, the update should be released in 2-3 weeks from now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Petr Hradsky&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 14:02:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Need-help-understanding-CDE-s-User-Types-editor/m-p/313755#M2365</guid>
      <dc:creator>Petr_H</dc:creator>
      <dc:date>2014-06-18T14:02:43Z</dc:date>
    </item>
  </channel>
</rss>

