<?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 Suggestion: RedState SCT should support multiple SM in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Suggestion-RedState-SCT-should-support-multiple-SM/m-p/568683#M19355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larsen on Sat Sep 05 00:59:36 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;They cannot be operated simultaneously but it is never the less relevant when your target has multiple functional modes between which you want to select during runtime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As of now, when I create a statemachine for SCT in RedState I _can_ define multiple statemachines (SM) in one project, but the code generated allways get into the same file and effectively overwrites previous code. Ok maybe it is possible to avoid this by having each statemachine in its own directory, but you will still be faced with muliple SM's having the same init function name: sct_fsm_init();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why not give the generated files and functions names which reflect the statemachine they are defining - using name decoration? So in stead of always call the file &lt;/SPAN&gt;&lt;I&gt;sct_fsm.c&lt;/I&gt;&lt;SPAN&gt; call it &lt;/SPAN&gt;&lt;I&gt;SM1_sct_fsm.c&lt;/I&gt;&lt;SPAN&gt; and not &lt;/SPAN&gt;&lt;I&gt;sct_fsm_init();&lt;/I&gt;&lt;SPAN&gt; but &lt;/SPAN&gt;&lt;I&gt;SM1_init();&lt;/I&gt;&lt;SPAN&gt; or something like that. In fact it appears that the software SM has this feature of multiple SM's- obviously I may say.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does'nt this make sense?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the best workaround for the present 7.9.0 version to have mutiple SCT SM's?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:45:58 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:45:58Z</dc:date>
    <item>
      <title>Suggestion: RedState SCT should support multiple SM</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Suggestion-RedState-SCT-should-support-multiple-SM/m-p/568683#M19355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larsen on Sat Sep 05 00:59:36 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;They cannot be operated simultaneously but it is never the less relevant when your target has multiple functional modes between which you want to select during runtime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As of now, when I create a statemachine for SCT in RedState I _can_ define multiple statemachines (SM) in one project, but the code generated allways get into the same file and effectively overwrites previous code. Ok maybe it is possible to avoid this by having each statemachine in its own directory, but you will still be faced with muliple SM's having the same init function name: sct_fsm_init();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why not give the generated files and functions names which reflect the statemachine they are defining - using name decoration? So in stead of always call the file &lt;/SPAN&gt;&lt;I&gt;sct_fsm.c&lt;/I&gt;&lt;SPAN&gt; call it &lt;/SPAN&gt;&lt;I&gt;SM1_sct_fsm.c&lt;/I&gt;&lt;SPAN&gt; and not &lt;/SPAN&gt;&lt;I&gt;sct_fsm_init();&lt;/I&gt;&lt;SPAN&gt; but &lt;/SPAN&gt;&lt;I&gt;SM1_init();&lt;/I&gt;&lt;SPAN&gt; or something like that. In fact it appears that the software SM has this feature of multiple SM's- obviously I may say.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does'nt this make sense?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the best workaround for the present 7.9.0 version to have mutiple SCT SM's?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:45:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Suggestion-RedState-SCT-should-support-multiple-SM/m-p/568683#M19355</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion: RedState SCT should support multiple SM</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Suggestion-RedState-SCT-should-support-multiple-SM/m-p/568684#M19356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DF9DQ on Sat Sep 05 11:55:37 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;When you are in the RedState editor, you will see a "State Machine Settings" tab next to the "State Table" tab. There you can change the file names for the current state machine, and also change the prefix of the created init function.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:45:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Suggestion-RedState-SCT-should-support-multiple-SM/m-p/568684#M19356</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion: RedState SCT should support multiple SM</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Suggestion-RedState-SCT-should-support-multiple-SM/m-p/568685#M19357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larsen on Sat Sep 05 13:00:35 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Perfect, just what I needed but didn't see.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:45:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Suggestion-RedState-SCT-should-support-multiple-SM/m-p/568685#M19357</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:45:59Z</dc:date>
    </item>
  </channel>
</rss>

