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.

Topics - svl

Pages: [1] 2
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.



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.


NXPTM M522XX, KINETIS and i.MX RT / Freescale 52259, SW Reboot problem
« on: November 27, 2012, 09:52:57 AM »
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? 



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?


µTasker general / CDC class driver for Windows 8
« on: October 16, 2012, 09:47:54 AM »
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. ???



I am in progress of making a function that read out the information mention here:

The idere are that in case of a "unexpected error" I have the best possible information when trying to locate the error.

My problem is that I have been trying to get the value fron the A7 but with no luck.
Code: [Select]
unsigned long tmp = *((uint32*)0x08F) //Get the value from the A7 register.
   tmp  = *(uint32*)(*(uint32*)A7);    //Get the first byte mention in the above link. This is the data that A7 is pointion to.
   tmp  = *(uint32*)((*(uint32*)A7)+1);
   tmp  = *(uint32*)((*(uint32*)A7)+2);
   tmp  = *(uint32*)((*(uint32*)A7)+3);

Hope you can help me?

Best regards
Steen Larsen

Hi Mark

Is it possible to somehow get the MAC address of the client that are trying to connect to a TCP server I uTasker?
I can see that the white list supports IP addresses, but some of our customer want it to be the MAC address that are used as white list.
I was thinking of using the ARP table, but am unsure if the ARP table always has it in its table or it need to make a lookup.
If it need to make a lookup that I am afraid that the uTasker system will get lock in circles while the ARP service are fetching the MAC address…



µTasker general / I2C in slave mode
« on: October 14, 2010, 02:39:25 PM »
Hi Mark

We have been using the uTasker for over 2 years and are very pleased with the performance and functions ;-).
In our upcoming products we plan to make a bus system that uses I2C. I can see that there are support for I2C master, but can’t see that the I2C slave are implemented.
Is the I2C slave hidden some ware in uTasker that I cannot see?

Regards Steen

NXPTM M522XX, KINETIS and i.MX RT / MCF5223X New Mask Revision
« on: November 26, 2009, 08:01:53 AM »

Just got this link from our partner:

It looks like the problem with the LAN speed auto negotiation has been addressed!

I have received samples of the new version a few month back but never got the time to test it :(
Hope that some one in here gets the time to run a few test?

Best regards

NXPTM M522XX, KINETIS and i.MX RT / PIT from fnInitHW
« on: October 08, 2009, 09:29:52 AM »
Hi Mark

I am trying to port some code from a M52235 to M52255 and in this progress upgrading to the new Tuasker version 1,4.

My problem are that when I init the PIT from the fnInitHW function it is not fired until i exit the function even when i make a while{1} in the fnInitHW.

I init the PIT like this:
    pit_setup.int_type = PIT_INTERRUPT;
    pit_setup.int_handler = disk_timerproc;
    pit_setup.int_priority = PIT1_INTERRUPT_PRIORITY;
    pit_setup.count_delay = PIT_US_DELAY(10000);           // 10ms delay
    pit_setup.mode = PIT_PERIODIC;                                // repeat interrupt
    fnConfigureInterrupt((void *)&pit_setup);                     // enter interrupt for PIT1 test

Do you have any suggestion on how to get the PIT interupting the fnInitHW and thereby getting a time within the function?

Regards Steen

NXPTM M522XX, KINETIS and i.MX RT / Malloc proble...
« on: June 11, 2009, 01:47:12 PM »

I have been trying to use the malloc function in the uTasker system, but with no luck.
When I call the malloc function with the size that I want to allocat e.g. malloc(hdr.stp).

Malloc are called but the problem is that the value that I use ac parameter are change from e.g. 2536 to 0x20007F14.

I have tried almost everything also the thing mention in

Any suggestion?

Regards Steen

NXPTM M522XX, KINETIS and i.MX RT / HEAP and uTasker HEAP?
« on: May 19, 2009, 02:37:37 PM »
Hi Mark
I have been having a look at what part of my project that uses my RAM and have stumped over some things I do not understand.
In the µTasker operating system basics - V1.3 document, you describe how the memory is located in the available RAM.

When I look at my RAM (In the .xMAP file) I have the following sections:
20000000 - 200003FF, Vector RAM
20000400 - 20001E50, Static variables
20001E60 - 20002E60, HEAP
20002E60 - 20007A60, uTasker HEAP
20007A61 - 20008000, System stack

The parts I do not understand are the Vector ram and especially the HEAP.
Vector RAM are not mention in your documentation, but I expect that this are processor related?

The part that wonder me are that HEAP part, I can see that it is not used by the uTasker, but what part of the system are then using this RAM?

Regards Steen

NXPTM M522XX, KINETIS and i.MX RT / Noice on ADC when using bootloader
« on: February 27, 2009, 01:28:04 PM »

Have just made a project where i use the ADC to sample data.

I then have an upper and a lower signal limit to detect changes in the signal.

My basic problem is that when I development the filter i found the upper and lower limit by test and this was great ;-).
Now after I added the bootloader to the project i found that there are more noise on the ADC than before i use the bootloader. ???

I have tried some time with the same code but with and without the bootloader and it looks like the bootloader do a difference?

Any suggestion?


NXPTM M522XX, KINETIS and i.MX RT / Http server and missing images
« on: January 30, 2009, 08:34:00 AM »
Hi Mark
Have been playing with the HTTP server for a while and got it to work with a SD card.
My problem is now that all the images on my web page are not loaded every time and there are no consistent in witch images there are missing.
I am using it together with dynamical web pages as well, but even when I disable this part the images are not appearing as well.
When I debug the fnDoWebPage function I can see that the missing images not are requested in this function.
But that most strange is that it when using Wireshark to track the communication between the computer and the controller, it dos not looks like the image is “requested”???

Any ideas?


NXPTM M522XX, KINETIS and i.MX RT / Serial data are lost..
« on: December 11, 2008, 12:29:18 PM »
Hi Mark

I am trying to make a TCP to RS-232 gateway.
I have a been using some of the examples from this forum and the changed a bit...

It all looks perfect when testing the gateway, but when i try to use the FTP or HTTP server data is lost.

After tracking this problem a bit I found that it actually are data from the RS-232 port that are missing.
The set up of the serial ports are like this:
Code: [Select]
    tInterfaceParameters.Channel = i;                            // set UART channel for serial use
    tInterfaceParameters.ucSpeed = SERIAL_BAUD_9600; // baud rate
    tInterfaceParameters.Rx_tx_sizes.RxQueueSize = RX_BUFFER_SIZE;       // input buffer size
    tInterfaceParameters.Rx_tx_sizes.TxQueueSize = TX_BUFFER_SIZE;       // output buffer size
    tInterfaceParameters.usConfig = (CHAR_8 + NO_PARITY + ONE_STOP + CHAR_MODE);
    tInterfaceParameters.Task_to_wake = OWN_TASK;                        // wake self when messages have been received
    if ((ucGateway[i].SerialPortID = fnOpen( TYPE_TTY, FOR_I_O, &tInterfaceParameters )) != 0) { // open or change the channel with defined configurations (initially inactive)
        fnDriver( ucGateway[i].SerialPortID, ( TX_ON | RX_ON ), 0 );                  // enable rx and tx

As you can see the speed of the serial communication are low so I expect that data are lost some ware between the RX buffer and the task that are handling my application.

Do you have any suggestions

Regards Steen

Pages: [1] 2