Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Problem of LCD

Altera_Forum
Honored Contributor II
1,603 Views

Hi, 

 

Do you know about this problem? 

How to resolv this problem? 

 

Error: Bad or corrupt 'class.ptf' file for module LCD 

 

Required PTF section: 

 

'CLASS'  

 

was not found in PTF section/file: 

 

' ' 

 

 

 

Error in processing. System NOT successfully generated.
0 Kudos
11 Replies
Altera_Forum
Honored Contributor II
879 Views

Examine if you have placed LCD component in nios2's component directory, for example: c:\altera\kits\nios2\component.

0 Kudos
Altera_Forum
Honored Contributor II
879 Views

Hi,kvinna 

 

Is the LCD is a custom LCD?
0 Kudos
Altera_Forum
Honored Contributor II
879 Views

Yes, the LCD is a custom LCD. 

 

seu_xugh, I have placed the lcd component to NiosII5.0 directory altera\kits\nios2\component. But I still get the problem.
0 Kudos
Altera_Forum
Honored Contributor II
879 Views

According the error Error: Bad or corrupt 'class.ptf' file for module LCD, I think the class.ptf of LCD is not created correctly. Try to use "new components" to create the class.ptf. I got the trouble,too. See post 2 lcd (http://www.niosforum.com/forum/index.php?act=st&f=2&t=1984)

0 Kudos
Altera_Forum
Honored Contributor II
879 Views

kvinna, 

 

I agree with what mountain8848 said. If you have problem during customing LCD component, please Email me, I can send you a custom LCD component on up3 board, hope it can help you a bit. 

 

Sorry, I do not know how to attach a file in the forum. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif
0 Kudos
Altera_Forum
Honored Contributor II
879 Views

Thank you, all of you. I have got an answer from SLS support, they said they made a mistake. Thay have already changed new class.ptf file of LCD on their home page.

0 Kudos
Altera_Forum
Honored Contributor II
879 Views

I have downloaded all of the new all of files from SLSCORP home page. But I still get this problem. I have not any idea. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/mad.gif

0 Kudos
Altera_Forum
Honored Contributor II
879 Views

mountain8848, 

 

You said you get the same problem. Have you resolved this problem by create a new LCD component?
0 Kudos
Altera_Forum
Honored Contributor II
879 Views

No yet, I am working on a custom board with LCD share the system bus with SRAM, network.. 

And I already connect the A0 of LCD to A0 of system bus. And the timing of LCD is not correctly set in the LCD module.
0 Kudos
Altera_Forum
Honored Contributor II
879 Views

kvinna, 

 

I used LCD components from SLS and tested it ok. An error similar to you ever occured once when I placed the component in the same directory as my Qii project. But when I placed it under the altera component directory, the error disappers. 

 

The problem in deed is that the LCD can not used as stdout, so we can not use printf to send message to it. 

 

I am working under QII5.0+NiosII5.0
0 Kudos
Altera_Forum
Honored Contributor II
879 Views

Hi, 

 

I want to make my own lcd module, but I have no idea how to make a interface of my lcd module to avalon bus. 

 

I use 8*2 lcd. What ports does Avalon interface have? Can give some idea? 

 

Thank you.
0 Kudos
Reply