Forum Discussion
Altera_Forum
Honored Contributor
21 years agoProblem of LCD
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.11 Replies
- Altera_Forum
Honored Contributor
Examine if you have placed LCD component in nios2's component directory, for example: c:\altera\kits\nios2\component.
- Altera_Forum
Honored Contributor
Hi,kvinna
Is the LCD is a custom LCD? - Altera_Forum
Honored Contributor
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. - Altera_Forum
Honored Contributor
According the error
, 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)Error: Bad or corrupt 'class.ptf' file for module LCD - Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
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.
- Altera_Forum
Honored Contributor
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
- Altera_Forum
Honored Contributor
mountain8848,
You said you get the same problem. Have you resolved this problem by create a new LCD component? - Altera_Forum
Honored Contributor
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. - Altera_Forum
Honored Contributor
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