<?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 New to MQX in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/New-to-MQX/m-p/169354#M1790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im new with MQX, so I'm trying to learn about the system an test the available examples.&lt;/P&gt;&lt;P&gt;After some trainig I've followed AN3905 in order to learn how to create my first MQX application.&lt;/P&gt;&lt;P&gt;I could compile and program the code but when I run the application nothing happens with leds and the debug message is telling&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Could not create LED1_TASK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Could not create LED2_TASK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Could not create LED3_TASK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Could not create LED4_TASK&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help me to debug the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gabriel&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jan 2010 04:46:07 GMT</pubDate>
    <dc:creator>gos_arg</dc:creator>
    <dc:date>2010-01-22T04:46:07Z</dc:date>
    <item>
      <title>New to MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/New-to-MQX/m-p/169354#M1790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im new with MQX, so I'm trying to learn about the system an test the available examples.&lt;/P&gt;&lt;P&gt;After some trainig I've followed AN3905 in order to learn how to create my first MQX application.&lt;/P&gt;&lt;P&gt;I could compile and program the code but when I run the application nothing happens with leds and the debug message is telling&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Could not create LED1_TASK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Could not create LED2_TASK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Could not create LED3_TASK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Could not create LED4_TASK&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help me to debug the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gabriel&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 04:46:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/New-to-MQX/m-p/169354#M1790</guid>
      <dc:creator>gos_arg</dc:creator>
      <dc:date>2010-01-22T04:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: New to MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/New-to-MQX/m-p/169355#M1791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post your code so we can try to help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 12:33:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/New-to-MQX/m-p/169355#M1791</guid>
      <dc:creator>CarlFST60L</dc:creator>
      <dc:date>2010-01-22T12:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: New to MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/New-to-MQX/m-p/169356#M1792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;FONT face="Courier" size="1"&gt;Could be on this lines. on the tasks.c file&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;
_task_id task_id;printf("\n Initialize IO \n");InitializeIO();task_id = _task_create(0, LED1_TASK, 0);if (task_id == MQX_NULL_TASK_ID){printf("\n Could not create LED1_TASK\n");}else{printf("\n LED1_TASK created \n");}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="1"&gt;Check the ioDriver.c if you inserted the GPIO adresses for your board.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="1"&gt;These are for the TWRMCF51CN&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;#define LED_1 (GPIO_PORT_TE | GPIO_PIN3)&lt;BR /&gt;#define LED_2 (GPIO_PORT_TG | GPIO_PIN5)&lt;BR /&gt;#define LED_3 (GPIO_PORT_TE | GPIO_PIN5)&lt;BR /&gt;#define LED_4 (GPIO_PORT_TH | GPIO_PIN3)&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;FONT face="Courier" size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:17:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/New-to-MQX/m-p/169356#M1792</guid>
      <dc:creator>LeoPucci</dc:creator>
      <dc:date>2020-10-29T09:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: New to MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/New-to-MQX/m-p/169357#M1793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've posted a service request to Freescale to and received an answer telling me that CW6.3 has a issue to work with V1 and MQX.&lt;/P&gt;&lt;P&gt;They suggest me to roll back to CW6.2.&lt;/P&gt;&lt;P&gt;I'll do it and let you know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jan 2010 05:08:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/New-to-MQX/m-p/169357#M1793</guid>
      <dc:creator>gos_arg</dc:creator>
      <dc:date>2010-01-23T05:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: New to MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/New-to-MQX/m-p/169358#M1794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Check the appendix chapters for the source code and see if it works. Maybe it´s some line that you forgot.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jan 2010 07:48:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/New-to-MQX/m-p/169358#M1794</guid>
      <dc:creator>LeoPucci</dc:creator>
      <dc:date>2010-01-23T07:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: New to MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/New-to-MQX/m-p/169359#M1795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="long_text"&gt;&lt;SPAN&gt;Hello gentlemen.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I'm having doubts as to create a routine for reading Inputs&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;&lt;FONT color="#999999"&gt;&lt;EM&gt;//&amp;nbsp;--&amp;nbsp;Função&amp;nbsp;Inicializa&amp;nbsp;IO&lt;BR /&gt;boolean&amp;nbsp;InitializeIO(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;const&amp;nbsp;uint_32&amp;nbsp;output_set[]&amp;nbsp;=&lt;BR /&gt;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;LED_1&amp;nbsp;|&amp;nbsp;GPIO_PIN_STATUS_0,//&amp;nbsp;Pino&amp;nbsp;Inicializa&amp;nbsp;em&amp;nbsp;"0"&amp;nbsp;após&amp;nbsp;reset&lt;BR /&gt;&amp;nbsp;&amp;nbsp;LED_2&amp;nbsp;|&amp;nbsp;GPIO_PIN_STATUS_0,//&amp;nbsp;Pino&amp;nbsp;Inicializa&amp;nbsp;em&amp;nbsp;"0"&amp;nbsp;após&amp;nbsp;reset&lt;BR /&gt;&amp;nbsp;&amp;nbsp;LED_3&amp;nbsp;|&amp;nbsp;GPIO_PIN_STATUS_0,//&amp;nbsp;Pino&amp;nbsp;Inicializa&amp;nbsp;em&amp;nbsp;"0"&amp;nbsp;após&amp;nbsp;reset&lt;BR /&gt;&amp;nbsp;&amp;nbsp;LED_4&amp;nbsp;|&amp;nbsp;GPIO_PIN_STATUS_0,//&amp;nbsp;Pino&amp;nbsp;Inicializa&amp;nbsp;em&amp;nbsp;"0"&amp;nbsp;após&amp;nbsp;reset&lt;BR /&gt;&amp;nbsp;&amp;nbsp;GPIO_LIST_END&lt;BR /&gt;&amp;nbsp;&amp;nbsp;};&lt;BR /&gt;/*&amp;nbsp;Open&amp;nbsp;and&amp;nbsp;set&amp;nbsp;port&amp;nbsp;TC&amp;nbsp;as&amp;nbsp;output&amp;nbsp;to&amp;nbsp;drive&amp;nbsp;LEDs&amp;nbsp;*/&lt;BR /&gt;output_port&amp;nbsp;=&amp;nbsp;fopen("gpio:write",&amp;nbsp;(char_ptr)&amp;nbsp;&amp;amp;output_set);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;if&amp;nbsp;(output_port)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ResetOutputs();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&lt;BR /&gt;return&amp;nbsp;(output_port!=NULL);&lt;BR /&gt;}&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;[\code]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="long_text"&gt;&lt;SPAN&gt;Based on code AN3905 "Writing Your First Application MQX" I would like to know:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;From what I understand it creates a vector of constant 32-bit to control only 4 bits?&lt;/SPAN&gt; &lt;SPAN&gt;is it?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;In the first line we have the code "output_set.&lt;/SPAN&gt; &lt;SPAN&gt;To set these same IO's entry as I use "input_set?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;It is possible to set this dynamically?&lt;/SPAN&gt; &lt;SPAN&gt;So I could multiplex IOs.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;What is the procedure for writing a routine Input?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ricardo Franco - From Brazil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Feb 2010 02:48:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/New-to-MQX/m-p/169359#M1795</guid>
      <dc:creator>RicardoFranco</dc:creator>
      <dc:date>2010-02-13T02:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: New to MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/New-to-MQX/m-p/169360#M1796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="long_text"&gt;&lt;SPAN&gt;From what I understand it creates a vector of constant 32-bit to control only 4 bits?&lt;/SPAN&gt; &lt;SPAN&gt;is it?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Yes, 4x 32 bits to control 4 bits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="long_text"&gt;&lt;SPAN&gt;In the first line we have the code "output_set.&lt;/SPAN&gt; &lt;SPAN&gt;To set these same IO's entry as I use "input_set?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="long_text"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="long_text"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="long_text"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="long_text"&gt;&lt;SPAN&gt;No. In the application, you can open the same set of pins for reading. You must first close already opened output-pins file and then open the next file with the same pins.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="long_text"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class="long_text"&gt;&lt;SPAN&gt;What is the procedure for writing a routine Input?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="long_text"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="long_text"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="long_text"&gt;&lt;SPAN&gt;It is easy, you ask GPIO driver to sample the data on pins to your structure (which must be in the RAM). Then, you will check scan your structure of pins and apply testing mask&lt;/SPAN&gt;&lt;/SPAN&gt; GPIO_PIN_STATUS to each pin as you can see in examples/gpio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 21:58:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/New-to-MQX/m-p/169360#M1796</guid>
      <dc:creator>JuroV</dc:creator>
      <dc:date>2010-02-25T21:58:19Z</dc:date>
    </item>
  </channel>
</rss>

