Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - svl

Pages: [1] 2 3 4
1
utFAT / Re: utMakeDirectory, can not make sub folder
« on: October 08, 2013, 09:49:32 AM »
Hi Mark

I have looked at the problem with creating the folders and this is what I found sofare.
I am using Keil uVision 4.71.2.0.

When doing like this:
         res=utMakeDirectory((int8*)"public", ptr_utDirectory);
         res=utMakeDirectory((int8*)"public/steen", ptr_utDirectory);
         res=utMakeDirectory((int8*)"public/steen/anette", ptr_utDirectory);
         res=utMakeDirectory((int8*)"public/peter", ptr_utDirectory);
         res=utMakeDirectory((int8*)"public/hans", ptr_utDirectory);

I get a folder struct on the SD card looking like this:
-public
-steen

When using this code:
         res=utMakeDirectory((int8*)"public", ptr_utDirectory);
         utChangeDirectory("public", ptr_utDirectory);
         res=utMakeDirectory((int8*)"steen", ptr_utDirectory);
         utChangeDirectory("steen", ptr_utDirectory);
         res=utMakeDirectory((int8*)"anette", ptr_utDirectory);

I get this struct on the SD card:
-public
  |-steen
     |-anette

I have been trying to debug the utMakeDirectory but are not able to locate the problem.
Hope this info can get us a bit closer to my problem?

Regards

Steen



2
utFAT / Re: How do I reduce the size of a file
« on: October 07, 2013, 03:00:14 PM »
Hi Mark

Thanks for the help the function is working perfect.;-)

Regards

Steen

3
utFAT / utMakeDirectory, can not make sub folder
« on: October 07, 2013, 01:44:33 PM »
Hi Mark

I am facing a few problems with the utMakeDirectory function.
From what I understand it should be possible to make a folder with in another folder just by doing like this:dir1/dir1?
But when use this code:

         if (ptr_utDirectory2 == 0) {
            ptr_utDirectory2 = utAllocateDirectory(DISK_D, 100); // allocate a directory for use by this module associated with D: and reserve its path name string length
            res = utOpenDirectory(0, ptr_utDirectory2);
         }      
         res=utMakeDirectory((int8*)"public", ptr_utDirectory2);
         res=utMakeDirectory((int8*)"public/steen", ptr_utDirectory2);
         res=utMakeDirectory((int8*)"public/steen/anette", ptr_utDirectory2);


I get a folder public and steen created in the root of my SD card and the folder anette is not created, the utMakeDirectory returns UTFAT_PATH_NOT_FOUND.

What am I doing wrong?
Further more I notes that LNF is not supported when creating folder, is this possible in any way.
I am looking forward to hear from you.

Regards
Steen



 

4
utFAT / Re: How do I reduce the size of a file
« on: October 01, 2013, 06:56:52 PM »
Hi Mark

From my perspective I will recommend this interface:
extern int utTruncateFile(UTFILE *ptr_utFile);
For this to work the file need to be open and in Write mode(If not, it return a error).
When calling this function it will truncate the file to the current position of the file pointer (If at the end of the file no changes is done;-)).

The reason for this interface is that changing the file size are in my opinion always done after changing some contents in the file and hereby having the file opened anyway.

This will also give the faster function and the possibility to put the function into a sub function that only have a UTFILE object to work on.

Hope that you can use this input.

Best regards
Steen

5
utFAT / Re: How do I reduce the size of a file
« on: October 01, 2013, 06:00:14 AM »
Hi Mark

I have been working with FsFat prior to the uFAT. The FsFAT contains a FileTruncate function.
Wen using this function it adjusted the file size to the current position in the file.
The reason for using this way instead of making a copy of the file, is simple 2 things:
  • Speed, Only making the changes a requires is faster, making it unnecessary to rewrite the contents that do not change
  • Wear, Rewriting the entire file will reduce the total life time on the SD card

Are the already a "hidden" function that can do this in the mass_storage.c?

Regards

Steen

6
utFAT / How do I reduce the size of a file
« on: September 30, 2013, 08:13:31 PM »
Hi Mark

I have a case where the file I am working on is getting smaller.
How do I update the file info to reflect the new size?

Looking forward to hear from you.

Regards
Steen

7
Hi Mark

Thanks for that additional information.
One thing I do not understand is why I SD card that give 1,6Mbyte/s in write speed when connected to a PC using a USB converter and only 245Kbyte/s when connected to the KINETIS?
Is the current write limit as fast as you believe it should or ..

Regards
Steen



 

8
Hi Mark

I have been running some test and must say that you are right;-)
For some reason the SD card are the slowest part when transferring data to it using USB.
I am using the SDHC interface on the Tower TWR. And when I try to just write a single file 2 MByte (From the RS232 interface) file I get a transfer rate of 245Kbyte.
I was expecting much higher transfer as the manual mention 200Mbps.
Have you been looking at the DMA option that the SDHC offers to see if this can offer higher speed?

Regards
Steen

9
NXPTM M522XX, KINETIS and i.MX RT / Re: Freescale 52259, SW Reboot problem
« on: November 30, 2012, 07:17:53 PM »
Hi Mark

Thanks for your reply.
Your description does to some extend match my problem.
What I also have seen is that GPIO setting is not setup as expectede.
But I have been doing some test and can see that if I upgrade from a special version to the newest version I have made, the system ends up in unexpected error.
For now I have now idea of what to look for, but it is nice to know that there can be something and not just me;-)

Have a nice weekend

-Steen     

10
NXPTM M522XX, KINETIS and i.MX RT / Freescale 52259, SW Reboot problem
« on: November 27, 2012, 09:52:57 AM »
Hi
I am struggling with a strange problem, which I hope some of you can help me with. 
I have an old version of uTasker running 1.4 and have been using it for 2-3 years now.
My problem is that now and then I get reports from my customer that the system is not working as expected.
If the problem not is related to setup problem, the solutions are often to cycle the power on the system.
When our customer is uploading a new configuration to our system we always end this with a SW reboot.
And I have several cases where SW rebooting the system many time had no effect.

I have not been able to recreate the problem on my desk, and have no idea of how to do this.
But it looks like the system reboots, but forgets to do not reset memory or its register…
The error that our customer se are:
HTTP server do not working stable.
I/O setting has not change.

Have any of your see something like this? 

Regards
 -Steen

11
Hi Mark

Had the feeling that this was the case, have not been able to find much info on the matter.
The reason for me to look for this possibility is that in my application we need to transfer between 1-20 MB from the PC to the systems connected uSD card over USB. And the faster the transfer can be done the better. ;D
Do you have any idea of what typical transfer speed I can expect if I use uTasker and map the uSD card in to the PC as a drive?

Regards
Steen

12
Hi

I am in progress of looking for the possibility of using the K60 in our new products instead of the Coldfire;-)
One of the things I notices was that the K60 has the possibility to run high-speed USB.
But from what I can find it requires an external USB PHY that is connected to the K60 using ULPI.

Has any has success making this combination and can the uTasker support this?

Regards
Steen

13
µTasker general / Re: CDC class driver for Windows 8
« on: October 22, 2012, 11:14:48 AM »
Hi Neil

We have customer all over the world and the driver has been installed on many different computers and i have never has a issus that the inf file not was working.
When we install our software we copy the inf file into the c:\Windows\inf folder. this way Windows will find the driver it self when connecting our USB equipment.

So I guess that the short answer to your question will yes;-)

Regards

Steen

14
µTasker general / Re: CDC class driver for Windows 8
« on: October 22, 2012, 10:30:48 AM »
Ni Neil,

Yes, I have it working on both Windows 7 64 and 32 bit version.

I include my inf file, hope that you can use it :D. Remember change the PID and the VID and also the MANUFACTURER and DESCRIPTION at the end of the file. 

My college is at the moment looking for solution for Windows 8, but is looks at the moment as there it now easy way. :-\
But if you inf on then please let me know.

Regards
Steen


15
µTasker general / CDC class driver for Windows 8
« on: October 16, 2012, 09:47:54 AM »
Hi
After using the uTasker system for some time now with no problem I see that Microsoft release of Windows 8 is just around the corner.
I have had a request from our customer, how was asking for Windows 8 driver.
The .inf that I have been using for Windows XP and up to Windows 7 is not accepted by Windows 8.

I have been doing some digging and found that from Windows 8 driver has to be digital signed before they will work.
However I found a backdoor to install the driver. Simply boot Windows 8 in “Safe mode” and install the driver this way;-) This works, but is not a great solution. :-\

So my question is: Have any of you an idea of how to make a driver for Windows 8 that works in normal mode. ???

-Steen

Pages: [1] 2 3 4