<?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>topic Re: Flash System Parameters Do Not Change in Kinetis Motor Suite</title>
    <link>https://community.nxp.com/t5/Kinetis-Motor-Suite/Flash-System-Parameters-Do-Not-Change/m-p/820873#M671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see an issue with your approach. Seems like it should work. One thing I would recommend is taking a look in the main.c file at the block inside&amp;nbsp;if (SoftReset != 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a couple commands that disable the ISR and flush a bad sample just to ensure that the system is paused while performing the recalculation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Aug 2018 00:14:50 GMT</pubDate>
    <dc:creator>linestream-adam</dc:creator>
    <dc:date>2018-08-24T00:14:50Z</dc:date>
    <item>
      <title>Flash System Parameters Do Not Change</title>
      <link>https://community.nxp.com/t5/Kinetis-Motor-Suite/Flash-System-Parameters-Do-Not-Change/m-p/820872#M670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my software, I have a parameter tuning thought. This is in case the motor I am controlling changes. Therefore, as long as KMS is in the IDLE state, and the motor is not being controlled, I let the master controller send me a list of motor parameters via SPI to store into the flash system params. I do this, and then recall DRV_INIT(). This does not seem to cause any problems, and most parameters change, however, I have identified 2 that do not, and want to be sure I am taking the correct steps to change parameters on the fly like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, I am just calling DRV_Init() again after setting the new flashSysParams. Is there anything else I need to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 2 that do not change are encoder pole pairs, as well as TRAJVEL Acceleration Limit, this process does not seem to work for these two parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to do anything extra besides calling DRV_Init() after setting the flashSysParams value to change some of these parameters, such as the 2 listed above?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I am doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flashSysParams-&amp;gt;motorParams.polePairs = tuning_params[PARAM_MOTOR_POLE_PAIRS].tuningValue;&lt;/P&gt;&lt;P&gt;flashSysParams-&amp;gt;trajvelCfg.limitAcc = _LQ(tuning_params[PARAM_ACCEL_LIM].tuningValue/FULL_SCALE_SPEED_RPM);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Init Platform Independent Motor Commander Core */&lt;BR /&gt; DRV_init(&amp;amp;flashSysParams);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 20:27:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Motor-Suite/Flash-System-Parameters-Do-Not-Change/m-p/820872#M670</guid>
      <dc:creator>derekcook</dc:creator>
      <dc:date>2018-08-23T20:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Flash System Parameters Do Not Change</title>
      <link>https://community.nxp.com/t5/Kinetis-Motor-Suite/Flash-System-Parameters-Do-Not-Change/m-p/820873#M671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see an issue with your approach. Seems like it should work. One thing I would recommend is taking a look in the main.c file at the block inside&amp;nbsp;if (SoftReset != 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a couple commands that disable the ISR and flush a bad sample just to ensure that the system is paused while performing the recalculation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 00:14:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Motor-Suite/Flash-System-Parameters-Do-Not-Change/m-p/820873#M671</guid>
      <dc:creator>linestream-adam</dc:creator>
      <dc:date>2018-08-24T00:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Flash System Parameters Do Not Change</title>
      <link>https://community.nxp.com/t5/Kinetis-Motor-Suite/Flash-System-Parameters-Do-Not-Change/m-p/820874#M672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried moving everything in that block run when I change the parameters. Any idea why the TRAJVEL AccLim would not be changing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 18:25:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Motor-Suite/Flash-System-Parameters-Do-Not-Change/m-p/820874#M672</guid>
      <dc:creator>derekcook</dc:creator>
      <dc:date>2018-08-24T18:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Flash System Parameters Do Not Change</title>
      <link>https://community.nxp.com/t5/Kinetis-Motor-Suite/Flash-System-Parameters-Do-Not-Change/m-p/820875#M673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The trajvel.config.limitAcc variable is always set to the value in&amp;nbsp;user.output.drvCommand.limitAcc when the slow ISR is called. The value&amp;nbsp;user.output.drvCommand.limitAcc is derived from&amp;nbsp;user.command.limitAcc. That is expected behavior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Aug 2018 00:11:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Motor-Suite/Flash-System-Parameters-Do-Not-Change/m-p/820875#M673</guid>
      <dc:creator>linestream-adam</dc:creator>
      <dc:date>2018-08-25T00:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Flash System Parameters Do Not Change</title>
      <link>https://community.nxp.com/t5/Kinetis-Motor-Suite/Flash-System-Parameters-Do-Not-Change/m-p/820876#M674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Adam,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's what the problem was. This would be the same with the IqRefMin and Max as well&amp;nbsp; - it is set to the user.command each slow tick. As well as the jerk limit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 13:22:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Motor-Suite/Flash-System-Parameters-Do-Not-Change/m-p/820876#M674</guid>
      <dc:creator>derekcook</dc:creator>
      <dc:date>2018-08-29T13:22:46Z</dc:date>
    </item>
  </channel>
</rss>

