µTasker Forum

µTasker Forum => NXPTM M522XX, KINETIS and i.MX RT => Topic started by: mark on October 03, 2010, 05:12:52 PM

Title: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: mark on October 03, 2010, 05:12:52 PM
Hi All

Owners of the Freescale M5225X Tower kit with LCD extension may be interested in the following video that I have added showing this kit running the uTasker project with graphical and USB mass storage device interface:
http://www.youtube.com/watch?v=AdtRyQ-2IrE

The video also includes a demonstration of temperature and humidity display based on the new SENSIRION SHT21.

Regards

Mark
Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: jezc on November 30, 2010, 11:18:28 AM
Hi Mark,

I've got the MCF52259 Tower kit (no LCD etc - yet!).

Is there support for the Tower in the latest files or will a new SP be required?

I'm trying to get something running between the Tower & the MCF52259 DEMO board...so support for the Tower (with/without other peripherals) would really help!

Cheers,
    Jez
Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: mark on November 30, 2010, 12:55:46 PM
Hi Jez

The Tower kit is not supported in the present release (it needs a configuration added and a few changes due to the fact that the backplane capacitance slows the slew rate of some of the PHY signals) - plus of course the TFT driver, if used.

I will send you a link later on to a pre-release Beta version; first I have to make this, but I was already planning to do it due to the fact that there have (strangely) been other requests for this recently - obviously the tower kit is becoming more popular ;-)

Note that the Kirin3 project will run on the tower kit but the Ethernet probably won't without the changes - detecting the PHY is very unreliable without them, as noted above.

Regards

Mark

P.S. The following threads explain some problems and modification needed to be able to do everthing in the demo:
http://forums.freescale.com/t5/68K-ColdFire-reg-Microprocessors/M52259-TOWER-problem-with-reading-PHY/m-p/55918)
http://www.towergeeks.org/forum/topics/usdcard-of-lcd-extension-board



Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: Kuroro on December 15, 2010, 03:52:44 PM
Hi mark

I notice that close to the end of the video you plug the tower to the pc with a usb cable and the board is detected as a masse storage device, and it apear that you can see the flash file system and the content of the SD card pluged in it, did i right ?
This functionality is allready available in utasker ?

Thank's best regard
Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: mark on December 15, 2010, 04:43:34 PM
Hi

The USB MSD is available in the latest development versions of the project. It is indeed shown in the video.

However I am not sure of the stability in the Freescale project at the moment (it is quite new and therefore not tested much - the CDC mode is, on the otherhand, successfully used in several projects [Freescale and other chips]).

Regards

Mark

Note: the SD card (FAT32) content is seen but not the internal FLASH (uFileSystem). It should be possible to divide the MSD into multiple partitions so that the SD card occupies one and a different file system (eg. internal, but FAT based and not uFileSystem) occupies another.
Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: Kuroro on December 16, 2010, 09:30:51 AM
Hi want to try the utasker binary demo for the 52259tower, but I don't know what jumper configuration i need to set to make it running,  i made some test but i don't seem to work

best regard
Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: mark on December 16, 2010, 12:27:49 PM
Hi

Did you check the links here?
http://forums.freescale.com/t5/68K-ColdFire-reg-Microprocessors/M52259-TOWER-problem-with-reading-PHY/m-p/55918)
http://www.towergeeks.org/forum/topics/usdcard-of-lcd-extension-board

Without a couple of modifications it is not possible to run the TFT and the SD card at the same time.

Regards

Mark


Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: Kuroro on December 20, 2010, 12:15:03 PM
Hi mark

I check the link that you provided.

but i have a strange behaviour that was apparently not mentioned in that post, the mosi line of the 52259 did no send any information on the line and remain a vcc, the spi interface should work because i had a signa on spi clk line

Any idea ?, i tkink's that utasker enable the mosi pull up, so i don't understant why i don't had any signal on mosi

Best ragard

 
Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: mark on December 20, 2010, 02:12:14 PM
Hi

There should always be data on the MOSI line.

I would try isolating the line as close to the processors as possible and checking for short circuits to VDD. I have two Tower Kits and one of them had a short circuit between two backplane signals so don't exclude a possible HW issue.

Regards

Mark
Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: Kuroro on January 11, 2011, 08:53:20 AM
Hi mark

I finaly make it working with a pull-up resitor on the mosi line.

I testing the system and everything work, but i notice something, the data transfert for read or write from the usb to the sd card is really slow, did they have a way to speed it up ?

Best regard
Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: mark on January 11, 2011, 02:45:37 PM
Hi

The USB interface in mass-storage mode in the demo project is a very new version (first tests) and I think that it is slow due to some errors (i.e not always slow but can be - possibly also some operating errors too). Therefore I don't think that the mass-storage operation is ready for real work on that chip just yet.

The operation in CDC class has been used quite widely and has been successful with the M522XX, but there must be something in the mass-storage class operartion that still needs refining.

In comparison, the mass-storage operation on LPC2xxx and LPC17xx devices has been working well, so it is probably something in the HW specific driver that causes the difference.

Regards

Mark
Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: ReySinTrono on January 25, 2011, 12:55:46 PM
Hi Mark,

Any example code for USB mass-storage mode with uTasker?

Thanks.
Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: mark on January 25, 2011, 10:54:18 PM
Hi

Here is a pre-release Beta version of the M522XX project including Tower kit support:
http://www.uTasker.com/software/V1.4/uTaskerV1.4_M52259TWR_Beta.zip [30.11.2010]

The password to use is the same as for the V1.4 project.

1) It is configured to run on the Tower kit with M52259 - the LCD and SD card are active
2) There are CW V7.1 and V7.2 Projects in the Codewarrior project folder
3) The simulator folder includes VS 6.0 and VS 2010 projects which allow full simulation of the project, including SD card and TFT display with touch
4) There are various test defines in the project (these usually start with MJB). These are not removed from Beta versions so that they can be activated to quickly test new functions etc. Most will be disabled and so they should not disturb.
5) The Beta includes only the V1.4 demo project and not boot loader projects.

See the TWR Video here: http://www.youtube.com/watch?v=AdtRyQ-2IrE

Regards

Mark
Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: ReySinTrono on January 26, 2011, 07:06:06 PM
Hi Mark,

Thanks for example. It's nice, but is possible with utakers to control usb mass storage (usb host controller)? Any example?

My project should use 2 pen drives to extend the coldifre internal flash and upload video files to ftp.

Regards.

Note: Sorry for my English.
Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: mark on January 26, 2011, 09:05:08 PM
Hi

Pens (memory sticks) require the controller to be in host mode and the CPU needs to control the content (usually FAT32).

The uTasker project includes utFAT which can be used for the FAT 32 part but it presently doesn't have USB host mode.

You can look at the Freescale examples since they include USB host driver - together with their software fremework memory sticks can be used.

Regards

Mark
Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: jezc on February 01, 2011, 02:05:39 PM
Hi Mark,

I've just tried to build the simulator version without the GLCD support (commented out '#define SUPPORT_GLCD' in config.h) & it's failing to build -

1>Linking...
1>LCDSim.obj : error LNK2019: unresolved external symbol _fnPenMoved referenced in function "int __cdecl fnPenDown(int,int,int)" (?fnPenDown@@YAHHHH@Z)
1>LCDSim.obj : error LNK2019: unresolved external symbol _fnPenPressed referenced in function "int __cdecl fnPenDown(int,int,int)" (?fnPenDown@@YAHHHH@Z)
1>LCDSim.obj : error LNK2019: unresolved external symbol _fnPenLifted referenced in function "int __cdecl fnPenDown(int,int,int)" (?fnPenDown@@YAHHHH@Z)
1>.\Debug/uTaskerV1-4.exe : fatal error LNK1120: 3 unresolved externals

Not a huge problem at present (while I'm running development code on the simulator), but I haven't got the LCD for the tower yet and I think you said it would hang if it's built into the code but not fitted?

Cheers,
    Jez
Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: mark on February 01, 2011, 05:58:47 PM
Jez

Try a project clean and rebuild - these functions shouldn't be needed when there is no GLCD used and sometimes VS doesn't recompile all files after a change.

If it turns out to still be a problem remove SUPPORT_TOUCH_SCREEN from the hardware configuration file because this is specifically used for simulating the touchscreen operation.

Regards

Mark
Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: jezc on February 02, 2011, 08:41:42 AM
Hi Mark,

Yes, doing the clean first has done the trick as you expected! I'd tried a rebuild all with no success, will have to make a note to do a clean every time I change a macro definition, just to be safe!

Thanks again for the excellent support! ;D

Cheers,
    Jez
Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: mhoneywill on February 02, 2011, 09:22:34 AM
Hi Jez,

I use the Luminary Micro Version of uTasker, and its my experience that VC does sometimes to recognise that a change in a header file means that it needs to recompile a cpp file. So if your change effects something in the simulator best to do a full build. Never have gotten to the bottom of this "feature".

Cheers

Martin
Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: jezc on February 02, 2011, 11:13:16 AM
Hi Martin,

Thanks for the information/confirmation - I'll check with some of my colleagues if they have a similar problem with their native Visual Studio projects (though they're mostly using C# nowadays).

I'll also see if they can try the project with a 'full' version of Visual Studio (rather than express), just in case that's a factor too.

I'll let you know if I find anything more about this.

Cheers,
    Jez
Title: Re: M52259 TOWER - TFT display and Temperature/humidity sensor
Post by: mhoneywill on February 02, 2011, 12:06:44 PM
Hi Jez,

I use a full version of VC, and to clarify it seems like a change to a header file triggers dependant C files to be recompiled, but sometimes not C++ files (i.e. the simulator files). As an example if I have a GLCD emulated and then change its size and just try to run again, this change has not occurred in the simulator. A full compile fixes it.

Martin