<?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>MQX Software Solutions中的主题 Re: Error ADC</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Error-ADC/m-p/220717#M5820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it isn't. It's not a problem of the stack.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it's really strange. When I execute fopen I always get NULL but after, I can use perfectly the ADC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Have you got any idea about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Sep 2010 15:52:05 GMT</pubDate>
    <dc:creator>Awera</dc:creator>
    <dc:date>2010-09-22T15:52:05Z</dc:date>
    <item>
      <title>Error ADC</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Error-ADC/m-p/220713#M5816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with 52259 chip and its M52259EVB board.&lt;/P&gt;&lt;P&gt;I am trying to expand flexcan example with adc extra functions.&lt;/P&gt;&lt;P&gt;I test my evb board with adc example. And I have check flexcan example. All it is ok.&lt;/P&gt;&lt;P&gt;But when I try use to code of first code into second code example I have problems.&lt;/P&gt;&lt;P&gt;I can not open ADC device "f = fopen(MY_ADC, (const char*)&amp;amp;adc_init);" in flexcan code.&lt;/P&gt;&lt;P&gt;But I can open the channel:&amp;nbsp; "f_ch1 = fopen(MY_ADC "first", (const char*)&amp;amp;adc_channel_param1);" in flexcan code.&lt;/P&gt;&lt;P&gt;In fact, i can send data trough can but always f is empty, its value is NULL. I don't understant it. I can't open the device but instead i can open the channel.&lt;/P&gt;&lt;P&gt;The same code works in the adc example code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Sep 2010 15:48:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Error-ADC/m-p/220713#M5816</guid>
      <dc:creator>Awera</dc:creator>
      <dc:date>2010-09-06T15:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error ADC</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Error-ADC/m-p/220714#M5817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you paste code here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Sep 2010 17:16:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Error-ADC/m-p/220714#M5817</guid>
      <dc:creator>JuroV</dc:creator>
      <dc:date>2010-09-06T17:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error ADC</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Error-ADC/m-p/220715#M5818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;void Adc_task(uint_32 initial_data){const ADC_INIT_STRUCT adc_init = {    ADC_RESOLUTION_DEFAULT,     };const ADC_INIT_CHANNEL_STRUCT adc_channel_param1 = {    BSP_ADC_CH_POT,     ADC_CHANNEL_MEASURE_LOOP | ADC_CHANNEL_START_TRIGGERED,      1,                 0,                 30000,            0x10000,            10,                 MY_TRIGGER,     #if MQX_USE_LWEVENTS    &amp;amp;event_adc,    0x01            #endif};FILE_PTR  f;FILE_PTR  f_ch1;ADC_RESULT_STRUCT data;f = fopen(MY_ADC, (const char*)&amp;amp;adc_init);if(f == NULL);{    printf("\n Opening ADC driver failed.Error Code.\n",f);    _task_block();   }f_ch1 = fopen(MY_ADC "first", (const char*)&amp;amp;adc_channel_param1);if(f_ch1 == NULL)    {            printf("Opening channel 1 failed\n");        _task_block();    }ioctl(f, IOCTL_ADC_FIRE_TRIGGER, (pointer) MY_TRIGGER);while(TRUE){}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I can send data trough bus can but always f is empty, its value is NULL. I can't open adc device but i can open the first channel of ADC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 14:16:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Error-ADC/m-p/220715#M5818</guid>
      <dc:creator>Awera</dc:creator>
      <dc:date>2010-09-07T14:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error ADC</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Error-ADC/m-p/220716#M5819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did not your task stack overflow?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 22:39:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Error-ADC/m-p/220716#M5819</guid>
      <dc:creator>JuroV</dc:creator>
      <dc:date>2010-09-21T22:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error ADC</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Error-ADC/m-p/220717#M5820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it isn't. It's not a problem of the stack.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it's really strange. When I execute fopen I always get NULL but after, I can use perfectly the ADC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Have you got any idea about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 15:52:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Error-ADC/m-p/220717#M5820</guid>
      <dc:creator>Awera</dc:creator>
      <dc:date>2010-09-22T15:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error ADC</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Error-ADC/m-p/220718#M5821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;if(f == NULL);  // &amp;lt;--- mistake, redundant semicolon
{    printf("\n Opening ADC driver failed.Error Code.\n",f);    _task_block();   }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 16:40:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Error-ADC/m-p/220718#M5821</guid>
      <dc:creator>JuroV</dc:creator>
      <dc:date>2010-09-22T16:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error ADC</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Error-ADC/m-p/220719#M5822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm a dummy...I have wasted too much time thinking wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much JuroV&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>Wed, 22 Sep 2010 16:56:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Error-ADC/m-p/220719#M5822</guid>
      <dc:creator>Awera</dc:creator>
      <dc:date>2010-09-22T16:56:52Z</dc:date>
    </item>
  </channel>
</rss>

