AnsweredAssumed Answered

Help with MQX + MCF52235 and character LCD

Question asked by Maciej Bojczuk on Sep 8, 2011
Latest reply on Sep 9, 2011 by David E Seymour

Hello,

I connect an character (2x16) lcd to my MCF52235 to PORTAN. I want to use it with mqx so, I wrote a additionale device driver for my lcd (attached file) but I've same problems with my driver. I'm using ioctl function to control my lcd like return to home, clear display, etc. Data to display is writing via write(..) function, please see below:

 

void Main_task(uint_32 initial_data){    if(IO_OK != _textlcd_install("lcd:"))           printf("Error opening lcd\n");             if(NULL==(lcd_file = fopen("lcd:", NULL)))           printf("Opening LCD device faild\n");   for (;;)    {           ioctl(lcd_file, TEXT_LCD_HOME, NULL);  <= this line provide problem, break curent task           write(lcd_file, "TEST", 0);              _time_delay(10);   }}

 

 

Instal and open and write function works great but I've problem with ioctl function. when I call this function the task was exited, and I don't know why.

Please help me with this.

 

Regards,

Maciek

Outcomes