<?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>S12 / MagniV MicrocontrollersのトピックMC9S12ZVML128_LIN_BLDC_Sensorless Code Not Working in Standalone mode</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12ZVML128-LIN-BLDC-Sensorless-Code-Not-Working-in-Standalone/m-p/1527325#M18863</link>
    <description>&lt;P&gt;Hii, I'm using the code&amp;nbsp;MC9S12ZVML128_LIN_BLDC_Sensorless. I'm using MC9S12ZVML128 as Lin slave node and CANoe as Lin Master node.&lt;/P&gt;&lt;P&gt;I've not made any changes to the code. I'm using the code as it is.&lt;/P&gt;&lt;P&gt;I'm attaching the code as well as the application note provided by the code here.&lt;/P&gt;&lt;P&gt;Here are my observations.:&lt;/P&gt;&lt;P&gt;1. After flashing the code and running the code in debugg mode I'm able to control the speed of the motor using CANoe. PFA&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="itsnewforme_0-1663928388098.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/194760i9C5C2CE25760A8B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="itsnewforme_0-1663928388098.png" alt="itsnewforme_0-1663928388098.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;itsnewforme_0-1663928388098.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="itsnewforme_1-1663928407766.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/194761i637D68A94AB4A188/image-size/medium?v=v2&amp;amp;px=400" role="button" title="itsnewforme_1-1663928407766.png" alt="itsnewforme_1-1663928407766.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;itsnewforme_1-1663928407766.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) But, after flashing the code, removing the debugger and resetting the MCU, I'm not able to control the speed of the motor using CANoe. PFA&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="itsnewforme_2-1663928632521.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/194762i715E885728C0BC14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="itsnewforme_2-1663928632521.png" alt="itsnewforme_2-1663928632521.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;itsnewforme_2-1663928632521.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) I found a nxp post regarding the same issue. I'm attaching the link here&amp;nbsp;&lt;A href="https://community.nxp.com/t5/Digital-Signal-Controllers/Can-only-Transmit-over-the-Serial-Communication-Interface-when/m-p/1397417" target="_blank" rel="noopener"&gt;Link to Post&lt;/A&gt;&amp;nbsp;. Here you suggested to check for the write only once register.&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) In code I found out that the&amp;nbsp;MODRR0_SCI1RR register is written twice first in initGPIO() and then in Init_PIM(). PFA&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="itsnewforme_3-1663929111291.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/194764i45BA4A0A21D01630/image-size/medium?v=v2&amp;amp;px=400" role="button" title="itsnewforme_3-1663929111291.png" alt="itsnewforme_3-1663929111291.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;itsnewforme_3-1663929111291.png&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="itsnewforme_4-1663929189406.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/194765i2D2F8284B8A4BB78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="itsnewforme_4-1663929189406.png" alt="itsnewforme_4-1663929189406.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;itsnewforme_4-1663929189406.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;5) But, If I comment any one of the function Init_PIM() or InitGPIO(). I'm still facing the same issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly please check the code and application note once,&lt;/P&gt;&lt;P&gt;please let me know how to resolve this issue&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 10:44:23 GMT</pubDate>
    <dc:creator>itsnewforme</dc:creator>
    <dc:date>2022-09-23T10:44:23Z</dc:date>
    <item>
      <title>MC9S12ZVML128_LIN_BLDC_Sensorless Code Not Working in Standalone mode</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12ZVML128-LIN-BLDC-Sensorless-Code-Not-Working-in-Standalone/m-p/1527325#M18863</link>
      <description>&lt;P&gt;Hii, I'm using the code&amp;nbsp;MC9S12ZVML128_LIN_BLDC_Sensorless. I'm using MC9S12ZVML128 as Lin slave node and CANoe as Lin Master node.&lt;/P&gt;&lt;P&gt;I've not made any changes to the code. I'm using the code as it is.&lt;/P&gt;&lt;P&gt;I'm attaching the code as well as the application note provided by the code here.&lt;/P&gt;&lt;P&gt;Here are my observations.:&lt;/P&gt;&lt;P&gt;1. After flashing the code and running the code in debugg mode I'm able to control the speed of the motor using CANoe. PFA&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="itsnewforme_0-1663928388098.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/194760i9C5C2CE25760A8B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="itsnewforme_0-1663928388098.png" alt="itsnewforme_0-1663928388098.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;itsnewforme_0-1663928388098.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="itsnewforme_1-1663928407766.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/194761i637D68A94AB4A188/image-size/medium?v=v2&amp;amp;px=400" role="button" title="itsnewforme_1-1663928407766.png" alt="itsnewforme_1-1663928407766.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;itsnewforme_1-1663928407766.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) But, after flashing the code, removing the debugger and resetting the MCU, I'm not able to control the speed of the motor using CANoe. PFA&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="itsnewforme_2-1663928632521.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/194762i715E885728C0BC14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="itsnewforme_2-1663928632521.png" alt="itsnewforme_2-1663928632521.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;itsnewforme_2-1663928632521.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) I found a nxp post regarding the same issue. I'm attaching the link here&amp;nbsp;&lt;A href="https://community.nxp.com/t5/Digital-Signal-Controllers/Can-only-Transmit-over-the-Serial-Communication-Interface-when/m-p/1397417" target="_blank" rel="noopener"&gt;Link to Post&lt;/A&gt;&amp;nbsp;. Here you suggested to check for the write only once register.&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) In code I found out that the&amp;nbsp;MODRR0_SCI1RR register is written twice first in initGPIO() and then in Init_PIM(). PFA&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="itsnewforme_3-1663929111291.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/194764i45BA4A0A21D01630/image-size/medium?v=v2&amp;amp;px=400" role="button" title="itsnewforme_3-1663929111291.png" alt="itsnewforme_3-1663929111291.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;itsnewforme_3-1663929111291.png&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="itsnewforme_4-1663929189406.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/194765i2D2F8284B8A4BB78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="itsnewforme_4-1663929189406.png" alt="itsnewforme_4-1663929189406.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;itsnewforme_4-1663929189406.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;5) But, If I comment any one of the function Init_PIM() or InitGPIO(). I'm still facing the same issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly please check the code and application note once,&lt;/P&gt;&lt;P&gt;please let me know how to resolve this issue&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 10:44:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12ZVML128-LIN-BLDC-Sensorless-Code-Not-Working-in-Standalone/m-p/1527325#M18863</guid>
      <dc:creator>itsnewforme</dc:creator>
      <dc:date>2022-09-23T10:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12ZVML128_LIN_BLDC_Sensorless Code Not Working in Standalone mode</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12ZVML128-LIN-BLDC-Sensorless-Code-Not-Working-in-Standalone/m-p/1528017#M18867</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202343"&gt;@itsnewforme&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both writes are identical, so the second write can be ignored.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you power cycle the MCU?&lt;/P&gt;
&lt;P&gt;If so, can you attach the debugger back (without reset) and halt the execution to see where the code got stuck?&lt;/P&gt;
&lt;P&gt;Can you read the GDU registers?&lt;/P&gt;
&lt;P&gt;Is there a fault flag set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 08:53:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12ZVML128-LIN-BLDC-Sensorless-Code-Not-Working-in-Standalone/m-p/1528017#M18867</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-09-26T08:53:30Z</dc:date>
    </item>
  </channel>
</rss>

