<?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 Is there a way to switch between applications based on the state of a digital switch input ? in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Is-there-a-way-to-switch-between-applications-based-on-the-state/m-p/2094492#M10251</link>
    <description>&lt;P&gt;I am using the UCANS32K146 development board to read UART and then transmit that data in CAN messages.&lt;/P&gt;&lt;P&gt;I have had to develop two different applications, because there are two versions of UART packets sent by the devices sending the UART data&lt;/P&gt;&lt;P&gt;I was hoping to use a switch on a digital input that selects which application is used when the UCANS32K146 is powered up/reset.&lt;/P&gt;&lt;P&gt;Is there a way to switch between applications based on the state of a digital switch input ?&lt;/P&gt;&lt;P&gt;The reason for having two applications is shown below.&amp;nbsp; Differences include the number of UART bytes, the data and datatypes within the UART packet and the packing of the UART data into CAN messages.&lt;/P&gt;&lt;P&gt;Application 1 reads and processes 10 bytes or UART data...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johngreenjets_2-1746781048153.png" style="width: 724px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336898iC60B99ADC75F8060/image-dimensions/724x93?v=v2" width="724" height="93" role="button" title="johngreenjets_2-1746781048153.png" alt="johngreenjets_2-1746781048153.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Application 2 reads and processes 22 bytes or UART data...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johngreenjets_3-1746781086776.png" style="width: 538px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336899iB2A31FC41584B7D7/image-dimensions/538x401?v=v2" width="538" height="401" role="button" title="johngreenjets_3-1746781086776.png" alt="johngreenjets_3-1746781086776.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 May 2025 09:07:49 GMT</pubDate>
    <dc:creator>johngreenjets</dc:creator>
    <dc:date>2025-05-09T09:07:49Z</dc:date>
    <item>
      <title>Is there a way to switch between applications based on the state of a digital switch input ?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Is-there-a-way-to-switch-between-applications-based-on-the-state/m-p/2094492#M10251</link>
      <description>&lt;P&gt;I am using the UCANS32K146 development board to read UART and then transmit that data in CAN messages.&lt;/P&gt;&lt;P&gt;I have had to develop two different applications, because there are two versions of UART packets sent by the devices sending the UART data&lt;/P&gt;&lt;P&gt;I was hoping to use a switch on a digital input that selects which application is used when the UCANS32K146 is powered up/reset.&lt;/P&gt;&lt;P&gt;Is there a way to switch between applications based on the state of a digital switch input ?&lt;/P&gt;&lt;P&gt;The reason for having two applications is shown below.&amp;nbsp; Differences include the number of UART bytes, the data and datatypes within the UART packet and the packing of the UART data into CAN messages.&lt;/P&gt;&lt;P&gt;Application 1 reads and processes 10 bytes or UART data...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johngreenjets_2-1746781048153.png" style="width: 724px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336898iC60B99ADC75F8060/image-dimensions/724x93?v=v2" width="724" height="93" role="button" title="johngreenjets_2-1746781048153.png" alt="johngreenjets_2-1746781048153.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Application 2 reads and processes 22 bytes or UART data...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johngreenjets_3-1746781086776.png" style="width: 538px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336899iB2A31FC41584B7D7/image-dimensions/538x401?v=v2" width="538" height="401" role="button" title="johngreenjets_3-1746781086776.png" alt="johngreenjets_3-1746781086776.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 09:07:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Is-there-a-way-to-switch-between-applications-based-on-the-state/m-p/2094492#M10251</guid>
      <dc:creator>johngreenjets</dc:creator>
      <dc:date>2025-05-09T09:07:49Z</dc:date>
    </item>
  </channel>
</rss>

