Embedded GUI demo in TWR-MCF52259

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Embedded GUI demo in TWR-MCF52259

2,754 次查看
vicentet_
Contributor II

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.

标签 (1)
12 回复数

1,839 次查看
mhassan
Contributor I

I have downloaded the eGUI v3.0 and the demo mentioned by@vicentet.

0 项奖励
回复

1,839 次查看
TomE
Specialist II

Try Google. Also check the "Tower Geeks" forum. Others have been having problems with this:

EGUI_D4D_Demo  TWRLCD_MCF51JM128 doesn't run | Freescale Community

Tom

0 项奖励
回复

1,839 次查看
jlassijlassi
Contributor I

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 !!!

0 项奖励
回复

1,839 次查看
CJarvis
NXP Employee
NXP Employee

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.

  1. Attached to this reply is a binary for the JM128 that contains only the bootloader.  This file is also located on the DVD that comes with the TWR-LCD.
  2. To use to bootloader, disconnect the TWR-LCD from the tower system (it is ok to leave it attached to the TWR-ELEV, but make sure no other cards are inserted into the elevator)
  3. Connect the TWR-LCD directly to a host PC using a USB cable.  Make sure that you are using the USB connector on the TWR-LCD, not the one on the TWR-ELEV.
  4. While holding down the BTLD button (SW4, bottom-right), press and release the JMRST button (SW3, bottom-left).  You can then release the BTLD button.  The LCD should beep, and the TWR-LCD will enumerate as a Mass Storage Device on the host PC.  The drive will be labeled "BOOTLOADER".  If the screen is configured to display from the on-board JM128, then you will also see bootloader status messages on the LCD.
  5. Copy the attached .S19 file to the BOOTLOADER drive.  The TWR-LCD will load the .S19 file, beep, and restart.  The TWR-LCD will re-enumerate with a file named "SUCCESS.TXT".


1,839 次查看
mugheesahmed
Contributor II

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

0 项奖励
回复

1,839 次查看
CJarvis
NXP Employee
NXP Employee

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

0 项奖励
回复

1,839 次查看
mugheesahmed
Contributor II

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

0 项奖励
回复

1,839 次查看
jlassijlassi
Contributor I

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 !!!

0 项奖励
回复

1,839 次查看
vicentet_
Contributor II

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.

0 项奖励
回复

1,839 次查看
CJarvis
NXP Employee
NXP Employee

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.

1,839 次查看
vicentet_
Contributor II

I am watching the eGUI demo right now ("Audio" demo after calibrating the screen with the stylus).

I really appreciate your help, Clark. Thanks a lot.

0 项奖励
回复

1,839 次查看
vicentet_
Contributor II

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.

0 项奖励
回复