I want to test the TWR-LCD module connected to a TWR-MCF52259 (and I want the MCF52259 controlling the TFT panel).
I have downloaded Freescale_embedded_GUI_SW.zip from freescale.com and I have built
the following project:
Freescale_embedded_GUI_SW\_Official_Demos\EGUI_D4D_Demo\TWR_MCF52259\BareMetal\CW_10_1
I touch nothing from the project so it is supposed to communicate with the TFT controller using the flexbus-16 bits.
I download it to the TWR-MCF52259 without problems but the TFT screen is always blank no matter how I set the SW1 (from the TWR-LCD).
Nothing changes in the TFT.
I have tried several SW1 configurations without success. The one I think should work is:
1 (SW1.1)
0
1
1
X
0
1
X (SW1.8)
Is that configuration ok?
May be is there a jumper I have to change in the TWR-MCF52259?
Any help would be appreciated.
hi Clark!!! could u tell me how to configure the pins if i want to work in 16b flexbus mode and in this mode how many pins am i need because in the examples they dont configure the WR pin and the CS , DC and RESET pins they use it in the gpio mode and FB_AD[0..15] in flexbus mode , im a little bit confused about the pins mode could u please make it clear for me !!!! thank u !!!
The switch settings you are specified should work correctly for using the TWR-MCF52259. As you have indicated there are a few "don't care" settings. The specific setting I use are (On, Off, On, Off, On, Off, On, Off) as it's easy to remember and to double-check.
I have two suggestions for you to try:
1) Make sure the Tower System is connected correctly and completely.
- The TWR-LCD needs to be completely attached to Primary TWR-ELEV (you should not be able to see any gold pins between the TWR-LCD and the TWR-ELEV). This is a common issue, since the TWR-LCD requires quite a bit of pressure to fully attach, Just be carefull to not press directly on the glass LCD.
- Double-check that all the primary edges are aligned and correctly inserted into the Primary TWR-ELEV.
2) The TWR-LCD comes shipped with an example application loaded onto the on-board MCU. This application will impact the communication to the TWR-LCD from an MCU in the Tower System regardless of the switch settings. You need to clear the application preloaded onto the JM128 device. I would guess this is most likely the issue you are experiencing.
Please follow the below steps for easily clearing the application from the on-board JM128 MCU using the built-in bootloader.
HI,
I am also trying to flash this .s19 file in the mcf51jm128 controller on a twr-lcd board. But as soon as I place the board in bootloader mode I see the following message
Bootloader mode : Waiting for S19 file.....
Loading S19 file...
*** S19 Parsing error! ***
*** Address = 0x00000000 ****
Also the drive that appears has a file by the name of SF000000.TXT instead of READY.TXT. And if I place any s19 file nothing gets into the MCU and the original demo still remains there. I want to remove this original demo so that I can use this LCD with txr-k70 board. Please comment on this. thank you!!
Regards
Mughees Ahmed,
It would appear that your bootloader has been erased or modified and this is causing the error with the Mass Storage Boot Loader can comes loaded by default. In which tool are you seeing the "S19 Parsing error" message?
I'm assuming you are connecting to the TWR-LCD using a BDM programmer and an IDE (CW 6.3?). If this is so, you should be able to manually reflash the bootloader using the project located on the DVD that comes with the TWR-LCD.
Use the DVD flash interface to install the TWR-LCD Demo Projects (on the Software tab) or extract directly from .../fscommand/TWR-LCD_Demo_Project.exe
Once the example projects are extracted, reference the CW 6.3 project located in ".../CW MCU 6.3/JM128_Bootloader"
Regards,
-Clark
Hi,
Thanks a lot for your reply. I am seeing this parsing error being displayed on the lcd on the twrlcd board. Currently I dont have a bdm programmer so I needed to load a dummy .s19 file on the mcf51jm128 on this board so that I can use this twr-lcd with a kinetis k70 twr board to drive the lcd (Since both the controllers are driving the lcd at same time which I think definitely causes problems). Can you suggest any simpler workaround? Thank You.
Regards
hi Clark!!! could u tell me how to configure the pins if i want to work in 16b flexbus mode and in this mode how many pins am i need because in the examples they dont configure the WR pin and the CS , DC and RESET pins they use it in the gpio mode and FB_AD[0..15] in flexbus mode , im a little bit confused about the pins mode could u please make it clear for me !!!! thank u !!!
Thank you Clark.
1) You were absolutely right: the TWR_LCD wasn't appropriately connected to the elevator module. It was my bad.
After fixing this problem the screen showed a message on the bottom-left corner:
Touch the cross by stylus
X1: 2525 Y1:2509
X2: 2525 Y2:2512
X3: 2527 Y3:2513
But the cross wasn't steady on the screen. It flashes here and there. Touching the screen has no effect: the same message on the bottom left corner.
2) I followed your steps for downloading the attached .S19 file. No change in the behaviour of the panel.
3) I also tried with the SW1 configuration you propose (10101010). No change.
Thanks for your help. It has been really useful.
The values for the touch screen calibration do not seem correct. I do not have a TWR-LCD in front of me, so I’m recalling from memory.
Did you set the switched on the back-side of the TWR-LCD?
Now that the TWR-LCD is completely attached to the TWR-ELEV, you may need to remove it again…
The switch on the back (SW5) should all be set to “ON”. This is not the default setting. SW5 connects the Resistive Touch overlay directly to the analog signals of the Tower System MCU. I suspect that the signals are not connected, and therefore the sampling of the touch overlay is incorrect.
Did you set the switched on the back-side of the TWR-LCD?
No, I didn't.
you may need to remove it again…
It seems so. :smileyhappy:
The switch on the back (SW5) should all be set to “ON”.
A very helpful tip. I see now Table 5 of the TWRLCDUM.pdf but confirmation by an expert of what is needed is a huge help.
Thanks again.