<?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>Model-Based Design Toolbox (MBDT)のトピックMC34GD3000 init_missing from generated C code</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MC34GD3000-init-missing-from-generated-C-code/m-p/706887#M1222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NXP Expert,&lt;/P&gt;&lt;P&gt;In your Motor class 10 of DEVKIT_MPC5744P, there is MC34GD3000 initialization sequence in the open loop motor control model, but I did not find the corresponding initialization C code being called from the main() function anywhere from the generated C code. Is the Hardware taking care of the power on initialization sequence for the pre-driver ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another question: the DEVKIT_MOTORGUDARD is available now has been stated by this community. But NXP website is still telling pending stock$49, would you please let me know where I can purchase them? Would you please also provide the motor guard drawing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Susan Li&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Oct 2017 16:59:05 GMT</pubDate>
    <dc:creator>liwuquan</dc:creator>
    <dc:date>2017-10-14T16:59:05Z</dc:date>
    <item>
      <title>MC34GD3000 init_missing from generated C code</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MC34GD3000-init-missing-from-generated-C-code/m-p/706887#M1222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NXP Expert,&lt;/P&gt;&lt;P&gt;In your Motor class 10 of DEVKIT_MPC5744P, there is MC34GD3000 initialization sequence in the open loop motor control model, but I did not find the corresponding initialization C code being called from the main() function anywhere from the generated C code. Is the Hardware taking care of the power on initialization sequence for the pre-driver ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another question: the DEVKIT_MOTORGUDARD is available now has been stated by this community. But NXP website is still telling pending stock$49, would you please let me know where I can purchase them? Would you please also provide the motor guard drawing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Susan Li&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Oct 2017 16:59:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MC34GD3000-init-missing-from-generated-C-code/m-p/706887#M1222</guid>
      <dc:creator>liwuquan</dc:creator>
      <dc:date>2017-10-14T16:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: MC34GD3000 init_missing from generated C code</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MC34GD3000-init-missing-from-generated-C-code/m-p/706888#M1223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/liwuquan" rel="nofollow noopener noreferrer" target="_blank"&gt;liwuquan&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for delayed response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The generated code for the FET pre-driver initialization flow chart is part of the&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;void Read_Hall_Sensors_and_Speed_Est(void)&amp;nbsp;&lt;/SPAN&gt;function. There is a large switch that contains all the sequences&lt;/P&gt;&lt;PRE class="language-c"&gt;&lt;CODE&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;switch&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;OpenLoop_Control_with_SpeedE_DW&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;is_c2_OpenLoop_Control_with_Spe&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;case&lt;/SPAN&gt; OpenLoop_Control_with_Spee_IN_A&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;/* During 'A': '&amp;lt;S14&amp;gt;:5' */&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;/* Transition: '&amp;lt;S14&amp;gt;:7' */&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;/* MASK0 */&lt;/SPAN&gt;
 Data &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;uint16_T&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0x20&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 OpenLoop_Control_with_SpeedE_DW&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;is_c2_OpenLoop_Control_with_Spe &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;
 OpenLoop_Control_with_Spee_IN_B&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;break&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;case&lt;/SPAN&gt; OpenLoop_Control_with_Spee_IN_B&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;/* During 'B': '&amp;lt;S14&amp;gt;:4' */&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;/* Transition: '&amp;lt;S14&amp;gt;:8' */&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;/* MASK1 */&lt;/SPAN&gt;
 Data &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;uint16_T&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0x30&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 OpenLoop_Control_with_SpeedE_DW&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;is_c2_OpenLoop_Control_with_Spe &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;
 OpenLoop_Control_with_Spee_IN_C&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;break&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is called on the model step function / basically an interrupt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;SYSTEM_TASK&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;OpenLoop_Control_with_SpeedEstimator_step&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;/* Get model outputs here */&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SW needs to initialize the pre-driver. The most critical part is the PWM sequence to load the bootstrap capacitors, otherwise the PWM signals will not pass from the MPC5744 CPU to the actual MOSFETs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In respect with the MotorGD devkit please get in contact with &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/wem'sperez" rel="nofollow noopener noreferrer" target="_blank"&gt;wem'sperez&lt;/A&gt;‌ since he might help you with the available stock information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the schematics i need to look for the official ones and i'll come back to you. The videos are using a prototype board and some of the resistors capacitors have been changed in the final layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 09:19:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MC34GD3000-init-missing-from-generated-C-code/m-p/706888#M1223</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-10-17T09:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: MC34GD3000 init_missing from generated C code</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MC34GD3000-init-missing-from-generated-C-code/m-p/706889#M1224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NXP Expert,&lt;/P&gt;&lt;P&gt;Thanks for the help so far.&lt;/P&gt;&lt;P&gt;Please help on my new questions below since the documentation needed is not available on NXP website.&lt;/P&gt;&lt;P&gt;It is regarding DEVKIT-MOTORGD and DEVKIT-MPC5744 pair for motor control, the table attached here is about the current and DC bus voltage measurement on the pair, my questions are:&lt;/P&gt;&lt;P&gt;1: please let me how much the number in the last column in the table suppose to be?&lt;/P&gt;&lt;P&gt;2: how BEMF and PH current measurement is sharing the ADC channel? through jumpers? then which jumpers, how the configure should be?&lt;/P&gt;&lt;P&gt;3: if you see there is anything not correct in the table regarding the pair of the board, please let me know.&lt;/P&gt;&lt;P&gt;4:please provide schematics for your MOTORGD, if you do not have the updated version, the old version is fine to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Susan Li&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 15:51:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MC34GD3000-init-missing-from-generated-C-code/m-p/706889#M1224</guid>
      <dc:creator>liwuquan</dc:creator>
      <dc:date>2017-11-07T15:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: MC34GD3000 init_missing from generated C code</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MC34GD3000-init-missing-from-generated-C-code/m-p/706890#M1225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the table attached for questions above. last time it was not attached properly.&lt;/P&gt;&lt;P&gt;thank you. Susan Li&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="MOTORGD-MPC5744P-DEVKIT_ADC.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21537i2801486E4BF3F849/image-size/large?v=v2&amp;amp;px=999" role="button" title="MOTORGD-MPC5744P-DEVKIT_ADC.PNG" alt="MOTORGD-MPC5744P-DEVKIT_ADC.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 16:03:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MC34GD3000-init-missing-from-generated-C-code/m-p/706890#M1225</guid>
      <dc:creator>liwuquan</dc:creator>
      <dc:date>2017-11-07T16:03:57Z</dc:date>
    </item>
  </channel>
</rss>

