µTasker Forum
µTasker Forum => NXPTM M522XX, KINETIS and i.MX RT => Topic started by: tr111 on March 26, 2009, 04:25:41 AM
-
I get the uTaskerV1.3_Kirin3 and the M52259evb,I want to the usb flash disk ,can read and write file to the usb flash disk in the M52259evb!
when I test in the freescale's MQX,the MQX is the freescale's OS!
when I put the usb flash disk to the usb port in the M52259evb,will look like this:
************************************************************************
Vendor Information: CHIPSBNK Mass Storage Device
Product Identification: USB 2.0
Product Revision Level: 5.00
************************************************************************
--->USB Mass storage device opened
--->Partition Manager installed
--->File System installed
--->File System opened
shell> dir
THUMBS.DB 756224 10-28-2008 02:43:16 HS A Thumbs.db
5225X_2.JPG 97660 11-24-2008 11:13:26 A 5225X_2.JPG
ADC_INT.HTM 8599 11-25-2008 14:52:48 A ADC_int.htm
ARROW.GIF 105 11-24-2008 11:14:16 A ARROW.GIF
BC_SEP~1.GIF 105 11-24-2008 11:57:58 A bc_seperator.gif
Can the utasker do like this???????
-
Hi
The uTasker M5225X project supports USB device (specifically it is based on a CDC device example).
The MQX example is for mass storage (Host mode) which the uTasker project doesn't do at the moment. Host/OTG and mass-storage is planned for the second half of the year.
If it is any consolation, the MQX example can't do CDC...
Regards
Mark
-
Also I found the utasker is faster than MQX when doing ping IP!
-
Hi
That is interesting. Have you also compared the code sizes to do equivalent things?
Regards
Mark
-
Sorry !
I run the MQX at the EXT. MRAM ,so ping is slow!
I think the MRAM's bus is very slow!
when I run the MQX at the Int.flash,it do the same as the utasker!
-
Hi
The MRAM on the M52259EVB can be accessed as 35ns RAM: see also http://www.utasker.com/forum/index.php?topic=504.0
Therefore I don't think that this can explain any additional delays.
Regards
Mark
-
The MCF52259 is connected to the MRAM via the Mini-FlexBus 8-bit non-multiplexed mode.The AD0 signal (as well as AD0) is used to select upper byte or lower byte in a 16-bit word of the 16-bit MRAM.
I think the 8-bit data bus is slower than the Int.FLASH!Because the code is download all to the the Ext.MRAM when in Ext.MRAM debug!
-
Hi
You are right that execution will be slower since it will have to collect individual bytes rather than reading words. This may make code execution say 2 to 4 times slower.
The question is whether this will be noticed at Ethernet protocol levels. In the worst case it may make a difference of 1 or 2ms with long Ethernet frames but I wouldn't expect any greater impact than that due to execution speed, unless data is unnecessarily copied from one place to another.
In any case, the use of MRAM to hold program code is certainly only to demonstrate the MRAM operation and is not a very practical solution to real projects. It will always be best to have code operating from internal FLASH (where it can also be protected if required) and the use of MRAM to store files and other data is most practical.
You can operate the uFileSystem in the MRAM by activating NVRAM in config.h.
Regards
Mark