A significant number of customers have been asking for a code example made in CW to enable K70's LCDC using TWR-LCD-RGB and eGUI,a s most of you know there are two code examples for AN4588, one was created using eGUI + IAR 6.3 and the other one was created using PEG+ + CodeWarrior, however those customer who already purchased the CW license were trying to figure out why we don't have a code example using our own software, well; we do have that code example, I'm posting it here for all of those interested in the K70 LCD graphic controller capabilities.
Original Attachment has been moved to: TWR-K70FN120M-CW-eGUI_3.0.zip
Hello,
I Am using code-warrior 10.6 with k60 cotroller.
i have c code of LCD KD 20070 which i interface with above controller.
but it showing same error..plse can anybody tell me what should i do?..
I attache c code of LCD ..
How i convert it into code warrior 10.6.????.
Hello everyone
I am trying to build the egui demo using CW 10.5 and MQX 4.0.2, so i am using some of the files above (egui 3.0 v1.zip).
I have imported projects to CW (BSP project, PSP project, etc.) following instructions of page 7 in the file http://www.freescale.com/files/soft_dev_tools/doc/support_info/FSL_MQX_Getting_Started.pdf
But when i try to build all i got these two errors.
It is the first time i use this version of codewarrior, so i don't know if i am missing something or if i have done something wrong.
Thank you in advance for your reply
Regards
Elyo
Hello,
The Project can't find the MQX libraries. bsp.a, psp.a aren't found. If you have built the MQX libraries for K70 and CodeWarrior, you must review the paths in your eGUI project. Some projects use environment variable "MQX_PATH”, but can also be defined with a variable in your project settings, MQX_LOC or similar.
Best Regards,
Luis
Hello again, i have built the eGui demo without errors, now I am trying to run it (image below).
When i run it i don't see anything on screen, is that normal? if that is okay... what should i do next to display a simple "hello world" on screen?
Regards
Elyo
What is the output in the serial port? Have you added the modifications to MQX user_config.h and rebuild bsp? Look for user_config.h in this threat.
Regards,
Luis
Hello, this is what i get form serial port
I am using user_config.h with modifications
MQX_USE_LWTIMER 1
MQX_ROM_VECTORS 0
I am also having a problem while applying MQX 4.0.2.1 and MQX 4.0.2.2 patches, i have unzipped the patch files in the MQX folder and this is what i get:
Regards
Hello,
The error in the serial port is coming probably because fails installing the interrupt vector or init the timer. I suggest to rebuild bsp and psp with the modified user_config.h. And you could use MQX 4.1.1
Best Regards,
Luis
I have managed to debug the project as well but manage to receive the below messages:
Hello from LCD demo
eGUI/D4D initialization failed
Any ideas on how i could initialize the gui or how to trace the problem?
Hello,
Are you building the MQX libraries with the user_config.h provided?
Try to debug into the code, if the initialization fails installing the LCD isr is because you're missing #define MQX_ROM_VECTORS 0
Is the case?
Luis
Hi Luis,
Thank you for your reply. I am building with the user_config.h from the project and i have defined the MQX_ROM_VECTORS 0 . I have removed the coment for the LCDC_DEBUG which is defined as 0 and made other little changes but still haven't found the issue. How can I run debug the code so that i can follow each instruction to see where the D4D LCD Init fails? Thanks!
Hi Yiber,
Are you using the twrk70f120m_Int_Flash_DDRData_Debug configuration? I was using twrk70120m_Int_Flash_SramData_Debug configuration, and it showed the error you have because the application did not have enough ram.
Hello,
Yes, you have to use twrk70f120m_Int_Flash_DDRData_Debug configuration. Frame buffer is in DDR.
Luis
Hi,
Yes, I am using twrk70f120m_Int_Flash_DDRData_Debug configuration and i manage to debug the board and get the above messages from the terminal, where D4D FALSE shows the state of D4D_Init function. Do you still think this has anything to do with the mqx installation? Could you also please send me a demo project for TWR_K70_LCD which you have successfully debugged in the past? Thank you very much for your help!
When debugging you can step into the D4D_Init() procedure with F5 (Step Into) and follow the code through each procedure with F5 until you reach the error. This should help determine the cause of the error.
You have it in this threat (Not the one in the first post). I verified with CW10.5 + MQX 4.0.2
Luis
Sorry for asking too many questions but i now think the patch file is the problem because the project requires mqx4.0.2.2. While i am trying to add the patches to the mqx i get the below failures on the comand window:
Any idea why that comes up?
Hi,
Just unzip the patch file in the MQX folder as said in the Release notes:
Extract the content of the zip file to the MQX 4.0.2 installation. The default installation directory is C:\Freescale\Freescale_MQX_4_0.
Luis
Hi,
With the debugger, you can step-into the functions to watch where the error is.
But demo should work out of the box, It is working for me and confirmed by Randy. Be sure, you have the right sw installed.
A.Install Codewarrior for MCU v10.5
Download from www.freescale.com/codewarrior
1. Installation guide : http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-MCU10&fpsp=1&tab=Design_Tools_Tab
2. Install the patches available in the update repository and the MQX TAD plugin. Follow the instructions in this document to update your CodeWarrior installation :
3. http://cache.freescale.com/files/soft_dev_tools/doc/support_info/CW_MCU_SP_QS.pdf?fpsp=1&WT_TYPE=Qui... Reference Guides&WT_VENDOR=FREESCALE&WT_FILE_FORMAT=pdf&WT_ASSET=Documentation
B. Install MQX 4.0.2 and the MQX 4.0.2.1 and MQX 4.0.2.2 patches
1. Download from www.freescale.com/mqx
2. Patch installation instructions are in the patch zip files
Luis
Hi All,
I also, am trying without success for 3 weeks, to build this demo for CW10.5, MQX 4.0.2, eGUI 3.0, K70, LCD-RGB. I open a new workspace, add the K70 BSP, then I import the demo code into the workspace without coping files into workspace. I copy user_config.h to \Freescale\Freescale_MQX_4_0\config\twrk70f120m. I rebuild the MQX BSP. Then when building demo, I get a large number of errors ranging from 16 to several hundred.
I do have several other applications for K53, K60, & K70 working in MQX all without any graphics, but clearly do not understand what I should be doing for the eGUI demo.
The build errors appear to require modification of the "search path" for the compiler to find several files such as d4d.h, mqx.h, common_files/d4d_private.h, etc. but several hours of attempts to add required paths have not been successful.
I would greatly appreciate any advice to get any simple eGUI demo application working.
Thanks,
Randy Bulloch
I