AnsweredAssumed Answered

fopen always return NULL (AN3905)

Question asked by Ondrej Machek on Apr 15, 2013
Latest reply on Apr 16, 2013 by Ondrej Machek

Hi,

 

I would like to learn how to work with MQX. I am trying write basic example  "Writing your first application AN3905".

I have problem in the function InitializeIO(); fopen function always return NULL. It is doesn't make sense continue.

What are reasons (What can be) to return NULL in the function fopen?

 

 

const uint_32 output_set[] =

  {

  LED_1 | GPIO_PIN_STATUS_0,

  LED_2 | GPIO_PIN_STATUS_0,

  LED_3 | GPIO_PIN_STATUS_0,

  LED_4 | GPIO_PIN_STATUS_0,

  GPIO_LIST_END

  };

  output_port = fopen("gpio:write", (char_ptr) &output_set);

 

 

Thank you.

 

Ondra

Outcomes